GraySoft
Projects Models About FAQ Contact Download guIDE →
Model Intelligence Sheet

unsloth/glm-4.7-flash-reap-23b-a3b-gguf overview

Comprehensive model page for unsloth/glm-4.7-flash-reap-23b-a3b-gguf

transformersggufglmunslothMOEpruningcompressiontext-generationenarxiv:2510.13999base_model:cerebras/GLM-4.7-Flash-REAP-23B-A3Bbase_model:quantized:cerebras/GLM-4.7-Flash-REAP-23B-A3Blicense:mitendpoints_compatibleregion:usconversational
unsloth/glm-4.7-flash-reap-23b-a3b-gguf visual
Downloads
20,075
Likes
190
Pipeline
text-generation
Library
transformers
Visibility
Public
Access
Open

Repository Files & Downloads

27 files detected
Direct downloads for all repository files
FileTypeQuantizationSizeLink
GLM-4.7-Flash-REAP-23B-A3B-BF16.gguf GGUF BF16 42.85 GB Download
GLM-4.7-Flash-REAP-23B-A3B-IQ4_NL.gguf GGUF IQ4_NL 12.34 GB Download
GLM-4.7-Flash-REAP-23B-A3B-IQ4_XS.gguf GGUF IQ4_XS 11.71 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q2_K.gguf GGUF Q2_K 8.17 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q2_K_L.gguf GGUF Q2_K_L 8.24 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q3_K_M.gguf GGUF Q3_K_M 10.50 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q3_K_S.gguf GGUF Q3_K_S 9.59 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q4_0.gguf GGUF 12.38 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q4_1.gguf GGUF 13.62 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q4_K_M.gguf GGUF Q4_K_M 13.14 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q4_K_S.gguf GGUF Q4_K_S 12.41 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q5_K_M.gguf GGUF Q5_K_M 15.35 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q5_K_S.gguf GGUF Q5_K_S 14.94 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q6_K.gguf GGUF Q6_K 17.69 GB Download
GLM-4.7-Flash-REAP-23B-A3B-Q8_0.gguf GGUF 22.78 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-IQ1_M.gguf GGUF IQ1_M 7.07 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-IQ1_S.gguf GGUF IQ1_S 6.71 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-IQ2_M.gguf GGUF IQ2_M 7.97 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-IQ2_XXS.gguf GGUF IQ2_XXS 7.67 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-IQ3_XXS.gguf GGUF IQ3_XXS 9.35 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q2_K_XL.gguf GGUF Q2_K_XL 8.39 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q3_K_XL.gguf GGUF Q3_K_XL 10.67 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q4_K_XL.gguf GGUF Q4_K_XL 13.27 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q5_K_XL.gguf GGUF Q5_K_XL 15.59 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q6_K_XL.gguf GGUF Q6_K_XL 18.84 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-Q8_K_XL.gguf GGUF Q8_K_XL 25.64 GB Download
GLM-4.7-Flash-REAP-23B-A3B-UD-TQ1_0.gguf GGUF 6.09 GB Download

Benchmarks

Benchmark GLM-4.7-Flash GLM-4.7-Flash-REAP-23B-A3B
Compression 25%
Coding
HumanEval 94.5 95.1
HumanEval+ 89.0 89.0

Model Details Live

Model Slug
unsloth/glm-4.7-flash-reap-23b-a3b-gguf
Author
unsloth
Pipeline Task
text-generation
Library
transformers
Created
2026-01-23
Last Modified
2026-01-28
Gated
No
Private
No
HF SHA
983a65c63bc7bd37353e5246abc8005b3f72d5ec
License
mit
Language
en
Base Model
cerebras/GLM-4.7-Flash-REAP-23B-A3B

Metadata Inspector

