amd / Kimi-K2.7-Code-MXFP4

huggingface.co
Total runs: 497
24-hour runs: -13
7-day runs: -42
30-day runs: -1.0K
Model's Last Updated: Julho 31 2026

Introduction of Kimi-K2.7-Code-MXFP4

Model Details of Kimi-K2.7-Code-MXFP4

Model Overview

  • Model Architecture: Kimi-K2.7-Code
    • Input: Text
    • Output: Text
  • Supported Hardware Microarchitecture: AMD MI350/MI355
  • ROCm: 7.2.3
  • PyTorch: 2.10.0
  • Transformers: 5.12.1
  • Operating System(s): Linux
  • Inference Engine: vLLM
  • Model Optimizer: AMD-Quark (V0.12)
    • Weight quantization: OCP MXFP4, Static; self_attn Perchannel, FP8E4M3, Static
    • Activation quantization: OCP MXFP4, Dynamic; self_attn Pertoken, FP8E4M3, Dynamic
    • Excluded from quantization: MoE gates, lm_head , vision tower and multimodal projector

This model was built with the Kimi-K2.7-Code model by applying AMD-Quark for MXFP4 quantization.

Model Quantization

The model was quantized from moonshotai/Kimi-K2.7-Code using AMD-Quark . The MoE/Linear weights and activations are quantized to OCP MXFP4, while the attention projections use FP8 (E4M3). The vision tower and multimodal projector are kept at BF16.

Quantization script:

cd Quark/examples/torch/language_modeling/llm_ptq/

python3 quantize_quark.py \
    --model_dir moonshotai/Kimi-K2.7-Code \
    --output_dir Kimi-K2.7-Code-MXFP4 \
    --file2file_quantization \
    --trust_remote_code \
    --quant_scheme mxfp4 \
    --layer_quant_scheme '*self_attn*' ptpc_fp8 \
    --exclude_layers "*lm_head*" "*mlp.gate" "*mm_projector*" \
        "*vision_tower*" "mtp.*" "*shared_expert_gate*" "*router*" \
    --model_export hf_format

Deployment

Use with vLLM

This model can be deployed efficiently using the vLLM backend.

Note: this model has 64 KV heads, which is incompatible with the AITER MLA kernel (supports 16 or 128 only). Disable AITER MLA when serving on ROCm:

export VLLM_ROCM_USE_AITER=1
export VLLM_ROCM_USE_AITER_MLA=0
export VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=0
export VLLM_ROCM_USE_AITER_FP4BMM=0

python3 -m vllm.entrypoints.openai.api_server \
    --model amd/Kimi-K2.7-Code-MXFP4 \
    --trust-remote-code \
    --tensor-parallel-size 4 \
    --gpu-memory-utilization 0.9 \
    --max-model-len 8192
Evaluation

The model was evaluated on the GSM8K benchmark.

Accuracy
Benchmark Kimi-K2.7-Code Kimi-K2.7-Code-MXFP4 (this model) Recovery
GSM8K (strict-match) 95.07% 94.80% 99.7%
GSM8K (flexible-extract) 95.15% 94.77% 99.6%

GSM8K is 5-shot, greedy decoding. The MXFP4 numbers are the mean of repeated stable runs (range: strict 0.9439–0.9560, flexible 0.9439–0.9553).

Reproduction

The GSM8K results were obtained using the lm-evaluation-harness framework with the vLLM backend ( rocm/vllm-dev nightly, vLLM 0.23.1rc1 ). The model is served first, then evaluated via the OpenAI-compatible completions API.

Important: serve with automatic prefix caching disabled ( --no-enable-prefix-caching ) for deterministic evaluation results.

# 1) Serve
export VLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_MLA=0 \
       VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=0 VLLM_ROCM_USE_AITER_FP4BMM=0
python3 -m vllm.entrypoints.openai.api_server \
    --model amd/Kimi-K2.7-Code-MXFP4 \
    --trust-remote-code --tensor-parallel-size 4 \
    --gpu-memory-utilization 0.9 --max-model-len 8192 \
    --seed 42 --no-enable-prefix-caching

# 2) Evaluate
lm_eval --model local-completions \
    --model_args "model=amd/Kimi-K2.7-Code-MXFP4,base_url=http://0.0.0.0:8000/v1/completions,num_concurrent=128,tokenized_requests=False,max_length=8192,add_bos_token=True,seed=42,trust_remote_code=True" \
    --tasks gsm8k --num_fewshot 5 --batch_size 1 --seed 42

License

Modifications Copyright(c) 2026 Advanced Micro Devices, Inc. All rights reserved.

Runs of amd Kimi-K2.7-Code-MXFP4 on huggingface.co

