0xSero / GLM-4.7-REAP-40

huggingface.co
Total runs: 71
24-hour runs: 0
7-day runs: 4
30-day runs: 66
Model's Last Updated: March 20 2026
text-generation

Introduction of GLM-4.7-REAP-40

Model Details of GLM-4.7-REAP-40

GLM-4.7-REAP-40p

40% expert-pruned GLM-4.7 (358B → 218B) using Cerebras REAP method.

🙏 Compute sponsored by Prime Intellect - Decentralized AI infrastructure for open research.

Model Details
Property Value
Base Model zai-org/GLM-4.7 (358B params, 160 experts)
Architecture Mixture of Experts (MoE) with reasoning
Total Params 218B (40% pruned)
Active Params 32B (8 experts per token)
Experts per Layer 96 (down from 160)
Method REAP (Router-weighted Expert Activation Pruning)
Precision BF16
Size on Disk ~407 GB
Compression Pipeline
zai-org/GLM-4.7 (358B, 668GB BF16)
    ↓ REAP Pruning (40%)
GLM-4.7-REAP-40p (218B, 407GB)
    ↓ AutoRound W4A16
GLM-4.7-REAP-40p-W4A16-AutoRound (108GB) ← Recommended for inference
Pruning Configuration

Matching Cerebras defaults:

Parameter Value
samples_per_category 1024
model_max_length 2048
distance_measure angular
seed 42
dataset evol-codealpaca-v1
Benchmarks
Task GLM-4.7-REAP-40p GLM-4.7 (Base)
HumanEval TBD -
MBPP TBD -
GSM8K TBD -
ARC-Challenge TBD -
HellaSwag TBD -
MMLU TBD -
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model_id = "0xSero/GLM-4.7-REAP-40p"

tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.bfloat16,
    trust_remote_code=True,
)

messages = [{"role": "user", "content": "Write a Python function to check if a number is prime."}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)

outputs = model.generate(**inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Hardware Requirements
Citation

If you use this model, 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}
}
Links
Acknowledgments

Runs of 0xSero GLM-4.7-REAP-40 on huggingface.co

71
Total runs
0
24-hour runs
0
3-day runs
4
7-day runs
66
30-day runs

More Information About GLM-4.7-REAP-40 huggingface.co Model

More GLM-4.7-REAP-40 license Visit here:

https://choosealicense.com/licenses/apache-2.0

GLM-4.7-REAP-40 huggingface.co

GLM-4.7-REAP-40 huggingface.co is an AI model on huggingface.co that provides GLM-4.7-REAP-40's model effect (), which can be used instantly with this 0xSero GLM-4.7-REAP-40 model. huggingface.co supports a free trial of the GLM-4.7-REAP-40 model, and also provides paid use of the GLM-4.7-REAP-40. Support call GLM-4.7-REAP-40 model through api, including Node.js, Python, http.

GLM-4.7-REAP-40 huggingface.co Url

https://huggingface.co/0xSero/GLM-4.7-REAP-40

0xSero GLM-4.7-REAP-40 online free

GLM-4.7-REAP-40 huggingface.co is an online trial and call api platform, which integrates GLM-4.7-REAP-40's modeling effects, including api services, and provides a free online trial of GLM-4.7-REAP-40, you can try GLM-4.7-REAP-40 online for free by clicking the link below.

0xSero GLM-4.7-REAP-40 online free url in huggingface.co:

https://huggingface.co/0xSero/GLM-4.7-REAP-40

GLM-4.7-REAP-40 install

GLM-4.7-REAP-40 is an open source model from GitHub that offers a free installation service, and any user can find GLM-4.7-REAP-40 on GitHub to install. At the same time, huggingface.co provides the effect of GLM-4.7-REAP-40 install, users can directly use GLM-4.7-REAP-40 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

GLM-4.7-REAP-40 install url in huggingface.co:

https://huggingface.co/0xSero/GLM-4.7-REAP-40

Url of GLM-4.7-REAP-40

GLM-4.7-REAP-40 huggingface.co Url

Provider of GLM-4.7-REAP-40 huggingface.co

0xSero
ORGANIZATIONS

Other API from 0xSero

huggingface.co

Total runs: 820
Run Growth: 509
Growth Rate: 62.07%
Updated:May 30 2026
huggingface.co

Total runs: 357
Run Growth: -42
Growth Rate: -11.76%
Updated:June 26 2026
huggingface.co

Total runs: 117
Run Growth: 11
Growth Rate: 10.09%
Updated:May 30 2026
huggingface.co

Total runs: 100
Run Growth: 8
Growth Rate: 8.00%
Updated:May 30 2026
huggingface.co

Total runs: 62
Run Growth: -5
Growth Rate: -7.81%
Updated:May 30 2026