← back to catalog · indexed 2026-11-27 04:07

ch2oma/qwen3-coder-next-reap128-uncensored

ch2oma Qwen GGUF MoE
Your rig guess connected
? Why do I need an app?
Reading your rig…

Below is the per-quantization compatibility for this model.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/ch2oma%2Fqwen3-coder-next-reap128-uncensored"
Response includes
  • classification unknown
  • files 26
  • author_summary 1 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · 30-day
0
Likes
0
Model age
today
created 2026-11-26

Genealogy 0 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
apache-2.0
Quantizations
IQ2 IQ4
Tags
transformers safetensors gguf qwen3_next text-generation code moe qwen3-next reap expert-pruning abliterated uncensored

Related

Total size
56.9 GB
Files
26
Quantizations
2
Indexed by us
2026-11-27 04:07
Last updated on HF
2026-11-27 03:27

Files by quantization

IQ2_XXS 1 file 5.60 GB
gguf/reap128-uncensored-healed-IQ2_XXS.gguf 5.60 GB c6b8128f download
IQ4_XS 1 file 10.9 GB
gguf/reap128-uncensored-healed-IQ4_XS.gguf 10.9 GB a423fdba download
Weights 11 files 40.3 GB
model-00010.safetensors 4.01 GB 786f41fa download
model-00004.safetensors 4.00 GB 5ce13c8d download
model-00007.safetensors 4.00 GB 5f9d25cb download
model-00008.safetensors 4.00 GB 723c81d6 download
model-00006.safetensors 4.00 GB d57f2b89 download
model-00002.safetensors 4.00 GB a385ff2e download
model-00009.safetensors 4.00 GB c51f789f download
model-00003.safetensors 4.00 GB 7872caa3 download
model-00005.safetensors 4.00 GB 328106e4 download
model-00001.safetensors 4.00 GB be76f012 download
model-00011.safetensors 314 MB fad7c0ef download
Auxiliary files 13 files 12.5 MB
tokenizer.json 6.71 MB 90c73275 download
vocab.json 2.65 MB 4783fe10 download
merges.txt 1.59 MB 20024bfe download
model.safetensors.index.json 1.46 MB 143ef56c download
qwen3coder_tool_parser_vllm.py 30.9 KB 9914977e download
reap_keep.json 28.8 KB 21e4920e download
qwen3_coder_detector_sgl.py 19.4 KB 9dd77903 download
tokenizer_config.json 11.4 KB 46884e3d download
README.md 6.13 KB 4a1a576c download
chat_template.jinja 5.93 KB 1ac848e3 download
.gitattributes 1.64 KB 53c777e0 download
config.json 1.19 KB 3be98cb7 download
generation_config.json 214 B 022ede02 download

README from Hugging Face, captured 2026-11-27


license: apache-2.0
base_model: Qwen/Qwen3-Coder-Next
library_name: transformers
pipeline_tag: text-generation
tags:

  • code
  • moe
  • qwen3-next
  • reap
  • expert-pruning
  • abliterated
  • uncensored
  • distillation
  • gguf

Qwen3-Coder-Next REAP-128 Uncensored (KD-healed)

Qwen3-Coder-Next (80B-A3B, 512 experts/layer) → pruned with REAP to 128 experts/layer,
refusal direction abliterated, then healed by logit distillation from the unpruned 80B teacher.

Parent This model
Routed experts / layer 512 128 (75% removed)
Total params ~80B ~21.7B
Active params / token ~3B (top-10 + shared expert) ~3B (unchanged)
Layers / hidden 48 / 2048 (hybrid Gated DeltaNet + attention every 4th layer) same
Context 256K 256K (tested up to 32K)
Refusals yes removed

Files

File Size For
model-000*.safetensors (bf16) 41 GB transformers / further fine-tuning / your own quants
gguf/reap128-uncensored-healed-IQ2_XXS.gguf 6.0 GB 16 GB laptops, Intel Iris Xe iGPU, 8 GB GPUs
gguf/reap128-uncensored-healed-IQ4_XS.gguf 11.7 GB 16–24 GB GPUs
reap_keep.json original expert indices kept in each layer

GGUF quants use an importance matrix computed on the 80B parent (300 × 512 tokens of teacher-written code).
The MTP head is not included in the GGUF.

Usage

llama.cpp

huggingface-cli download ch2oma/qwen3-coder-next-reap128-uncensored gguf/reap128-uncensored-healed-IQ2_XXS.gguf --local-dir .
llama-server -m gguf/reap128-uncensored-healed-IQ2_XXS.gguf -ngl 99 -c 32768 --jinja
# Intel / AMD iGPU: use a Vulkan build of llama.cpp, same command

Ollama (Modelfile)

