0xSero commited on
Commit
6e6af65
·
verified ·
1 Parent(s): 2745c74

Standardize model card (template rollout)

Browse files
Files changed (1) hide show
  1. README.md +59 -80
README.md CHANGED
@@ -2,17 +2,18 @@
2
  license: other
3
  license_name: glm-5
4
  license_link: https://huggingface.co/zai-org/GLM-5.1/blob/main/LICENSE
5
- base_model: 0xSero/GLM-5.1-555B-A14B-REAP
 
6
  tags:
7
- - reap
8
- - pruning
9
- - moe
10
- - expert-pruning
11
- - glm
12
- - gptq
13
- - w4a16
14
- - autoround
15
- - vllm
16
  library_name: transformers
17
  pipeline_tag: text-generation
18
  quantization_config:
@@ -22,9 +23,41 @@ quantization_config:
22
  sym: true
23
  desc_act: false
24
  checkpoint_format: gptq
 
25
  ---
26
 
27
- # GLM-5.1 — 25% Expert Pruned (REAP) — W4A16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  This is a **GPTQ 4-bit weight-quantized** variant of the 25% expert-pruned [`zai-org/GLM-5.1`](https://huggingface.co/zai-org/GLM-5.1) using [REAP](https://github.com/CerebrasResearch/reap) (Relative Expert Activation Pruning), produced with [AutoRound](https://github.com/intel/auto-round) for learned rounding optimization.
30
 
@@ -37,8 +70,8 @@ This is a **GPTQ 4-bit weight-quantized** variant of the 25% expert-pruned [`zai
37
  | Quantization | GPTQ W4A16 (int4 symmetric, group_size=128) |
38
  | Quantizer | auto-round 0.12.2 (200 iterations, SignSGD) |
39
  | Quantized size | **277 GB** (56 safetensor shards) |
40
- | BF16 source | [`0xSero/GLM-5.1-555B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP) |
41
- | GGUF variant | [`0xSero/GLM-5.1-555B-A14B-REAP-GGUF`](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GGUF) (325 GB, Q4_K_M) |
42
 
43
  ## Benchmark Results (GGUF Q4_K_M, inference mode, temp=0.8)
44
 
@@ -61,7 +94,7 @@ The GPTQ W4A16 uses the same learned rounding method (AutoRound) as the GGUF Q4_
61
  from vllm import LLM, SamplingParams
62
 
