0xSero/GLM-4.7-185B-W4A16 已完整同步
Tip
Support this work → · X · GitHub · REAP paper · Cerebras REAP
GLM-4.7-185B-W4A16
W4A16 quantization of 0xSero/GLM-4.7-185B.
At a glance
| Base model | 0xSero/GLM-4.7-185B |
| Format | W4A16 |
| Total params | 185B |
| Active / token | — |
| Experts / layer | 80 |
| Layers | 92 |
| Hidden size | 5120 |
| Context | 202,752 |
| On-disk size | 99 GB |
Which variant should I pick?
| Variant | Format | Link |
|---|---|---|
GLM-4.7-185B |
BF16 | link |
GLM-4.7-185B-W4A16 (this) |
W4A16 | link |
GLM-4.7-202B |
BF16 | link |
GLM-4.7-218B-W4A16 |
W4A16 | link |
GLM-4.7-REAP-40-W4A16 |
W4A16 | link |
𓌳 REAP𓌳 the Experts: Why Pruning Prevails for One-Shot MoE Compression
📄 Paper • 💻 Code • 📝 Blog
GLM-4.7-REAP-50-W4A16
✨ Highlights
50% Expert-Pruned + INT4 Quantized — Double compression for efficient deployment.
- ~6.5x Total Compression: 700GB → ~92GB
- REAP + AutoRound: Expert pruning + weight quantization
- Optimized for Code & Tools: Calibrated on code generation and function calling
- Lower VRAM: Fits on 2-4x fewer GPUs than BF16
📋 Model Specifications
| Property | Value |
|---|---|
| Base Model | GLM-4.7-REAP-50 |
| Original (GLM-4.7) | 358B params, ~700GB |
| After REAP 50% | 179B params |
| After W4A16 Quant | ~92GB on disk |
| Quantization | INT4 weights, FP16 activations |
| Group Size | 128 |
| Format | GPTQ (AutoRound) |
| Experts per Layer | 80 (was 160) |
| VRAM Required | ~100GB |
Compression Pipeline
GLM-4.7 (358B, 700GB)
│
▼ REAP 50% expert pruning
│
GLM-4.7-REAP-50 (179B)
│
▼ AutoRound W4A16 quantization
│
GLM-4.7-REAP-50-W4A16 (~92GB) ◀── This model
Total: ~6.5x compression
🔬 Calibration Dataset: Deep Dive
REAP's effectiveness depends critically on calibration data that represents the target use case. We specifically optimized for code generation, function/tool calling, and agentic workflows.
Why These 3 Datasets?
| Dataset | Samples | Purpose | Why It Matters |
|---|---|---|---|
| evol-codealpaca-v1 | 700 | Code generation | 51% of mix — Code tasks activate specific expert pathways; pruning without code calibration destroys coding ability |
| xlam-function-calling-60k | 330 | Function/tool calling | 24% of mix — Tool use requires structured JSON output; experts handling schema generation must be preserved |
| SWE-smith-trajectories | 330 | Agentic multi-turn | 24% of mix — Real SWE-bench trajectories with tool calls, file edits, and multi-step reasoning |
32 个文件
浏览文件数据集版权信息
本数据集的许可证为 Apache License 2.0。如有违反相关条款,请联系 WEHUB,我们将及时处理。 查看许可证
通过 WeHub CLI 下载当前数据集快照。下列命令会固定为当前页面展示的数据版本(如果页面提供版本)。文件字节由本机直连存储下载,浏览器不会签发或保存下载链接。
前置要求
需要 Node.js 18 及以上,以及 npm(或 npx)。
1. 安装 CLI
npm install -g wehub-cli@latest
2. 下载此数据集
wehub datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a
若中断或部分失败,在同一目录重新执行同一命令即可续传。默认会校验 SHA-256。
免全局安装
npx --yes wehub-cli@latest datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a
高级选项
以下为 wehub datasets download 已支持的参数示例:
强制重新下载,不复用已校验的本地文件
wehub datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a --overwrite
仅包含匹配路径
wehub datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a --include "*.jsonl"
排除匹配路径
wehub datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a --exclude "*.md"
提高并发下载数
wehub datasets download ds_ext_4173_f339e89c0a --revision b3fff20ce0540f67dd2005439164dd4852d13d17 --output ./ds_ext_4173_f339e89c0a --jobs 8
完整帮助:wehub datasets download --help