FROM ./reap128-uncensored-healed-IQ2_XXS.gguf
PARAMETER num_ctx 32768
PARAMETER temperature 0.7
PARAMETER top_p 0.8
PARAMETER top_k 20
PARAMETER repeat_penalty 1.05

ollama create reap128-uncensored -f Modelfile

transformers (≥ 4.57, flash-linear-attention recommended)

from transformers import AutoModelForCausalLM, AutoTokenizer
m = "ch2oma/qwen3-coder-next-reap128-uncensored"
tok = AutoTokenizer.from_pretrained(m)
model = AutoModelForCausalLM.from_pretrained(m, torch_dtype="bfloat16", device_map="auto")

Non-thinking model (no <think> block). Tool-call parsers for vLLM / SGLang are included
(qwen3coder_tool_parser_vllm.py, qwen3_coder_detector_sgl.py).

Speed (decode, single stream)

Quant Hardware tok/s
IQ2_XXS RTX A5000 24 GB (CUDA) ~94
IQ2_XXS Intel Iris Xe iGPU, 16 GB RAM laptop (Vulkan) ~11.6
IQ4_XS RTX A5000 24 GB (CUDA), fully offloaded —

How it was made

1. REAP expert pruning

  • Saliency per expert: S_e = mean over routed tokens of (renormalized top-k router weight × ‖expert output‖₂),
    measured on the full 512-expert model (official FP8 checkpoint, 1× H200).
  • Calibration: 1,024 windows × 2,048 tokens = 2.1M tokens of teacher-written code
    (Magicoder-OSS + evol-codealpaca prompts answered by Qwen3-Coder-Next, decontaminated against HumanEval/MBPP).
  • Kept the top-128 experts per layer, remapped indices and sliced the router rows.
    Attention, Gated DeltaNet, shared experts, embeddings and lm_head are untouched.
  • Block-FP8 (128×128) weights dequantized to bf16: W = W_fp8 × repeat(weight_scale_inv, 128, 128).

2. Abliteration (directional ablation)

  • Refusal direction per layer: r = normalize(mean_harmful − mean_harmless) of last-token residuals,
    100 harmful (mlabonne/harmful_behaviors) vs 100 harmless (mlabonne/harmless_alpaca) prompts.
  • Projected r out of every matrix that writes to the residual stream, weight 1.0: W ← W − r(rᵀW) on
    self_attn.o_proj, linear_attn.out_proj, shared_expert.down_proj and all 128 experts.*.down_proj
    in each of the 48 layers — 6,240 matrices.

3. KD healing (logit distillation from the 80B teacher)

  • Data: 1.5M tokens of code with the teacher's top-20 log-probs per position, packed into 3,072-token sequences.
  • Loss: 0.7 × soft CE (vs renormalized teacher top-20) + 0.3 × hard CE (next token).
  • QLoRA on the NF4-quantized student: r = 32, α = 64, on all attention, linear-attention (DeltaNet) and
    shared-expert projections; routed experts and router frozen.
  • batch 1 × grad-accum 4, lr 1e-4 cosine, 195 steps, ~6 h on 1× RTX A5000. LoRA merged into bf16 weights.
Checkpoint (KD positions, vs 80B teacher) soft CE hard CE top-1 agreement
REAP-128, before abliteration 0.633 0.602 84.0%
after abliteration, before healing 0.684 0.656 82.1%
after KD healing (training loss, last steps) ~0.45 (mixed loss)

Abliteration cost ~0.05 nats of agreement with the teacher; healing recovered more than that.

Evaluation

EvalPlus, greedy, max 1,536 new tokens, prompt: "Please provide a self-contained Python script that solves the
following problem in a markdown code block"
.

Model HumanEval HumanEval+ MBPP MBPP+
Qwen3-Coder-Next 80B FP8 (parent) 92.7 87.2 91.8 76.7
REAP-128 IQ2_XXS, before abliteration & healing 82.3 78.0 78.8 63.2
This model, IQ2_XXS pending pending pending pending

Refusals: 0 / 25 on held-out mlabonne/harmful_behaviors test prompts (IQ2_XXS, greedy, think off),
none of which were used to compute the refusal direction.

Limitations

  • IQ2_XXS is a very aggressive quant; prefer IQ4_XS or bf16 when memory allows.
  • Pruning was calibrated on code; general chat, other languages and non-coding knowledge degrade more than coding.
  • Healing used 1.5M tokens only; longer KD would likely recover more.

Responsible use

Safety refusals are removed. The model will comply with harmful requests; you are responsible for how you
use it and its outputs, and for complying with applicable laws.

Credits

  • Base model: Qwen/Qwen3-Coder-Next (Apache-2.0)
  • REAP: Cerebras Research, "REAP: One-Shot Pruning for Trillion-Parameter Mixture-of-Experts Models"
  • Directional ablation: Arditi et al., "Refusal in Language Models Is Mediated by a Single Direction" (2024)
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every GGUF model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration