---
title: GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
canonical_url: "https://www.modelscope.cn/models/T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken"
md_url: "https://www.modelscope.cn/models/T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken.md"
repository: T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
last_updated: 2026-08-21
license: mit
model_type:
  - glm_moe_dsa
architectures:
  - GlmMoeDsaForCausalLM
base_model:
  - zai-org/GLM-5.1
base_model_relation: quantized
parameters: 386.6B
tensor_type:
  - BF16
  - F32
  - U8
  - F8_E4M3
library_name:
  - safetensors
  - pytorch
frameworks:
  - Pytorch
downloads: 170316
stars: 0
---

# GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken

> GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken - T-HEAD 在 ModelScope 开源的模型。📢 Note: This repository was renamed from GLM-5.1-MXFP4-FP8 on 2026-08-21. The weights are unchanged; only the model name has been updated.

T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken 是 ModelScope 魔搭社区上的 386.6B 参数机器学习模型，采用 mit 许可，基于 zai-org/GLM-5.1 构建。

- **Repository**: T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken
- **License**: mit
- **Parameters**: 386.6B
- **Base model**: zai-org/GLM-5.1
- **Downloads**: 170316
- **Stars**: 0
- **Last updated**: 2026-08-21

Source: https://www.modelscope.cn/models/T-HEAD/GLM-5.1-MoE-Quant-W-MXFP4-A-MXFP4-Dense-Quant-W-FP8-PerChannel-A-FP8-PerToken

---

📢 Note: This repository was renamed from GLM-5.1-MXFP4-FP8 on 2026-08-21. The weights are unchanged; only the model name has been updated.

# Model Overview

- **Model Architecture:** GlmMoeDsaForCausalLM
  - **Input:** Text
  - **Output:** Text
- **Inference Engine:** [vLLM](https://docs.vllm.ai/en/latest/)
- **Quantization:**
  - **dense (layers 0-2):** `up_proj`, `gate_proj`, `down_proj` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token
  - **moe:** `up_proj`, `gate_proj`, `down_proj` 
    - **Weight quantization:** OCP MXFP4, Static
    - **Activation quantization:** OCP MXFP4, Dynamic
  - **shared_experts:** `up_proj`, `gate_proj`, `down_proj` 
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token
  - **self_attn:** `q_a_proj`, `q_b_proj`, `kv_a_proj_with_mqa`, `kv_b_proj`, `o_proj`, `wq_b`, `wk`
    - **Weight quantization:** FP8, Static, Per-Channel
    - **Activation quantization:** FP8, Dynamic, Per-Token

This model was built with GLM-5.1 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 IFEval GSM8K C-EVAL benchmarks. 

### Accuracy

<table>
  <tr>
   <td><strong>Benchmark</strong>
   </td>
   <td><strong>GLM-5.1</strong>
   </td>
   <td><strong>GLM-5.1-MXFP4-FP8 (this model)</strong>
   </td>
   <td><strong>Recovery</strong>
   </td>
  </tr>
  <tr>
   <td>IFEval
   </td>
   <td>93.5
   </td>
   <td>93.9
   </td>
   <td>100.42%
   </td>
  </tr>
  <tr>
   <td>GSM8K
   </td>
   <td>96.8
   </td>
   <td>97.2
   </td>
   <td>100.41%
   </td>
  </tr>
  <tr>
   <td>C-Eval
   </td>
   <td>93.1
   </td>
   <td>93.6
   </td>
   <td>100.53%
   </td>
  </tr>
</table>

### Reproduction

The IFEval GSM8K C-EVAL results were obtained using the `EvalScope` and `vLLM` framework.

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

#### Launching server
```
MODEL_PATH=<Path to GLM-5.1-MXFP4-FP8>
VLLM_USE_MODELSCOPE=true vllm serve $MODEL_PATH \
  --tensor-parallel-size 4 \
  --pipeline-parallel-size 1 \
  --trust-remote-code --enable-prefix-caching \
  --speculative-config '{"method": "mtp", "num_speculative_tokens": 2}' \
  --served-model-name GLM-5.1
```

#### Evaluating model in a new terminal
```
evalscope eval \
  --model GLM-5.1 --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 128 \
  --generation-config '{"max_tokens": 32768, "temperature": 1.0, "top_p": 0.95, "n": 1}' \
  --timeout 60000 --stream --work-dir outputs
```

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