---
title: DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
canonical_url: "https://www.modelscope.cn/models/T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken"
md_url: "https://www.modelscope.cn/models/T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken.md"
repository: T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
last_updated: 2026-09-01
license: mit
model_type:
  - deepseek_v4
architectures:
  - DeepseekV4ForCausalLM
base_model:
  - deepseek-ai/DeepSeek-V4-Flash-0731
base_model_relation: quantized
parameters: 165.3B
tensor_type:
  - BF16
  - F32
  - F8_E4M3
  - I64
  - U8
library_name:
  - safetensors
downloads: 1564
stars: 4
---

# DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken

> DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken - T-HEAD 在 ModelScope 开源的模型。Model Architecture: DeepseekV4ForCausalLM Input: Text Output: Text Inference Engine: vLLM/SGLang Quantization: moe: w1, w2, w3 - Weight…

T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken 是 ModelScope 魔搭社区上的 165.3B 参数机器学习模型，采用 mit 许可，基于 deepseek-ai/DeepSeek-V4-Flash-0731 构建。

- **Repository**: T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
- **License**: mit
- **Parameters**: 165.3B
- **Base model**: deepseek-ai/DeepSeek-V4-Flash-0731
- **Downloads**: 1564
- **Stars**: 4
- **Last updated**: 2026-09-01

Source: https://www.modelscope.cn/models/T-HEAD/DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken

---

# Model Overview

- **Model Architecture:** DeepseekV4ForCausalLM
  - **Input:** Text
  - **Output:** Text
- **Inference Engine:** [vLLM](https://docs.vllm.ai/en/latest/)/[SGLang](https://docs.sglang.io/)
- **Quantization:**
  - **moe:** `w1`, `w2`, `w3` 
    - **Weight quantization:** OCP MXFP4, Static
    - **Activation quantization:** OCP MXFP4, Dynamic
  - **shared_experts:** `w1`, `w2`, `w3` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token
  - **attn:** `wq_a`, `wq_b`, `wkv`, `wo_a`, `wo_b`, `indexer.wq_b` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token
  - **mtp:** `main_proj` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token

This model was built with DeepSeek-V4-Flash-0731 model by applying MXFP4 and FP8 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 MMLU-Pro benchmarks. 

### Accuracy

<table>
  <tr>
   <td><strong>Benchmark</strong>
   </td>
   <td><strong>DeepSeek-V4-Flash-0731</strong>
   </td>
   <td><strong>DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken (this model)</strong>
   </td>
   <td><strong>Recovery</strong>
   </td>
  </tr>
  <tr>
   <td>GSM8K
   </td>
   <td>96.89
   </td>
   <td>97.04
   </td>
   <td>100.2%
   </td>
  </tr>
  <tr>
   <td>MMLU-Pro
   </td>
   <td>86.83
   </td>
   <td>86.89
   </td>
   <td>100.1%
   </td>
  </tr>
</table>

### Reproduction

The GSM8K MMLU-Pro results were obtained using the `EvalScope` and `vLLM` framework.

Install T-head vLLM `(Version: 0.25.0)` and EvalScope `(Version: 1.5.1)` in container first.

#### Launching server
```
MODEL_PATH=<Path to DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken>
VLLM_USE_MODELSCOPE=true vllm serve $MODEL_PATH \
  --tensor-parallel-size 4 --pipeline-parallel-size 1 --trust-remote-code \
  --speculative-config '{"method":"dspark","num_speculative_tokens":7,"draft_sample_method":"greedy"}' \
  --served-model-name DeepSeek-V4-Flash-0731 --kv-cache-dtype fp8 --block-size 256 \
  --enable-prefix-caching --reasoning-parser deepseek_v4 -enable-auto-tool-choice \
  --tokenizer-mode deepseek_v4 --tool-call-parser deepseek_v4
```

#### Evaluating model in a new terminal
```
evalscope eval \
  --model DeepSeek-V4-Flash-0731 --api-url http://127.0.0.1:8000/v1  --api-key EMPTY \
  --eval-type openai_api --datasets gsm8k \
  --dataset-args '{"gsm8k": {"few_shot_num": 0, "filters": {"remove_until": "</think>"}}}' \
  --eval-batch-size 64 \
  --generation-config '{"max_tokens": 384000, "temperature": 1, "top_p": 1, "n": 1, "extra_body": {"reasoning_effort": "high", "chat_template_kwargs": {"thinking": true}}}' \
  --timeout 60000 --stream --work-dir outputs
```

### Use with SGLang

This model can be deployed efficiently using the [SGLang](https://docs.sglang.io/) backend.

## Evaluation
The model was evaluated on GSM8K MMLU-Pro benchmarks. 

### Accuracy

<table>
  <tr>
   <td><strong>Benchmark</strong>
   </td>
   <td><strong>DeepSeek-V4-Flash-0731</strong>
   </td>
   <td><strong>DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken (this model)</strong>
   </td>
   <td><strong>Recovery</strong>
   </td>
  </tr>
  <tr>
   <td>GSM8K
   </td>
   <td>96.97
   </td>
   <td>97.19
   </td>
   <td>100.2%
   </td>
  </tr>
  <tr>
   <td>MMLU-Pro
   </td>
   <td>87.14
   </td>
   <td>87.2
   </td>
   <td>100.1%
   </td>
  </tr>
</table>

### Reproduction

The GSM8K MMLU-Pro results were obtained using the `EvalScope` and `SGLang` framework.

Install T-head SGLang `(Version: 0.5.13)` and EvalScope `(Version: 1.5.1)` in container first.

#### Launching server
```
MODEL_PATH=<Path to DeepSeek-V4-Flash-0731-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken>
SGLANG_USE_MODELSCOPE=true python3 -m sglang.launch_server --model-path $MODEL_PATH \
  --tp-size 8 --mem-fraction-static 0.8 --speculative-algorithm EAGLE \
  --speculative-num-steps 2 --speculative-eagle-topk 1 --speculative-num-draft-tokens 3 \
  --deepep-mode auto --enable-dp-attention --dp-size 8 --trust-remote-code --watchdog-timeout 6000 \
  --dist-timeout 6000 --served-model-name DeepSeek-V4-Flash-0731 --speculative-attention-mode decode \
  --moe-a2a-backend deepep --moe-dense-tp-size 1 --cuda-graph-max-bs 64 \
  --enable-dp-lm-head --disable-piecewise-cuda-graph --enable-deepseek-v4-fp4-indexer \
  --reasoning-parser deepseek-v4 --tool-call-parser deepseekv4
```

#### Evaluating model in a new terminal
```
evalscope eval \
  --model DeepSeek-V4-Flash-0731 --api-url http://127.0.0.1:8000/v1  --api-key EMPTY \
  --eval-type openai_api --datasets gsm8k \
  --dataset-args '{"gsm8k": {"few_shot_num": 0, "filters": {"remove_until": "</think>"}}}' \
  --eval-batch-size 64 \
  --generation-config '{"max_tokens": 384000, "temperature": 1, "top_p": 1, "n": 1, "extra_body": {"reasoning_effort": "high", "chat_template_kwargs": {"thinking": true}}}' \
  --timeout 60000 --stream --work-dir outputs
```

# License
Copyright (c) 2026, T-Head (Shanghai) Semiconductor Co., Ltd.
