File size: 4,808 Bytes
6e1ae40
d7fb146
 
6e1ae40
 
 
 
d7fb146
 
 
 
 
6e1ae40
 
d7fb146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0826b00
d7fb146
 
 
0826b00
d7fb146
 
 
 
 
 
0826b00
d7fb146
 
 
 
 
 
 
 
 
 
 
 
 
 
0826b00
d7fb146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0826b00
d7fb146
 
 
 
 
0826b00
d7fb146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
base_model:
- MiniMaxAI/MiniMax-M2.7
license: other
pipeline_tag: text-generation
library_name: transformers
tags:
- auto-round
- nvfp4-plus
- nvfp4
- 4-bit
- moe
---


## Model Details

This model is an NVFP4 E5M3 W4A4 quantized version of MiniMaxAI/MiniMax-M2.7 (https://huggingface.co/MiniMaxAI/MiniMax-M2.7), generated by Intel AutoRound (https://github.com/intel/auto-round) using model-free quantization. Please follow the license of the original model.

NVFP4 E5M3 uses FP4 E2M1 elements for weights and activations, unsigned E5M3 block scales with group size 16, and no tensor-wise global scale. Activations use dynamic per-block scaling.

Selected Linear layers, including attention projections and MoE expert projections, are quantized. Excluded modules, including MoE routers, embeddings, and lm_head, retain their original precision.

KV cache and attention softmax are not part of this checkpoint's W4A4 quantization.

| Property | Value |
|---|---|
| Base model | MiniMaxAI/MiniMax-M2.7 |
| Quantization | NVFP4 E5M3 W4A4 |
| Weight / activation element | FP4 E2M1 |
| Block scale | Unsigned E5M3 |
| Group size | 16 |
| Tensor-wise global scale | None |
| Quantization workflow | Model-free |
| AutoRound version | 0.17.0 |
| Packing format | auto_round:llm_compressor_nvfp4_e5m3 |

## How to Use

### Environment

The checkpoint requires an inference implementation supporting AutoRound's nvfp4_v2 data type and E5M3 block scales.

The evaluated setup used vLLM 0.32.0 with the QDQ plugin from Intel Neural Compressor PR #2621 (https://github.com/intel/neural-compressor/pull/2621). Install the plugin in the same Python environment as vLLM:

```bash
git clone https://github.com/intel/neural-compressor.git
cd neural-compressor
python -m pip install --no-build-isolation -e benchmark/vllm-qdq-plugin/
```

This inference path uses FP4 Marlin kernels with activation quantize-dequantize (QDQ), rather than native NVFP4 hardware computation.

### vLLM Usage

Replace the model path with your local checkpoint directory:
```bash
NCCL_NVLS_ENABLE=0 \
VLLM_QDQ=1 \
vllm serve /path/to/MiniMax-M2.7-NVFP4-E5M3-AutoRound \
  --dtype bfloat16 \
  --trust-remote-code \
  --tool-call-parser minimax_m2 \
  --enable-auto-tool-choice \
  --reasoning-parser minimax_m2 \
  --served-model-name minimax-m27 \
  --enable-chunked-prefill \
  --max-model-len 102400 \
  --kv-cache-dtype fp8 \
  --gpu-memory-utilization 0.85 \
  --port 8001
```
Adjust context length and GPU memory utilization according to available hardware. FP8 KV cache is a runtime setting, separate from the checkpoint's weight and activation quantization.

## Evaluation

The quantized scores below are calculated from five evaluation runs. For each benchmark, one highest and one lowest score are removed, and the remaining three scores are averaged.

Recovery is the quantized score divided by the supplied original-model baseline. Scores are percentages.

| Benchmark | Original Model | NVFP4 E5M3 | Recovery |
|---|---:|---:|---:|
| AIME 2025 | 85.56 | 87.78 | 102.59% |
| GPQA Diamond | 88.72 | 88.38 | 99.62% |
| GSM8K | 96.36 | 96.34 | 99.98% |
| PIQA | 94.00 | 94.23 | 100.24% |

## Generate the Model

```bash
auto_round MiniMaxAI/MiniMax-M2.7 \
  --model_free \
  --scheme NVFP4_E5M3 \
  --format auto_round \
  --output_dir ./MiniMax-M2.7-NVFP4-E5M3-AutoRound
```

## Ethical Considerations and Limitations

The model can produce factually incorrect output, and should not be relied on to produce factually accurate information. Because of the limitations of the pretrained model and the finetuning datasets, it is possible that this model could generate lewd, biased or otherwise offensive outputs.
Therefore, before deploying any applications of the model, developers should perform safety testing.

## Caveats and Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Here are a couple of useful links to learn more about Intel's AI software:

- [Intel Neural Compressor](https://github.com/intel/neural-compressor)
- [AutoRound](https://github.com/intel/auto-round)

## Disclaimer

The license on this model does not constitute legal advice. We are not responsible for the actions of third parties who use this model. Please consult an attorney before using this model for commercial purposes.

## Cite

```
@article{cheng2023optimize,
  title={Optimize weight rounding via signed gradient descent for the quantization of llms},
  author={Cheng, Wenhua and Zhang, Weiwei and Shen, Haihao and Cai, Yiyang and He, Xin and Lv, Kaokao and Liu, Yi},
  journal={arXiv preprint arXiv:2309.05516},
  year={2023}
}
```

[arxiv](https://arxiv.org/abs/2309.05516) [github](https://github.com/intel/auto-round)


Signed-off-by: Heng, Guo <heng.guo@intel.com>