--- license: other license_name: modified-mit license_link: LICENSE base_model: - moonshotai/Kimi-K2-Thinking --- # Model Overview - **Model Architecture:** Kimi-K2-Thinking - **Input:** Text - **Output:** Text - **Supported Hardware Microarchitecture:** AMD MI350/MI355 - **ROCm:** 7.0 - **Operating System(s):** Linux - **Inference Engine:** [vLLM](https://docs.vllm.ai/en/latest/) - **Model Optimizer:** [AMD-Quark](https://quark.docs.amd.com/latest/index.html) (V0.11.1) - **Quantized layers:** Experts, Shared_experts - **Weight quantization:** OCP MXFP4, Static - **Activation quantization:** OCP MXFP4, Dynamic - **Calibration Dataset:** [Pile](https://huggingface.co/datasets/mit-han-lab/pile-val-backup) This model was built with Kimi-K2-Thinking model by applying [AMD-Quark](https://quark.docs.amd.com/latest/index.html) for MXFP4 quantization. # Model Quantization The model was quantized from [unsloth/Kimi-K2-Thinking-BF16](https://huggingface.co/unsloth/Kimi-K2-Thinking-BF16) using [AMD-Quark](https://quark.docs.amd.com/latest/index.html). The weights and activations are quantized to MXFP4. **Quantization scripts:** ``` cd Quark/examples/torch/language_modeling/llm_ptq/ exclude_layers="*self_attn* *mlp.gate *lm_head *mlp.gate_proj *mlp.up_proj *mlp.down_proj" python quantize_quark.py \ --model_dir unsloth/Kimi-K2-Thinking-BF16 \ --quant_scheme mxfp4 \ --exclude_layers $exclude_layers \ --output_dir amd/Kimi-K2-Thinking-MXFP4 \ --file2file_quantization ``` # Deployment ### Use with vLLM This model can be deployed efficiently using the [vLLM](https://docs.vllm.ai/en/latest/) backend. ## Evaluation The model was evaluated on GSM8K benchmarks. ### Accuracy
| Benchmark | Kimi-K2-Thinking | Kimi-K2-Thinking-MXFP4(this model) | Recovery |
| GSM8K (flexible-extract) | 94.16 | 93.03 | 98.80% |