Model Details

This model is an NVFP4 (mixed NVFP4 experts / MXFP8 linear) model of deepseek-ai/DeepSeek-V4-Flash generated by intel/auto-round using RTN. Please follow the license of the original model.

  • NVFP4: routed experts, standard W4A4 with group size 16
  • MXFP8: other quantized linear layers, including wo_a, with group size 32
  • Kept in BF16: router / embeddings / lm_head and excluded projections

NVFP4 uses calibration for static activation scales; quantization is RTN with zero optimization iterations, not model-free.

How to Use

Environment

Tested on Linux with 2 NVIDIA B200 GPUs, tensor parallelism 2, and Python 3.12.3:

Package Tested version
vLLM 0.33.0
PyTorch 2.14.0
Transformers 5.20.2
compressed-tensors 0.17.0
FlashInfer 0.7.2.post1

Install vLLM and the Intel Neural Compressor vLLM plugin. The plugin revision is pinned to the tested implementation:

pip install vllm==0.33.0
pip install --no-deps "git+https://github.com/intel/neural-compressor.git@f19930c5417cdbe182fd0b91a476cdd288fe2a9c#subdirectory=benchmark/vllm-qdq-plugin"

In vLLM 0.33.0, XPU supports grouped MXFP8 wo_a, but the CUDA attention path does not support this layout. The plugin dequantizes wo_a to BF16 for CUDA inference, retaining weight quantization loss but bypassing activation quantization. Other layers are unchanged; runtime weight memory increases.

vLLM Usage

No local source edits or adapter files are required.

export CUDA_VISIBLE_DEVICES=0,1
export VLLM_DEEPSEEK_V4_WO_A_BF16=1

vllm serve intel-ai/DeepSeek-V4-Flash-NVFP4-Mixed-CT-AutoRound \
  --served-model-name dsv4-flash-nvfp4 \
  --trust-remote-code \
  --tensor-parallel-size 2 \
  --max-model-len 524288 \
  --max-num-seqs 32 \
  --max-num-batched-tokens 4096 \
  --gpu-memory-utilization 0.70 \
  --kv-cache-dtype fp8 \
  --block-size 256 \
  --attention-config '{"indexer_kv_dtype":"mxfp4"}' \
  --enable-chunked-prefill \
  --reasoning-parser deepseek_v4 \
  --default-chat-template-kwargs '{"thinking":true,"enable_thinking":true}' \
  --kernel-config '{"enable_flashinfer_autotune":false}' \
  --host 127.0.0.1 \
  --port 8090

This configuration enables thinking and does not use --enforce-eager. Full-model startup and three concurrent thinking requests passed with the packaged plugin; all 43 wo_a layers on each TP rank used the BF16 fallback. No additional local runtime adapter was loaded for this smoke test.

Evaluation

Results were evaluated with EvalScope and thinking enabled. PIQA and HellaSwag report acc, not acc_norm; MMLU is the equal arithmetic mean of the 57 subject accuracies, not a sample-weighted accuracy. AIME26 uses 30 questions with 10 repeats (300 predictions); GPQA Diamond uses 198 questions with 5 repeats (990 predictions). Scores are percentages.

Benchmark Base Model NVFP4 Mixed Recovery
AIME26 96.00 96.33 100.34%
GPQA Diamond 87.37 85.90 98.32%
PIQA 95.16 95.05 99.88%
MMLU (57-subject mean) 92.21 92.23 100.02%
MMLU-Pro 85.37 85.21 99.81%
MATH-500 96.80 95.80 98.97%
HellaSwag 86.34 84.93 98.37%
GSM8K 96.74 96.89 100.16%

Generate the Model

uv pip install auto-round
auto-round \
    --model_name deepseek-ai/DeepSeek-V4-Flash \
    --scheme MXFP8 \
    --layer_config '{mlp.experts:{scheme:NVFP4}}' \
    --ignore_layers "mlp.gate,compressor,indexer,lm_head" \
    --iters 0 \
    --disable_opt_rtn \
    --disable_model_free \
    --device_map auto \
    --format llm_compressor \
    --output_dir DeepSeek-V4-Flash-NVFP4-Mixed-CT-AutoRound

The evaluated checkpoint also includes native-name export corrections and MXFP8 export of all 43 wo_a projections; the command records the quantization recipe, not a verified end-to-end reproduction.

Limitations and License

This model inherits the base model's limitations and may generate inaccurate or biased content. Evaluate safety and accuracy before deployment, and follow the base model's license and usage guidance.

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 github

Signed-off-by: Wang, Chang chang1.wang@intel.com

Downloads last month
24
Safetensors
Model size
163B params
Tensor type
I64
·
F32
·
BF16
·
F8_E4M3
·
U8
·
I8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for intel-ai/DeepSeek-V4-Flash-NVFP4-Mixed-CT-AutoRound

Quantized
(139)
this model

Collection including intel-ai/DeepSeek-V4-Flash-NVFP4-Mixed-CT-AutoRound

Paper for intel-ai/DeepSeek-V4-Flash-NVFP4-Mixed-CT-AutoRound