File size: 2,151 Bytes
8052c23
 
 
48db223
 
 
 
 
9b3df06
9ed9b1a
 
793efd0
 
7997893
f6ce351
7997893
 
 
 
df91633
7997893
793efd0
 
 
 
 
 
 
 
 
 
 
 
 
1bf2705
 
36c184c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1bf2705
 
 
 
 
 
04d52f8
9eaeada
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
---
base_model:
- zai-org/GLM-5.3-Flash
tags:
- vllm
- llm-compressor
- nvfp4
- fp4
- glm5_next
pipeline_tag: image-text-to-text
library_name: transformers
---

# RedHatAI/GLM-5.3-Flash-NVFP4
This model is a quantized version of [zai-org/GLM-5.3-Flash](https://huggingface.co/zai-org/GLM-5.3-Flash).

# Model Optimizations
This model was obtained by quantizing the weights of zai-org/GLM-5.3-Flash to NVFP4, ready for inference with vLLM. 

Weights are quantized to FP4 with a group size of 16, and activations are quantized to FP4 with local per-group scaling. Only the weights and activations of the linear operators within transformer blocks are quantized using [LLM Compressor](https://github.com/vllm-project/llm-compressor). Vision tower, embedding, and output head layers are kept in their original precision.

# vLLM Serving

```bash
docker run --gpus all \
  --privileged --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e VLLM_ENGINE_READY_TIMEOUT_S=3600 \
  vllm/vllm-openai:glm53-flash RedHatAI/GLM-5.3-Flash-NVFP4 \
  --tensor-parallel-size 4 \
  --no-enable-flashinfer-autotune \
  --tool-call-parser glm47 \
  --enable-auto-tool-choice \
  --reasoning-parser glm45
```

## Enable Speculative Decoding 

```
docker run --gpus all \
  --privileged --ipc=host -p 8000:8000 \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e VLLM_ENGINE_READY_TIMEOUT_S=3600 \
  -e PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
  vllm/vllm-openai:glm53-flash RedHatAI/GLM-5.3-Flash-NVFP4 \
  --tensor-parallel-size 4 \
  --no-enable-flashinfer-autotune \
  --tool-call-parser glm47 \
  --enable-auto-tool-choice \
  --reasoning-parser glm45 \
  --gpu-memory-utilization 0.85 \
  --disable-custom-all-reduce \
  --speculative-config '{"method":"mtp","num_speculative_tokens":5}'
```

# Evaluations 

| Benchmark | Metric | Avg Score |
|---|---|---|
| GPQA Diamond | `gpqa_pass@k:k=1` (3 seeds) | **90.57%** |
| AIME25 | `pass@k:k=1&n=1` (8 seeds) | **86.67%** |
| GSM8K Platinum CoT | `exact_match,strict-match` (3 seeds) | **97.74%** |
| MATH-500           | `pass@k:k=1&n=1` (3 seeds)           | **94.87%** |