vllm.model_executor.layers.quantization.mxfp8 ¶
Online MXFP8 (microscaling FP8, block-32) quantization config and methods.
Mxfp8Config ¶
Bases: Fp8Config
Config class for online MXFP8 MoE quantization.
Source code in vllm/model_executor/layers/quantization/mxfp8.py
Mxfp8OnlineLinearMethod ¶
Bases: Fp8OnlineLinearMethod
Online MXFP8 linear method. Loads bf16/fp16 checkpoints and quantizes weights to MXFP8 (microscaling FP8 with block-32 scales) during weight loading.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
quant_config | Mxfp8Config | The MXFP8 quantization config. | required |
Source code in vllm/model_executor/layers/quantization/mxfp8.py
Mxfp8OnlineMoEMethod ¶
Bases: Fp8OnlineMoEMethod
MoE method for online MXFP8 (block) quantization.
Source code in vllm/model_executor/layers/quantization/mxfp8.py
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | |
_quantize_mxfp8_moe_weight ¶
Batch quantization: bf16/fp16 weights -> MXFP8 (fp8 + uint8 scales).