Views
No views yet
| Precision | Model | MMLU 5-shot (acc) | Δ vs W4A16 |
|---|---|---|---|
| W4A16 (compressed-tensors) | moonshotai/Kimi-K2.6 (official) | 89.62% | — |
| MXFP4 (OCP MX, Quark RTN) | This model | 89.05% | -0.57% |
The officialmoonshotai/Kimi-K2.6release uses W4A16 compressed-tensors quantization (WNA16 MoE method).
| Property | Value |
|---|---|
| Method | MXFP4 (MX Floating Point 4-bit) |
| Algorithm | RTN (Round-to-Nearest) |
| Weight dtype | FP4 (E2M1), OCP MX format |
| Activation dtype | FP4 (E2M1), dynamic per-group |
| Scale format | E8M0 (per-group of 32) |
| Group size | 32 |
| Tool | AMD Quark 0.11.1 + quanto |
1from vllm import LLM, SamplingParams
2
3llm = LLM(
4 model="haanjack/Kimi-K2.6-MXFP4",
5 tensor_parallel_size=4,
6 trust_remote_code=True,
7 max_model_len=32768,
8 enforce_eager=True, # required: avoids HIP kernel crash during graph capture
9 gpu_memory_utilization=0.85,
10)1export QUARK_MXFP4_IMPL=triton # use Triton kernel (avoids HIP C++ kernel crash on gfx950)
2export PYTORCH_ROCM_ARCH=gfx950 # set to your GPU architecture for fast kernel compilation1QUARK_MXFP4_IMPL=triton PYTORCH_ROCM_ARCH=gfx950 \
2python -m vllm.entrypoints.openai.api_server \
3 --model haanjack/Kimi-K2.6-MXFP4 \
4 --tensor-parallel-size 4 \
5 --trust-remote-code \
6 --max-model-len 32768 \
7 --gpu-memory-utilization 0.85 \
8 --enforce-eager1python -m quanto \
2 --model_path moonshotai/Kimi-K2.6 \
3 --output_dir ./kimi-k2.6-mxfp4 \
4 --precision mxfp4 \
5 --exclude_layers lm_head "*self_attn*" "*.gate" "*shared_experts*" "*embed*" "*norm*"mxfp4 precision triggers Quark's quantize_model_per_safetensor (file-to-file) path, which processes each safetensors shard independently without loading the full model into GPU memory.--enforce-eager flag in vLLM (CUDA graph capture triggers a kernel crash with the Quark MXFP4 emulation backend on ROCm)QUARK_MXFP4_IMPL=triton is required on gfx950 (MI355) hardware; the default HIP C++ kernel has a memory access bug on this architecturew_mxfp4_a_mxfp4 scheme — weights are dequantized to BF16 on-the-fly during inference (emulation mode)