vllm.model_executor.layers.quantization.quark.quark_moe
¶
Classes:
-
QuarkMoEMethod– -
QuarkNvfp4MoEMethod– -
QuarkOCP_MX_MoEMethod– -
QuarkW4A16Int4MoEMethod–Quark packed INT4 weight-only MoE method.
-
QuarkW8A8Fp8MoEMethod– -
QuarkW8A8Mxfp8MoEMethod–Quark OCP MX MXFP8 (W8A8) experts.
QuarkMoEMethod
¶
Bases: FusedMoEMethodBase
Methods:
-
get_moe_method_target–Return the quantization target for a routed-experts layer.
get_moe_method_target(quant_config, layer_type, layer_name)
staticmethod
¶
Return the quantization target for a routed-experts layer.
QuarkNvfp4MoEMethod
¶
Bases: QuarkMoEMethod
Methods:
-
dequantize_weight–Yield
(experts, w13, w2)dequantized Quark NVFP4 experts. -
process_weights_after_loading–Convert NVFP4 MoE weights into kernel format and setup the kernel.
QuarkOCP_MX_MoEMethod
¶
Bases: QuarkMoEMethod
_setup_kernel(layer)
¶
Setup kernel using oracle functions for MXFP4 schemes (W4A16, W4A8).
QuarkW4A16Int4MoEMethod
¶
QuarkW8A8Fp8MoEMethod
¶
Bases: QuarkMoEMethod
Methods:
-
dequantize_weight–Yield
(experts, w13, w2)dequantized FP8 experts, for online
dequantize_weight(layer)
¶
Yield (experts, w13, w2) dequantized FP8 experts, for online
requantization.
QuarkW8A8Int8MoEMethod
¶
QuarkW8A8Mxfp8MoEMethod
¶
Bases: QuarkMoEMethod
Quark OCP MX MXFP8 (W8A8) experts.
FP8 E4M3 weights with E8M0 uint8 scales per 1x32 block (Quark fp8_e4m3
per_group group_size=32 scale_format=e8m0), and activations
dynamically quantized to MXFP8. The stored layout is the one the online,
ModelOpt and compressed-tensors MXFP8 MoE methods produce or load
([E, rows, cols] E4M3, [E, rows, cols / 32] uint8), and the weights go
through the same backend selection, kernel-format conversion and kernel
(AITER_MXFP8 on gfx950).