63
  llm = LLM(
64
- model="0xSero/GLM-5.1-555B-A14B-REAP-GPTQ-W4A16",
65
  tensor_parallel_size=4, # 4× B200 or 8× A100
66
  max_model_len=8192,
67
  trust_remote_code=True,
@@ -75,7 +108,7 @@ outputs = llm.generate(["Hello, world!"], params)
75
 
76
  ```bash
77
  python -m sglang.launch_server \
78
- --model-path 0xSero/GLM-5.1-555B-A14B-REAP-GPTQ-W4A16 \
79
  --tp 4 \
80
  --trust-remote-code
81
  ```
@@ -119,10 +152,10 @@ GPTQ packs 4-bit weights more efficiently with `group_size=128` symmetric quanti
119
 
120
  | Model | Prune % | Experts | Format | Size | Status |
121
  |-------|---------|---------|--------|------|--------|
122
- | [`0xSero/GLM-5.1-555B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP) | 25% | 192/256 | BF16 | 1.1T | Source checkpoint |
123
- | [`0xSero/GLM-5.1-555B-A14B-REAP-GGUF`](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GGUF) | 25% | 192/256 | GGUF Q4_K_M | 325G | llama.cpp serving |
124
  | **This model** | **25%** | **192/256** | **GPTQ W4A16** | **277G** | **vLLM/SGLang serving** |
125
- | [`0xSero/GLM-5.1-444B-A14B-REAP`](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP) | 40% | 154/256 | BF16 | 910G | Has repetition issues — use 25% |
126
 
127
  ## Support This Work
128
 
@@ -130,70 +163,16 @@ If you find these models useful, please consider supporting continued open-sourc
130
 
131
  **[donate.sybilsolutions.ai](https://donate.sybilsolutions.ai)**
132
 
133
- ## Citation
134
-
135
- If you use this model, please cite the [REAP paper](https://github.com/CerebrasResearch/reap) and [AutoRound](https://github.com/intel/auto-round).
136
-
137
- ## Sponsors
138
 
139
- Thank you for the kind sponsors, wouldn't be possible without them:
140
-
141
- - Nvidia
142
- - TNG Technology
143
- - Lambda
144
- - Prime Intellect
145
- - HotAisle
146
-
147
- <!-- GLM51_FAMILY_COMPAT_START -->
148
- ## GLM-5.1 REAP Family — Hardware Compatibility
149
-
150
- All variants in this family are REAP-pruned ([2510.13999](https://arxiv.org/abs/2510.13999)) descendants of [zai-org/GLM-5.1](https://huggingface.co/zai-org/GLM-5.1) (original: 744B params, 256 experts/MoE layer, 40B activated/token). Pick a variant based on your GPU architecture and available VRAM.
151
-
152
- ### Quick picker
153
-
154
- | You have | Use |
155
- |---|---|
156
- | 8× H100/H200 80GB (Hopper, sm_90) | **[GLM-5.1-555B-A14B-REAP-GPTQ-W4A16](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GPTQ-W4A16)** or **[GLM-5.1-555B-A14B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-NVFP4)** (NVFP4 on Hopper via `modelopt_fp4` + triton path) |
157
- | 4× RTX PRO 6000 Blackwell Workstation 96GB (sm_120) | **[GLM-5.1-478B-A42B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-478B-A42B-REAP-NVFP4)** (further-pruned 160-expert, 200k ctx) — this is the Blackwell Workstation reference config |
158
- | 4× B200 180GB (sm_100) | **[GLM-5.1-478B-A42B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-478B-A42B-REAP-NVFP4)** or **[GLM-5.1-555B-A14B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-NVFP4)** |
159
- | 8× B200 / Blackwell datacenter | **[GLM-5.1-555B-A14B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-NVFP4)** (192-expert, upstream's reference config with flashinfer + b12x backends) |
160
- | 8× A100 80GB (Ampere, sm_80) | **[GLM-5.1-444B-A14B-REAP](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP)** (BF16) or **[-GPTQ-W4A16](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GPTQ-W4A16)** |
161
- | CPU / Apple Silicon / consumer GPU with llama.cpp | **[GLM-5.1-555B-A14B-REAP-GGUF](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GGUF)** or **[GLM-5.1-444B-A14B-REAP-GGUF](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP-GGUF)** |
162
-
163
- ### Full family
164
-
165
- | Variant | Format | Size | Experts/layer | Activated/token | Min VRAM (TP) | Inference engine | Best on |
166
- |---|---|---|---|---|---|---|---|
167
- | [GLM-5.1-555B-A14B-REAP](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP) | BF16 | ~1125 GB | 192 | ~14B | 8× 141 GB (H200) | sglang / vllm | Hopper |
168
- | [GLM-5.1-444B-A14B-REAP](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP) | BF16 | ~910 GB | 154 | ~14B | 8× 114 GB | sglang / vllm | Ampere / Hopper |
169
- | [GLM-5.1-555B-A14B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-NVFP4) | NVFP4 (4-bit) | ~320 GB | 192 | ~14B | 4× 80 GB (B200), 8× 48 GB | sglang `--quantization modelopt_fp4` | Blackwell (native); Hopper (triton path) |
170
- | [GLM-5.1-478B-A42B-REAP-NVFP4](https://huggingface.co/0xSero/GLM-5.1-478B-A42B-REAP-NVFP4) | NVFP4 (4-bit) | ~285 GB | 160 | ~42B | 4× 80 GB Blackwell | sglang `--quantization modelopt_fp4` | 4× RTX PRO 6000 Blackwell @ 200k ctx |
171
- | [GLM-5.1-555B-A14B-REAP-GPTQ-W4A16](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GPTQ-W4A16) | GPTQ W4A16 | ~297 GB | 192 | ~14B | 4× 80 GB | vllm / sglang `--quantization gptq_marlin` | Hopper (best), works on Ampere |
172
- | [GLM-5.1-555B-A14B-REAP-GGUF](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-GGUF) | GGUF (Q2–Q8) | ~348 GB | 192 | ~14B | Varies by quant | llama.cpp | CPU / Apple / consumer CUDA |
173
- | [GLM-5.1-444B-A14B-REAP-GGUF](https://huggingface.co/0xSero/GLM-5.1-444B-A14B-REAP-GGUF) | GGUF (Q2–Q8) | ~283 GB | 154 | ~14B | Varies by quant | llama.cpp | CPU / Apple / consumer CUDA |
174
-
175
- ### Notes
176
-
177
- - **NVFP4 on Hopper (H100/H200)**: supported from sglang 25.10 / 0.5.10+ ([NVIDIA SGLang release notes](https://docs.nvidia.com/deeplearning/frameworks/sglang-release-notes/)); native Blackwell tensor-core FP4 still gives better throughput.
178
- - **NVFP4 on B200 / Blackwell datacenter (sm_100)**: use flashinfer attention + `b12x` or flashinfer MoE backends — this is the recipe in the original [555B-A14B-REAP-NVFP4 card](https://huggingface.co/0xSero/GLM-5.1-555B-A14B-REAP-NVFP4).
179
- - **NVFP4 on Blackwell Workstation (sm_120)**: use `--attention-backend triton` (not flashinfer — PCIe P2P atomics unavailable on the consumer board), `--moe-runner-backend cutlass`, `--fp4-gemm-backend flashinfer_cudnn`. See the [GLM-5.1-478B-A42B-REAP-NVFP4 card](https://huggingface.co/0xSero/GLM-5.1-478B-A42B-REAP-NVFP4) for the full 200k-ctx replication guide.
180
- - **GPTQ-W4A16 vs NVFP4**: same bit depth, different hardware path. NVFP4 has native Blackwell support and per-16 fp8 scales; GPTQ is group-quantized int4 with broader engine support.
181
- - **REAP expert count variants (555B/444B)**: different expert-retention ratios from the same base; 555B keeps more experts (higher quality ceiling), 444B trades quality for 20% less VRAM.
182
- - **Why NVFP4-478B-A42B-REAP is different**: it's double-pruned (256 → 192 → 160 experts), optimized for a specific Blackwell Workstation 4×96GB target at 200k context. The A42B suffix reflects measured activated params/token on the 160-expert MoE, not the REAP branding convention of the sibling variants.
183
-
184
- ### Pointer to active inference recipe
185
-
186
- See [GLM-5.1-478B-A42B-REAP-NVFP4 README](https://huggingface.co/0xSero/GLM-5.1-478B-A42B-REAP-NVFP4) for the full Blackwell Workstation replication guide (exact software pins, NSA patch, launch flags, measured 200k-ctx perf, sampling recommendations). Most of the sglang flags carry over to other NVFP4 variants on other hardware.
187
-
188
- ### Citation
189
- ```
190
  @misc{lasby2025reap,
191
- title={REAP the Experts: Why Pruning Prevails for One-Shot MoE compression},
192
- author={Mike Lasby and Ivan Lazarevich and Nish Sinnadurai and Sean Lie and Yani Ioannou and Vithursan Thangarasa},
193
- year={2025},
194
- eprint={2510.13999},
195
- archivePrefix={arXiv},
196
  }
197
  ```
198
 
199
- <!-- GLM51_FAMILY_COMPAT_END -->
 
 
2
  license: other
3
  license_name: glm-5
4
  license_link: https://huggingface.co/zai-org/GLM-5.1/blob/main/LICENSE
5
+ base_model:
6
+ - 0xSero/GLM-5.1-555B
7
  tags:
8
+ - autoround
9
+ - expert-pruning
10
+ - glm
11
+ - gptq
12
+ - moe
13
+ - pruning
14
+ - reap
15
+ - vllm
16
+ - w4a16
17
  library_name: transformers
18
  pipeline_tag: text-generation
19
  quantization_config:
 
23
  sym: true
24
  desc_act: false
25
  checkpoint_format: gptq
26
+ base_model_relation: quantized
27
  ---
28
 
29
+ > [!TIP]
30
+ > **[Support this work →](https://donate.sybilsolutions.ai)** · [X](https://x.com/0xsero) · [GitHub](https://github.com/0xsero) · [REAP paper](https://arxiv.org/abs/2510.13999) · [Cerebras REAP](https://huggingface.co/collections/cerebras/cerebras-reap)
31
+
32
+ # GLM-5.1-555B-W4A16
33
+
34
+ W4A16 quantization of [0xSero/GLM-5.1-555B](https://huggingface.co/0xSero/GLM-5.1-555B).
35
+
36
+ ## At a glance
37
+
38
+ | | |
39
+ |---|---|
40
+ | Base model | [0xSero/GLM-5.1-555B](https://huggingface.co/0xSero/GLM-5.1-555B) |
41
+ | Format | W4A16 |
42
+ | Total params | **555B** |
43
+ | Active / token | 14B |
44
+ | Experts / layer | 192 |
45
+ | Layers | 78 |
46
+ | Hidden size | 6144 |
47
+ | Context | 202,752 |
48
+ | On-disk size | 297 GB |
49
+
50
+ ## Which variant should I pick?
51
+
52
+ | Variant | Format | Link |
53
+ |---|---|---|
54
+ | `GLM-5.1-444B` | BF16 | [link](https://huggingface.co/0xSero/GLM-5.1-444B) |
55
+ | `GLM-5.1-444B-GGUF` | GGUF | [link](https://huggingface.co/0xSero/GLM-5.1-444B-GGUF) |
56
+ | `GLM-5.1-478B-NVFP4` | NVFP4 | [link](https://huggingface.co/0xSero/GLM-5.1-478B-NVFP4) |
57
+ | `GLM-5.1-555B` | BF16 | [link](https://huggingface.co/0xSero/GLM-5.1-555B) |
58
+ | `GLM-5.1-555B-GGUF` | GGUF | [link](https://huggingface.co/0xSero/GLM-5.1-555B-GGUF) |
59
+ | `GLM-5.1-555B-NVFP4` | NVFP4 | [link](https://huggingface.co/0xSero/GLM-5.1-555B-NVFP4) |
60
+ | `GLM-5.1-555B-W4A16` **(this)** | W4A16 | [link](https://huggingface.co/0xSero/GLM-5.1-555B-W4A16) |
61
 
62
  This is a **GPTQ 4-bit weight-quantized** variant of the 25% expert-pruned [`zai-org/GLM-5.1`](https://huggingface.co/zai-org/GLM-5.1) using [REAP](https://github.com/CerebrasResearch/reap) (Relative Expert Activation Pruning), produced with [AutoRound](https://github.com/intel/auto-round) for learned rounding optimization.
63
 
 
70
  | Quantization | GPTQ W4A16 (int4 symmetric, group_size=128) |
71
  | Quantizer | auto-round 0.12.2 (200 iterations, SignSGD) |
72
  | Quantized size | **277 GB** (56 safetensor shards) |
73
+ | BF16 source | [`0xSero/GLM-5.1-555B`](https://huggingface.co/0xSero/GLM-5.1-555B) |
74
+ | GGUF variant | [`0xSero/GLM-5.1-555B-GGUF`](https://huggingface.co/0xSero/GLM-5.1-555B-GGUF) (325 GB, Q4_K_M) |
75
 
76
  ## Benchmark Results (GGUF Q4_K_M, inference mode, temp=0.8)
77
 
 
94
  from vllm import LLM, SamplingParams
95
 
96
  llm = LLM(
97
+ model="0xSero/GLM-5.1-555B-W4A16",
98
  tensor_parallel_size=4, # 4× B200 or 8× A100
99
  max_model_len=8192,
100
  trust_remote_code=True,
 
108
 
109
  ```bash
110
  python -m sglang.launch_server \
111
+ --model-path 0xSero/GLM-5.1-555B-W4A16 \
112
  --tp 4 \
113
  --trust-remote-code
114
  ```
 
152
 
153
  | Model | Prune % | Experts | Format | Size | Status |
154
  |-------|---------|---------|--------|------|--------|
155
+ | [`0xSero/GLM-5.1-555B`](https://huggingface.co/0xSero/GLM-5.1-555B) | 25% | 192/256 | BF16 | 1.1T | Source checkpoint |
156
+ | [`0xSero/GLM-5.1-555B-GGUF`](https://huggingface.co/0xSero/GLM-5.1-555B-GGUF) | 25% | 192/256 | GGUF Q4_K_M | 325G | llama.cpp serving |
157
  | **This model** | **25%** | **192/256** | **GPTQ W4A16** | **277G** | **vLLM/SGLang serving** |
158
+ | [`0xSero/GLM-5.1-444B`](https://huggingface.co/0xSero/GLM-5.1-444B) | 40% | 154/256 | BF16 | 910G | Has repetition issues — use 25% |
159
 
160
  ## Support This Work
161
 
 
163
 
164
  **[donate.sybilsolutions.ai](https://donate.sybilsolutions.ai)**
165
 
166
+ ## License & citation
167
+ License inherited from the base model.
 
 
 
168
 
169
+ ```bibtex
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  @misc{lasby2025reap,
171
+ title = {REAP the Experts: Why Pruning Prevails for One-Shot MoE Compression},
172
+ author = {Mike Lasby and Ivan Lazarevich and Nish Sinnadurai and Sean Lie and Yani Ioannou and Vithursan Thangarasa},
173
+ year = {2025}, eprint = {2510.13999}, archivePrefix = {arXiv}
 
 
174
  }
175
  ```
176
 
177
+ ## Sponsors
178
+ Made possible by **NVIDIA · TNG Technology · Lambda · Prime Intellect · Hot Aisle**.