vllm.model_executor.layers.fused_moe.oracle.int8 ¶
Functions:
-
convert_to_int8_moe_kernel_format–Convert INT8 MoE weights to backend-specific kernel format.
-
map_int8_backend–Map user's MoEBackend to Int8MoeBackend.
-
select_int8_moe_backend–Select the primary Int8 MoE backend.
_get_priority_backends(moe_config) ¶
Get available backends in priority order based on platform and config.
Source code in vllm/model_executor/layers/fused_moe/oracle/int8.py
_humming_int8_weight_schema(weight, weight_scale) ¶
Build the humming compressed-tensors int8 schema from the canonical on-device tensors; humming does the signed-int8 -> native conversion.
Source code in vllm/model_executor/layers/fused_moe/oracle/int8.py
convert_to_int8_moe_kernel_format(int8_backend, w13, w2, layer=None, w13_scale=None) ¶
Convert INT8 MoE weights to backend-specific kernel format.
Source code in vllm/model_executor/layers/fused_moe/oracle/int8.py
map_int8_backend(runner_backend) ¶
Map user's MoEBackend to Int8MoeBackend.
Source code in vllm/model_executor/layers/fused_moe/oracle/int8.py
select_int8_moe_backend(config, weight_key=kInt8StaticChannelSym, activation_key=kInt8DynamicTokenSym) ¶
Select the primary Int8 MoE backend. Note: Shape-specific fallbacks may still occur at runtime.
Source code in vllm/model_executor/layers/fused_moe/oracle/int8.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |