0xSero / qwen3-coder-next-56b-REAP

huggingface.co
Total runs: 653
24-hour runs: 0
7-day runs: 6
30-day runs: 383
Model's Last Updated: April 18 2026
text-generation

Introduction of qwen3-coder-next-56b-REAP

Model Details of qwen3-coder-next-56b-REAP

Qwen3-Coder-Next 56B REAP

30% expert-pruned version of Qwen/Qwen3-Coder-Next using Cerebras REAP (Router-weighted Expert Activation Pruning).

Original This Model
Total params ~80B 56.56B
Experts 512 359
Active params/tok ~4.2B ~4.2B
Experts/tok 10 10
Format BF16 BF16
Disk size ~149 GB ~113 GB

REAP removes 30% of MoE experts (153 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 ~24% reduction in total disk/memory footprint at the cost of moderate quality degradation, primarily in math tasks.

Method

REAP (ICLR 2026) prunes Mixture-of-Experts models by scoring expert importance using:

  1. Router gate values -- how often and how strongly the router selects each expert
  2. Expert activation norms -- magnitude of each expert's output contribution
  3. Frequency-weighted saliency -- combining routing frequency with activation importance
  4. Router logit renormalization -- maintains output distribution after expert removal
  5. Layerwise application -- independent per-layer pruning decisions for stability
Calibration Dataset

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.

Pruning Configuration
Parameter Value
Compression ratio 0.30 (30% expert removal)
Original experts per layer 512
Remaining experts per layer 359
Pruning method REAP
Distance measure Angular (cosine)
Router weight renormalization Yes
Seed 42
Observation batch size 8
Calibration batches 128 per category
Benchmark Results

10-task lm-eval suite, 200 samples per task, tensor_parallel_size=4 , vLLM eager mode:

Task Metric Original REAP 0.30 Delta
ARC-Challenge acc_norm 58.5% 61.0% +2.5
BoolQ acc 93.0% 90.0% -3.0
CommonsenseQA acc 89.0% 85.5% -3.5
GSM8K flexible_extract 35.0% 17.5% -17.5
HellaSwag acc_norm 72.0% 63.5% -8.5
MathQA acc_norm 60.5% 51.5% -9.0
OpenBookQA acc_norm 48.5% 49.5% +1.0
PIQA acc_norm 80.0% 79.0% -1.0
TruthfulQA MC2 acc 60.2% 55.5% -4.7
WinoGrande acc 70.0% 66.0% -4.0

Aggregate:

  • Overall average: 66.7% -> 61.9% (-4.8 pts)
  • Reasoning average: 71.4% -> 68.8% (-2.6 pts)
  • Math average: 47.8% -> 34.5% (-13.3 pts)

Note: GSM8K strict-match reports 0% for all variants due to an output formatting issue; flexible-extract scores are shown instead.

Architecture

Qwen3-Coder-Next uses a hybrid linear/full attention architecture with 48 layers:

  • Full attention every 4th layer (12 layers)
  • Linear attention for remaining layers (36 layers)
  • MoE FFN with 359 remaining experts per layer, 10 active per token
  • Shared expert (intermediate size 512) in every layer
  • Context window: 262,144 tokens
  • Vocab size: 151,936
Usage
Transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "0xSero/qwen3-coder-next-56b-REAP"

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
vllm serve 0xSero/qwen3-coder-next-56b-REAP \
    --tensor-parallel-size 4 \
    --enforce-eager \
    --gpu-memory-utilization 0.9 \
    --max-model-len 32768
Reproducing
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.30 \
    --prune-method reap \
    --seed 42 \
    --renormalize_router_weights true \
    --batch_size 8 \
    --batches_per_category 128
Citation
@inproceedings{lasby2025reap,
  title={{REAP} the Experts: Why Pruning Prevails for One-Shot {MoE} Compression},
  author={Lasby, Mike and others},
  booktitle={International Conference on Learning Representations (ICLR)},
  year={2026},
  url={https://arxiv.org/abs/2510.13999}
}
Links

Runs of 0xSero qwen3-coder-next-56b-REAP on huggingface.co

653
Total runs
0
24-hour runs
1
3-day runs
6
7-day runs
383
30-day runs

More Information About qwen3-coder-next-56b-REAP huggingface.co Model

More qwen3-coder-next-56b-REAP license Visit here:

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

qwen3-coder-next-56b-REAP huggingface.co

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

qwen3-coder-next-56b-REAP huggingface.co Url

https://huggingface.co/0xSero/qwen3-coder-next-56b-REAP

0xSero qwen3-coder-next-56b-REAP online free

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

0xSero qwen3-coder-next-56b-REAP online free url in huggingface.co:

https://huggingface.co/0xSero/qwen3-coder-next-56b-REAP

qwen3-coder-next-56b-REAP install

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

qwen3-coder-next-56b-REAP install url in huggingface.co:

https://huggingface.co/0xSero/qwen3-coder-next-56b-REAP

Url of qwen3-coder-next-56b-REAP

qwen3-coder-next-56b-REAP huggingface.co Url

Provider of qwen3-coder-next-56b-REAP 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: 100
Run Growth: 8
Growth Rate: 8.00%
Updated:May 30 2026
huggingface.co

Total runs: 98
Run Growth: 67
Growth Rate: 72.04%
Updated:May 30 2026
huggingface.co

Total runs: 69
Run Growth: 29
Growth Rate: 42.65%
Updated:May 30 2026
huggingface.co

Total runs: 59
Run Growth: 31
Growth Rate: 50.82%
Updated:May 30 2026
huggingface.co

Total runs: 44
Run Growth: 20
Growth Rate: 42.55%
Updated:May 30 2026
huggingface.co

Total runs: 40
Run Growth: 31
Growth Rate: 77.50%
Updated:May 30 2026