Files changed (2) hide show
  1. README.md +110 -4
  2. tokenizer_config.json +9 -10
README.md CHANGED
@@ -2,10 +2,116 @@
2
  license: other
3
  license_name: modified-mit
4
  license_link: LICENSE
 
 
5
  ---
6
 
7
- **Disclaimer**
8
 
9
- This model is provided for research and evaluation purposes only.
10
- Quantization may introduce accuracy or behavioral differences compared to the original model.
11
- Users are responsible for validating the model in their own environments and complying with the original model license.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: other
3
  license_name: modified-mit
4
  license_link: LICENSE
5
+ base_model:
6
+ - moonshotai/Kimi-K2.5
7
  ---
8
 
9
+ # Model Overview
10
 
11
+ - **Model Architecture:** Kimi-K2.5
12
+ - **Input:** Text, Image, Video
13
+ - **Output:** Text
14
+ - **Supported Hardware Microarchitecture:** AMD MI300/MI350/MI355 (emulation)
15
+ - **ROCm:** 7.2.2
16
+ - **Operating System(s):** Linux
17
+ - **Inference Engine:** [vLLM](https://docs.vllm.ai/en/latest/)
18
+ - **Model Optimizer:** [AMD-Quark](https://quark.docs.amd.com/latest/index.html) (V0.12)
19
+ - **Quantized layers:** `experts` and `shared_experts`
20
+ - **Weight quantization:** NVFP4, Static
21
+ - **Activation quantization:** NVFP4, Dynamic
22
+ - **Calibration Dataset:** [Pile](https://huggingface.co/datasets/mit-han-lab/pile-val-backup)
23
+
24
+ This model was built with Kimi-K2.5 model by applying [AMD-Quark](https://quark.docs.amd.com/latest/index.html) for NVFP4 quantization.
25
+
26
+ # Model Quantization
27
+
28
+ The model was quantized from [moonshotai/Kimi-K2.5](https://huggingface.co/moonshotai/Kimi-K2.5) using [AMD-Quark](https://quark.docs.amd.com/latest/index.html). The weights and activations are quantized to NVFP4.
29
+
30
+ **Quantization scripts:**
31
+ ```
32
+ cd Quark/examples/torch/language_modeling/llm_ptq/
33
+ MODEL_DIR=moonshotai/Kimi-K2.5
34
+ export output_dir=amd/Kimi-K2.5-NVFP4
35
+ exclude_layers="*self_attn* *mlp.gate *lm_head *mm_projector* *vision_tower*"
36
+
37
+ python3 quantize_quark.py --model_dir $MODEL_DIR \
38
+ --quant_scheme nvfp4 \
39
+ --num_calib_data 128 \
40
+ --exclude_layers $exclude_layers \
41
+ --model_export hf_format \
42
+ --output_dir $output_dir \
43
+ --trust_remote_code \
44
+ --multi_gpu balanced
45
+ ```
46
+
47
+ # Deployment
48
+ ### Use with vLLM
49
+
50
+ This model can be deployed efficiently using the [vLLM](https://docs.vllm.ai/en/latest/) backend.
51
+
52
+ ## Evaluation
53
+ The model was evaluated on GSM8K benchmarks.
54
+
55
+ ### Accuracy
56
+
57
+ <table>
58
+ <tr>
59
+ <td><strong>Benchmark</strong>
60
+ </td>
61
+ <td><strong>Kimi-K2.5 </strong>
62
+ </td>
63
+ <td><strong>Kimi-K2.5-NVFP4(this model) </strong>
64
+ </td>
65
+ <td><strong>Recovery</strong>
66
+ </td>
67
+ </tr>
68
+ <tr>
69
+ <td>GSM8K (flexible-extract)
70
+ </td>
71
+ <td>93.56
72
+ </td>
73
+ <td>92.87
74
+ </td>
75
+ <td>99.26%
76
+ </td>
77
+ </tr>
78
+
79
+ </tr>
80
+ </table>
81
+
82
+ ### Reproduction
83
+
84
+ The GSM8K result was obtained using the `lm-evaluation-harness` framework, based on the Docker image `rocm/vllm-dev:nightly_main_20260603`.
85
+
86
+ Install the lm-eval `(Version: 0.4.12)` in container first.
87
+ ```
88
+ pip install lm-eval
89
+ pip install lm-eval[api]
90
+ ```
91
+
92
+ #### Launching server
93
+ ```
94
+ export VLLM_ROCM_USE_AITER=1
95
+ vllm serve amd/Kimi-K2.5-NVFP4 -tp 8 \
96
+ --mm-encoder-tp-mode data \
97
+ --tool-call-parser kimi_k2 \
98
+ --reasoning-parser kimi_k2 \
99
+ --enforce-eager \
100
+ --trust-remote-code
101
+ ```
102
+
103
+ #### Evaluating model in a new terminal
104
+ ```
105
+ lm_eval \
106
+ --model local-completions \
107
+ --model_args "model=amd/Kimi-K2.5-NVFP4,kv_cache_dtype=fp8,base_url=http://0.0.0.0:8000/v1/completions,tokenized_requests=False,tokenizer_backend=None,num_concurrent=32" \
108
+ --tasks gsm8k \
109
+ --num_fewshot 5 \
110
+ --batch_size 1
111
+ ```
112
+ ```
113
+
114
+
115
+ # License
116
+ Modifications Copyright(c) 2026 Advanced Micro Devices, Inc. All rights reserved.
117
+
tokenizer_config.json CHANGED
@@ -199,19 +199,18 @@
199
  "<|media_end|>",
200
  "<|media_pad|>"
201
  ],
202
- "auto_map": {
203
- "AutoTokenizer": [
204
- "tokenization_kimi.TikTokenTokenizer",
205
- null
206
- ]
207
- },
208
  "bos_token": "[BOS]",
209
  "clean_up_tokenization_spaces": false,
210
  "eos_token": "[EOS]",
211
  "extra_special_tokens": {},
212
  "model_max_length": 1000000000000000019884624838656,
213
- "pad_token": "[EOS]",
214
- "padding_side": "left",
215
  "tokenizer_class": "TikTokenTokenizer",
216
- "unk_token": "[UNK]"
217
- }
 
 
 
 
 
 
 
199
  "<|media_end|>",
200
  "<|media_pad|>"
201
  ],
 
 
 
 
 
 
202
  "bos_token": "[BOS]",
203
  "clean_up_tokenization_spaces": false,
204
  "eos_token": "[EOS]",
205
  "extra_special_tokens": {},
206
  "model_max_length": 1000000000000000019884624838656,
207
+ "pad_token": "[PAD]",
 
208
  "tokenizer_class": "TikTokenTokenizer",
209
+ "unk_token": "[UNK]",
210
+ "auto_map": {
211
+ "AutoTokenizer": [
212
+ "tokenization_kimi.TikTokenTokenizer",
213
+ null
214
+ ]
215
+ }
216
+ }