Korean-preserving one-shot MoE expert pruning of
Qwen3-Coder-30B-A3B-Instruct, produced with
K-REAP. Routed experts pruned
128 → 112 per layer (12.5%); ~27B total params, 3.3B active (top-8 unchanged). No fine-tuning.
Unlike vanilla REAP (English/code calibration), K-REAP detects and
hard-protects the experts that carry Korean, so pruning preserves Korean without sacrificing English/coding. See
K-Guard-REAP for the full study.
1from mlx_lm import load, generate
2model, tok = load("KCh3dRi4n/Qwen3-coder-27B-A3B-KREAP-MLX")
3print(generate(model, tok, prompt="한국어로 자기소개를 해줘.", max_tokens=256))
REAP saliency (router gate × expert-output L2 norm, conditional mean) restricted to Korean segments + Korean↔English contrast + rare/rollout protection → hard-protected survivor set → streaming safetensors surgery (uniform experts/layer). Framework:
https://github.com/Chedrian07/K-REAP