---
title: DeepSeek-V4.1-Flash-1017-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.1-Flash-1017-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.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken.md"
repository: T-HEAD/DeepSeek-V4.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
last_updated: 2026-11-12
license: mit
model_type:
  - deepseek_v41
architectures:
  - DeepseekV41ForCausalLM
base_model:
  - deepseek-ai/DeepSeek-V4.1-Flash-1017
base_model_relation: quantized
parameters: 502.0B
tensor_type:
  - U8
  - F32
  - BF16
  - F8_E4M3
  - F8_E8M0
library_name:
  - safetensors
downloads: 1702
stars: 4
---

# DeepSeek-V4.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken

> DeepSeek-V4.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken - T-HEAD 在 ModelScope 开源的模型。Release Date: 2026-11-05 Model Architecture: DeepseekV41ForCausalLM Input: Image-Text Output: Text Inference Engine: SGLang…

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

- **Repository**: T-HEAD/DeepSeek-V4.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
- **License**: mit
- **Parameters**: 502.0B
- **Base model**: deepseek-ai/DeepSeek-V4.1-Flash-1017
- **Downloads**: 1702
- **Stars**: 4
- **Last updated**: 2026-11-12

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

---

# Model Overview

- **Release Date:** 2026-11-05
- **Model Architecture:** DeepseekV41ForCausalLM
  - **Input:** Image-Text
  - **Output:** Text
- **Inference Engine:** [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
  - **engram:** `embed`
    - **Weight quantization:** MXFP8, Static, Per-Group
  - **mtp:** `main_proj` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token

This model was built with DeepSeek-V4.1-Flash-1017 model by applying MXFP4 and FP8 quantization.

# Deployment
### Use with SGLang

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

## Evaluation
The model was evaluated on C-EVAL GSM8K LongBench_V2 MM_Star benchmarks. 

### Accuracy

<table>
  <tr>
   <td><strong>Benchmark</strong>
   </td>
   <td><strong>DeepSeek-V4.1-Flash-1017</strong>
   </td>
   <td><strong>DeepSeek-V4.1-Flash-1017-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>C-EVAL
   </td>
   <td>94.35
   </td>
   <td>95.02
   </td>
   <td>100.71%
   </td>
  </tr>
  <tr>
   <td>GSM8K
   </td>
   <td>97.19
   </td>
   <td>96.59
   </td>
   <td>99.38%
   </td>
  </tr>
  <tr>
   <td>LongBench_V2
   </td>
   <td>68.33
   </td>
   <td>67.78
   </td>
   <td>99.20%
   </td>
  </tr>
  <tr>
   <td>MM_Star
   </td>
   <td>80.53
   </td>
   <td>80.73
   </td>
   <td>100.25%
   </td>
  </tr>
</table>

### Reproduction

The C-EVAL GSM8K LongBench_V2 MM_Star results were obtained using the `EvalScope` and `SGLang` framework.

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

#### Launching server
```
MODEL_PATH=<Path to DeepSeek-V4.1-Flash-1017-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken>
SGLANG_USE_MODELSCOPE=true sglang serve --model-path $MODEL_PATH \
  --tp-size 8 --mem-fraction-static 0.75 --page-size 64 --deepep-mode auto \
  --trust-remote-code --chunked-prefill-size 19968 --dist-timeout 60000 \
  --enable-prefill-cp --cp-strategy interleave --watchdog-timeout 60000 \
  --served-model-name DeepSeek-V4.1-Flash-1017 --enable-cache-report \
  --reasoning-parser auto --tool-call-parser auto --log-level info \
  --enable-metrics --decode-log-interval 1 --cuda-graph-max-bs-decode 64 \
  --disable-custom-all-reduce --moe-a2a-backend deepep --disable-shared-experts-fusion \
  --host 0.0.0.0 \
  --port 8999 \
```

#### Evaluating model in a new terminal
```
evalscope eval \
  --model DeepSeek-V4.1-Flash-1017 --api-url http://127.0.0.1:8999/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": 256000, "temperature": 1, "top_p": 1, "n": 1, "extra_body": {"chat_template_kwargs": {"thinking": true}, "reasoning_effort": "high"}}' \
  --timeout 60000 --stream --work-dir outputs
```

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