Downloads · 30 days
39
3% of all-time downloads
cafepm/GLM-4.7-Flash-REAP-23B-A3B-Q3Q4-GGUF
GLM-4.7-Flash-REAP-23B-A3B-Q3Q4-GGUF is a text generation model from cafepm. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
<center<a href="https://notoken.cloud" target="blank" <img src="https://ai.tnt.chat/article/notoken.png" width="100%" </a <a href="https://notoken.cloud" target="blank" <h3 style="color:mediumpurple"Run Qwen3.8-27B MX…
Downloads · 30 days
39
3% of all-time downloads
All-time downloads
1.5K
Public
Repo size
11.1 GB
Likes
1
Public
Click a slice to open those files.
.gguf11.1 GB · 100%
From the Hugging Face model README
Use this model for FREE in your Local VS Code, even without a GPU card, via Google Colab (colab as endpoint): https://colab.research.google.com/gist/masterofrisk/d98c35f9f35a8350b11da6a94e29fa6e/free-glm-4-7-flash-colab_tnt_bridge.ipynb
Quantized from unsloth/GLM-4.7-Flash-REAP-23B-A3B-GGUF (BF16) using the Infiniteon Algebra associator to guide mixed-precision allocation: 20% of the weights (the shared expert and attention tensors) are quantized to 4-bit (Q4_K), and the remaining 80% to 3-bit (Q3_K). This achieves Q4-level generation quality at near-Q3 size, fitting a 23B-parameter MoE model inside 12 GB VRAM with a 150K context window.
Why this works: The associator of the Infiniteon algebra identifies which weight tensors carry structural "gap-crossing" information — the tensors that connect diverse token neighborhoods. On MoE models, these are exactly the shared expert and attention tensors, which are used on every token. By allocating 4-bit precision to these structurally critical tensors and 3-bit to the rest, the model preserves the directional diversity needed for coherent generation while keeping the overall size near Q3. This is the first Q3Q4-based quantization of this model that generates without looping or repetitive collapse.
Research and credits: This research was conducted by TNT.Chat (https://ai.tnt.chat) as part of our LOCAL AI effort to bring larger models onto consumer hardware. The target is a capable coder model running on 12 GB VRAM for VS Code usage with a 150,000-token context window. Additional models targeting RTX 5090 and RTX 6000 PRO (full GLM-4.7 218B REAP) are in progress.
Theory references:
Pinto Martins, C. F. (2026). Ramsey Statistics And Infiniteons Theory, Volume I. Zenodo. DOI: https://doi.org/10.5281/zenodo.19329589
Pinto Martins, C. F. (2026). Ramsey Statistics And Infiniteons Theory, Volume II. Zenodo. DOI: https://doi.org/10.5281/zenodo.19330373
Suggested config for llama.cpp with a 150K context window fitting inside 12 GB VRAM (e.g., RTX 4070 Super):
set BINARY=llama-server
set MODEL=GLM47-MIX20_Q3Q4.gguf
set NP=1
"%BINARY%" ^
--model "%MODEL%" ^
--host 127.0.0.1 --port 4777 ^
--n-gpu-layers -1 --ctx-size 150000 ^
--parallel %NP%" --kv-unified ^
--flash-attn on ^
--cache-type-k q4_0 --cache-type-v q4_0 ^
-b 8192 -ub 2048 ^
--fit off --no-mmap --mlock ^
--reasoning on ^
--reasoning-format deepseek ^
--reasoning-budget 4096 ^
--reasoning-budget-message "Conclude the reasoning and provide the final answer." ^
--chat-template-kwargs '{"enable_thinking":true}' ^
--no-warmup ^
--jinja
This model was obtained by uniformly pruning 25% of experts in GLM-4.7-Flash using the REAP method. readme: > https://huggingface.co/cerebras/GLM-4.7-Flash-REAP-23B-A3B/main/README.md license_link: https://huggingface.co/zai-org/GLM-4.7-Flash/blob/main/LICENSE pipeline_tag: text-generation
<div> <p style="margin-top: 0;margin-bottom: 0;"> <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> </p> <div style="display: flex; gap: 5px; align-items: center; "> <a href="https://github.com/unslothai/unsloth/"> <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133"> </a> <a href="https://discord.gg/unsloth"> <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173"> </a> <a href="https://docs.unsloth.ai/"> <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143"> </a> </div> </div> <p align="center"> <em>𓌳 <strong>REAP</strong>𓌳 the Experts: Why Pruning Prevails for One-Shot MoE Compression</em><br> <img src="https://i.imgur.com/rmzG3gg.png" alt="REAP" width="75%"> </p>[!NOTE] Includes Unsloth chat template fixes! <br> For
llama.cpp, use--jinja
Introducing 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.
This 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:
GLM-4.7-Flash-REAP-23B-A3B has the following specifications:
🟩 This checkpoint maintains almost identical performance while being 25% lighter.
For more details on the evaluation setup, refer to the REAP arXiv preprint.
You can deploy the model directly using the latest vLLM (that supports GLM4.7-Flash), no source modifications or custom patches required.
vllm serve cerebras/GLM-4.7-Flash-REAP-23B-A3B \
--tensor-parallel-size 4 \
--reasoning-parser glm45 \
--tool-call-parser glm47 \
--enable-auto-tool-choice
If 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).
This 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.
REAP selects experts to prune based on a novel saliency criterion that considers both:
This 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.
The model was calibrated using a diverse mixture of domain-specific datasets including:
📚 For more details, refer to the following resources:
This model is derived from
zai-org/GLM-4.7-Flash
and distributed under the MIT license.
If you use this checkpoint, please cite the REAP paper:
@article{lasby-reap,
title={REAP the Experts: Why Pruning Prevails for One-Shot MoE compression},
author={Lasby, Mike and Lazarevich, Ivan and Sinnadurai, Nish and Lie, Sean and Ioannou, Yani and Thangarasa, Vithursan},
journal={arXiv preprint arXiv:2510.13999},
year={2025}
}