497
Total runs
-13
24-hour runs
-29
3-day runs
-42
7-day runs
-1.0K
30-day runs

More Information About Kimi-K2.7-Code-MXFP4 huggingface.co Model

More Kimi-K2.7-Code-MXFP4 license Visit here:

https://choosealicense.com/licenses/modified-mit

Kimi-K2.7-Code-MXFP4 huggingface.co

Kimi-K2.7-Code-MXFP4 huggingface.co is an AI model on huggingface.co that provides Kimi-K2.7-Code-MXFP4's model effect (), which can be used instantly with this amd Kimi-K2.7-Code-MXFP4 model. huggingface.co supports a free trial of the Kimi-K2.7-Code-MXFP4 model, and also provides paid use of the Kimi-K2.7-Code-MXFP4. Support call Kimi-K2.7-Code-MXFP4 model through api, including Node.js, Python, http.

Kimi-K2.7-Code-MXFP4 huggingface.co Url

https://huggingface.co/amd/Kimi-K2.7-Code-MXFP4

amd Kimi-K2.7-Code-MXFP4 online free

Kimi-K2.7-Code-MXFP4 huggingface.co is an online trial and call api platform, which integrates Kimi-K2.7-Code-MXFP4's modeling effects, including api services, and provides a free online trial of Kimi-K2.7-Code-MXFP4, you can try Kimi-K2.7-Code-MXFP4 online for free by clicking the link below.

amd Kimi-K2.7-Code-MXFP4 online free url in huggingface.co:

https://huggingface.co/amd/Kimi-K2.7-Code-MXFP4

Kimi-K2.7-Code-MXFP4 install

Kimi-K2.7-Code-MXFP4 is an open source model from GitHub that offers a free installation service, and any user can find Kimi-K2.7-Code-MXFP4 on GitHub to install. At the same time, huggingface.co provides the effect of Kimi-K2.7-Code-MXFP4 install, users can directly use Kimi-K2.7-Code-MXFP4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Kimi-K2.7-Code-MXFP4 install url in huggingface.co:

https://huggingface.co/amd/Kimi-K2.7-Code-MXFP4

Url of Kimi-K2.7-Code-MXFP4

Kimi-K2.7-Code-MXFP4 huggingface.co Url

Provider of Kimi-K2.7-Code-MXFP4 huggingface.co

amd
ORGANIZATIONS

Other API from amd

huggingface.co

Total runs: 48.7K
Run Growth: -231.4K
Growth Rate: -475.38%
Updated:Abril 14 2026
huggingface.co

Total runs: 30.2K
Run Growth: -55.8K
Growth Rate: -184.81%
Updated:Julho 17 2026
huggingface.co

Total runs: 28.7K
Run Growth: -18.3K
Growth Rate: -63.93%
Updated:Junho 19 2026
huggingface.co

Total runs: 15.3K
Run Growth: -51.1K
Growth Rate: -334.85%
Updated:Julho 01 2026
huggingface.co

Total runs: 8.3K
Run Growth: 847
Growth Rate: 10.20%
Updated:Outubro 09 2024
huggingface.co

Total runs: 4.1K
Run Growth: -2.7K
Growth Rate: -66.39%
Updated:Julho 27 2026
huggingface.co

Total runs: 2.7K
Run Growth: 2.6K
Growth Rate: 95.64%
Updated:Junho 15 2026
huggingface.co

Total runs: 2.1K
Run Growth: -6.4K
Growth Rate: -311.25%
Updated:Agosto 12 2025
huggingface.co

Total runs: 1.6K
Run Growth: 743
Growth Rate: 46.32%
Updated:Junho 19 2026
huggingface.co

Total runs: 1.6K
Run Growth: 565
Growth Rate: 35.36%
Updated:Junho 26 2025
huggingface.co

Total runs: 1.2K
Run Growth: -126
Growth Rate: -10.79%
Updated:Maio 27 2026
huggingface.co

Total runs: 943
Run Growth: -1.1K
Growth Rate: -119.41%
Updated:Junho 19 2026
huggingface.co

Total runs: 808
Run Growth: 55
Growth Rate: 6.81%
Updated:Novembro 03 2025
huggingface.co

Total runs: 733
Run Growth: 430
Growth Rate: 58.66%
Updated:Novembro 18 2025
huggingface.co

Total runs: 610
Run Growth: 165
Growth Rate: 27.05%
Updated:Novembro 18 2025
huggingface.co

Total runs: 484
Run Growth: -237
Growth Rate: -48.97%
Updated:Novembro 15 2025
huggingface.co

Total runs: 473
Run Growth: 71
Growth Rate: 15.01%
Updated:Junho 06 2025
huggingface.co

Total runs: 447
Run Growth: -716
Growth Rate: -160.18%
Updated:Janeiro 22 2026