Normalized metadata (stored in metadata_json)
{
  "metadata": {},
  "card_data": {
    "language": [
      "en"
    ],
    "library_name": "transformers",
    "tags": [
      "glm",
      "unsloth",
      "MOE",
      "pruning",
      "compression"
    ],
    "license": "mit",
    "name": "cerebras/GLM-4.7-Flash-REAP-23B-A3B",
    "description": "This model was obtained by uniformly pruning 25% of experts in GLM-4.7-Flash using the REAP method.\n",
    "readme": "https://huggingface.co/cerebras/GLM-4.7-Flash-REAP-23B-A3B/main/README.md\n",
    "license_link": "https://huggingface.co/zai-org/GLM-4.7-Flash/blob/main/LICENSE",
    "pipeline_tag": "text-generation",
    "base_model": [
      "cerebras/GLM-4.7-Flash-REAP-23B-A3B"
    ],
    "frontmatter": {
      "language": [
        "en"
      ],
      "library_name": "transformers",
      "tags": [
        "glm",
        "unsloth",
        "MOE",
        "pruning",
        "compression"
      ],
      "license": "mit",
      "name": "cerebras/GLM-4.7-Flash-REAP-23B-A3B",
      "description": ">",
      "readme": ">",
      "license_link": "https://huggingface.co/zai-org/GLM-4.7-Flash/blob/main/LICENSE",
      "pipeline_tag": "text-generation",
      "base_model": [
        "cerebras/GLM-4.7-Flash-REAP-23B-A3B"
      ]
    },
    "hero_image_url": "https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png",
    "summary": "",
    "quick_links": [],
    "benchmark_table_html": "<table>\n  <thead>\n    <tr>\n      <th align=\"left\">Benchmark</th>\n      <th align=\"center\">GLM-4.7-Flash</th>\n      <th align=\"center\"><a href=\"https://huggingface.co/cerebras/GLM-4.7-Flash-REAP-23B-A3B\">GLM-4.7-Flash-REAP-23B-A3B</a></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td><strong>Compression</strong></td>\n      <td align=\"center\">—</td>\n      <td align=\"center\">25%</td>\n    </tr>\n    <tr>\n      <td colspan=\"5\" align=\"center\"><strong>Coding</strong></td>\n    </tr>\n    <tr>\n      <td><strong>HumanEval</strong></td>\n      <td align=\"center\">94.5</td>\n      <td align=\"center\">95.1</td>\n    </tr>\n    <tr>\n      <td><strong>HumanEval+</strong></td>\n      <td align=\"center\">89.0</td>\n      <td align=\"center\">89.0</td>\n    </tr>\n</table>",
    "readme_markdown": "---\nlanguage:\n- en\nlibrary_name: transformers\ntags:\n- glm\n- unsloth\n- MOE\n- pruning\n- compression\nlicense: mit\nname: cerebras/GLM-4.7-Flash-REAP-23B-A3B\ndescription: >\n  This model was obtained by uniformly pruning 25% of experts in GLM-4.7-Flash using the REAP method.\nreadme: >\n  https://huggingface.co/cerebras/GLM-4.7-Flash-REAP-23B-A3B/main/README.md\nlicense_link: https://huggingface.co/zai-org/GLM-4.7-Flash/blob/main/LICENSE\npipeline_tag: text-generation\nbase_model:\n- cerebras/GLM-4.7-Flash-REAP-23B-A3B\n---\n> [!NOTE]\n>  Includes Unsloth **chat template fixes**! <br> For `llama.cpp`, use `--jinja`\n>\n\n<div>\n<p style=\"margin-top: 0;margin-bottom: 0;\">\n    <em><a href=\"https://docs.unsloth.ai/basics/unsloth-dynamic-v2.0-gguf\">Unsloth Dynamic 2.0</a> achieves superior accuracy & outperforms other leading quants.</em>\n  </p>\n  <div style=\"display: flex; gap: 5px; align-items: center; \">\n    <a href=\"https://github.com/unslothai/unsloth/\">\n      <img src=\"https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png\" width=\"133\">\n    </a>\n    <a href=\"https://discord.gg/unsloth\">\n      <img src=\"https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png\" width=\"173\">\n    </a>\n    <a href=\"https://docs.unsloth.ai/\">\n      <img src=\"https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png\" width=\"143\">\n    </a>\n  </div>\n</div>\n\n\n<p align=\"center\">\n  <em>𓌳 <strong>REAP</strong>𓌳  the Experts: Why Pruning Prevails for One-Shot MoE Compression</em><br>\n  <img src=\"https://i.imgur.com/rmzG3gg.png\" alt=\"REAP\" width=\"75%\">\n</p>\n\n# GLM-4.7-Flash-REAP-23B-A3B\n\n## ✨ Highlights\n\nIntroducing **GLM-4.7-Flash-REAP-23B-A3B**, a **memory-efficient compressed variant** of GLM-4.7-Flash that maintains near-identical performance while being **25% lighter**.\n\nThis model was created using **REAP (Router-weighted Expert Activation Pruning)**, a novel expert pruning method that selectively removes redundant experts while preserving the router's independent control over remaining experts. Key features include:\n\n- **Near-Lossless Performance**: Maintains almost identical accuracy on code generation, agentic coding, and function calling tasks compared to the full 30B model\n- **25% Memory Reduction**: Compressed from 30B to 23B parameters, significantly lowering deployment costs and memory requirements\n- **Preserved Capabilities**: Retains all core functionalities including code generation, agentic workflows, repository-scale understanding, and function calling\n- **Drop-in Compatibility**: Works with vanilla vLLM - no source modifications or custom patches required\n- **Optimized for Real-World Use**: Particularly effective for resource-constrained environments, local deployments, and academic research\n\n---\n## 📋 Model Overview\n\n**GLM-4.7-Flash-REAP-23B-A3B** has the following specifications:\n\n- **Base Model**: GLM-4.7-Flash\n- **Compression Method**: REAP (Router-weighted Expert Activation Pruning)\n- **Compression Ratio**: 25% expert pruning\n- **Type**: Sparse Mixture-of-Experts (SMoE) Causal Language Model\n- **Number of Parameters**: 23B total, 3B activated per token\n- **Number of Layers**: 47\n- **Number of Attention Heads**: 20 for QKV\n- **Number of Experts**: 48 (uniformly pruned from 64)\n- **Number of Activated Experts**: 4 per token\n- **Context Length**: 202,752 tokens\n- **License**: MIT\n\n---\n\n## 📊 Evaluations\n\n<table>\n  <thead>\n    <tr>\n      <th align=\"left\">Benchmark</th>\n      <th align=\"center\">GLM-4.7-Flash</th>\n      <th align=\"center\"><a href=\"https://huggingface.co/cerebras/GLM-4.7-Flash-REAP-23B-A3B\">GLM-4.7-Flash-REAP-23B-A3B</a></th>\n    </tr>\n  </thead>\n  <tbody>\n    <tr>\n      <td><strong>Compression</strong></td>\n      <td align=\"center\">—</td>\n      <td align=\"center\">25%</td>\n    </tr>\n    <tr>\n      <td colspan=\"5\" align=\"center\"><strong>Coding</strong></td>\n    </tr>\n    <tr>\n      <td><strong>HumanEval</strong></td>\n      <td align=\"center\">94.5</td>\n      <td align=\"center\">95.1</td>\n    </tr>\n    <tr>\n      <td><strong>HumanEval+</strong></td>\n      <td align=\"center\">89.0</td>\n      <td align=\"center\">89.0</td>\n    </tr>\n</table>\n\n🟩 *This checkpoint maintains almost identical performance while being 25% lighter.*\n\nFor more details on the evaluation setup, refer to the [REAP arXiv preprint](https://arxiv.org/abs/2510.13999).\n\n---\n\n## 🚀 Deployment\n\nYou can deploy the model directly using the **latest vLLM** (that supports GLM4.7-Flash), no source modifications or custom patches required.\n\n```bash\nvllm serve cerebras/GLM-4.7-Flash-REAP-23B-A3B \\\n    --tensor-parallel-size 4 \\\n    --reasoning-parser glm45 \\\n    --tool-call-parser glm47 \\\n    --enable-auto-tool-choice\n```\n\nIf you encounter insufficient memory when running this model, you might need to set a lower value for `--max-num-seqs` flag (e.g. set to 64).\n\n\n## 🧩 Model Creation\n\nThis checkpoint was created by applying the **REAP (Router-weighted Expert Activation Pruning)** method uniformly across all Mixture-of-Experts (MoE) blocks of **GLM-4.7**, with a **25% pruning rate**.\n\n### How REAP Works\n\nREAP selects experts to prune based on a novel **saliency criterion** that considers both:\n- **Router gate values**: How frequently and strongly the router activates each expert\n- **Expert activation norms**: The magnitude of each expert's output contributions\n\nThis dual consideration ensures that experts contributing minimally to the layer's output are pruned, while preserving those that play critical roles in the model's computations.\n\n### Key Advantages\n\n- **One-Shot Compression**: No fine-tuning required after pruning - the model is immediately ready for deployment\n- **Preserved Router Control**: Unlike expert merging methods, REAP maintains the router's independent, input-dependent control over remaining experts, avoiding \"functional subspace collapse\"\n- **Generative Task Superiority**: REAP significantly outperforms expert merging approaches on generative benchmarks (code generation, creative writing, mathematical reasoning) while maintaining competitive performance on discriminative tasks\n\n### Calibration\n\nThe model was calibrated using a diverse mixture of domain-specific datasets including:\n- Code generation samples ([evol-codealpaca](https://huggingface.co/datasets/theblackcat102/evol-codealpaca-v1))\n- Function calling examples ([xlam-function-calling](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k))\n- Agentic multi-turn trajectories ([SWE-smith-trajectories](https://huggingface.co/datasets/SWE-bench/SWE-smith-trajectories))\n\n📚 For more details, refer to the following resources:\n\n- [🧾 arXiv Preprint](https://arxiv.org/abs/2510.13999)\n- [🧾 REAP Blog](https://www.cerebras.ai/blog/reap)\n- [💻 REAP Codebase (GitHub)](https://github.com/CerebrasResearch/reap)\n\n---\n\n## ⚖️ License\n\nThis model is derived from\n**[`zai-org/GLM-4.7-Flash`](https://huggingface.co/zai-org/GLM-4.7-Flash)**\nand distributed under the **MIT license**.\n\n---\n\n## 🧾 Citation\n\nIf you use this checkpoint, please cite the REAP paper:\n\n```bibtex\n@article{lasby-reap,\n  title={REAP the Experts: Why Pruning Prevails for One-Shot MoE compression},\n  author={Lasby, Mike and Lazarevich, Ivan and Sinnadurai, Nish and Lie, Sean and Ioannou, Yani and Thangarasa, Vithursan},\n  journal={arXiv preprint arXiv:2510.13999},\n  year={2025}\n}\n```\n",
    "related_quantizations": []
  },
  "tags": [
    "transformers",
    "gguf",
    "glm",
    "unsloth",
    "MOE",
    "pruning",
    "compression",
    "text-generation",
    "en",
    "arxiv:2510.13999",
    "base_model:cerebras/GLM-4.7-Flash-REAP-23B-A3B",
    "base_model:quantized:cerebras/GLM-4.7-Flash-REAP-23B-A3B",
    "license:mit",
    "endpoints_compatible",
    "region:us",
    "conversational"
  ],
  "likes": 190,
  "downloads": 20075,
  "gated": false,
  "private": false,
  "last_modified": "2026-01-28T12:11:14.000Z",
  "created_at": "2026-01-23T06:50:31.000Z",
  "pipeline_tag": "text-generation",
  "library_name": "transformers"
}
Source payload excerpt (from Hugging Face API)
{
  "_id": "69731a370797d5d6b44155cd",
  "id": "unsloth/GLM-4.7-Flash-REAP-23B-A3B-GGUF",
  "modelId": "unsloth/GLM-4.7-Flash-REAP-23B-A3B-GGUF",
  "sha": "983a65c63bc7bd37353e5246abc8005b3f72d5ec",
  "createdAt": "2026-01-23T06:50:31.000Z",
  "lastModified": "2026-01-28T12:11:14.000Z",
  "author": "unsloth",
  "downloads": 20075,
  "likes": 190,
  "gated": false,
  "private": false,
  "pipeline_tag": "text-generation",
  "library_name": "transformers",
  "siblings_count": 30
}