Downloads · 30 days
120
14% of all-time downloads
0xSero/Qwen3-Coder-64B
Qwen3-Coder-64B is a text generation model from 0xSero. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
[!TIP] Support this work → · X · GitHub · REAP paper · Cerebras REAP
Downloads · 30 days
120
14% of all-time downloads
All-time downloads
866
Public
Parameters
64.3B
129 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors129 GB · 100%
From the Hugging Face model README
[!TIP] Support this work → · X · GitHub · REAP paper · Cerebras REAP
REAP-pruned Qwen/Qwen3-Coder-Next.
| Base model | Qwen/Qwen3-Coder-Next |
| Format | BF16 |
| Total params | 64B |
| Active / token | — |
| Experts / layer | 410 |
| Layers | 48 |
| Hidden size | 2048 |
| Context | 262,144 |
| On-disk size | 129 GB |
20% expert-pruned version of Qwen/Qwen3-Coder-Next using Cerebras REAP (Router-weighted Expert Activation Pruning).
| Original | This Model | |
|---|---|---|
| Total params | ~80B | 64.26B |
| Experts | 512 | 410 |
| Active params/tok | ~4.2B | ~4.2B |
| Experts/tok | 10 | 10 |
| Format | BF16 | BF16 |
| Disk size | ~149 GB | ~129 GB |
REAP removes 20% of MoE experts (102 of 512) while preserving the model's routing behavior and output quality. The active parameter count per token is unchanged since the router still selects 10 experts per token from the remaining pool. This yields a ~14% reduction in total disk/memory footprint with minimal quality loss.
REAP (ICLR 2026) prunes Mixture-of-Experts models by scoring expert importance using:
22,000 samples (no-refusal subset: 21,000), packed to 16,384 token sequences:
| Category | Samples | Source |
|---|---|---|
| Coding (general) | 4,096 | theblackcat102/evol-codealpaca-v1 |
| Reasoning (code) | ~2,680 | open-r1/Mixture-of-Thoughts[code] |
| Reasoning (math) | ~2,778 | open-r1/Mixture-of-Thoughts[math] |
| Reasoning (science) | ~2,776 | open-r1/Mixture-of-Thoughts[science] |
| Tool calling | 4,096 | Salesforce/xlam-function-calling-60k |
| Agentic coding | 4,096 | SWE-bench/SWE-smith-trajectories |
| + extended domains | ~1,478 | Scientific, CUDA kernels, browser, advanced math, code correctness |
Total tokens observed: ~90.5M across 6,391 packed sequences.
| Parameter | Value |
|---|---|
| Compression ratio | 0.20 (20% expert removal) |
| Original experts per layer | 512 |
| Remaining experts per layer | 410 |
| Pruning method | REAP |
| Distance measure | Angular (cosine) |
| Router weight renormalization | Yes |
| Seed | 42 |
| Observation batch size | 8 |
| Calibration batches | 128 per category |
10-task lm-eval suite, 200 samples per task, tensor_parallel_size=4, vLLM eager mode:
| Task | Metric | Original | REAP 0.20 | Delta |
|---|---|---|---|---|
| ARC-Challenge | acc_norm | 58.5% | 64.0% | +5.5 |
| BoolQ | acc | 93.0% | 91.0% | -2.0 |
| CommonsenseQA | acc | 89.0% | 88.0% | -1.0 |
| GSM8K | flexible_extract | 35.0% | 28.5% | -6.5 |
| HellaSwag | acc_norm | 72.0% | 66.0% | -6.0 |
| MathQA | acc_norm | 60.5% | 53.5% | -7.0 |
| OpenBookQA | acc_norm | 48.5% | 49.0% | +0.5 |
| PIQA | acc_norm | 80.0% | 80.5% | +0.5 |
| TruthfulQA MC2 | acc | 60.2% | 55.2% | -5.0 |
| WinoGrande | acc | 70.0% | 70.0% | +0.0 |
Aggregate:
Qwen3-Coder-Next uses a hybrid linear/full attention architecture with 48 layers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "0xSero/Qwen3-Coder-64B"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype="auto",
device_map="auto",
trust_remote_code=True,
)
messages = [{"role": "user", "content": "Write a quicksort in Python."}]
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][inputs.input_ids.shape[1]:], skip_special_tokens=True))
vllm serve 0xSero/Qwen3-Coder-64B \
--tensor-parallel-size 4 \
--enforce-eager \
--gpu-memory-utilization 0.9 \
--max-model-len 32768
git clone https://github.com/cerebras/reap
cd reap
python -m reap.layerwise_prune \
--model-name Qwen/Qwen3-Coder-Next \
--dataset-name combined \
--compression-ratio 0.20 \
--prune-method reap \
--seed 42 \
--renormalize_router_weights true \
--batch_size 8 \
--batches_per_category 128
License inherited from the base model.
@misc{lasby2025reap,
title = {REAP the Experts: Why Pruning Prevails for One-Shot MoE Compression},
author = {Mike Lasby and Ivan Lazarevich and Nish Sinnadurai and Sean Lie and Yani Ioannou and Vithursan Thangarasa},
year = {2025}, eprint = {2510.13999}, archivePrefix = {arXiv}
}
Made possible by NVIDIA · TNG Technology · Lambda · Prime Intellect · Hot Aisle.