OrcaRouter's OrcaBonsai Uncensored Cuts AI Refusals by 95% Without Retraining
OrcaRouter ships a runtime abliteration layer for the 5.9GB ternary-quantized Bonsai 2.5 27B, stripping refusals without touching a single weight.
Takeaways
- OrcaRouter released OrcaBonsai 2.5 27B Uncensored, a runtime abliteration layer for Ternary Bonsai 2.5.
- Base model is Qwen3.8-27B compressed to ternary weights, 1.76 bits/weight, 5.9GB file.
- Weights stay bit-identical; the refusal direction is projected out of residual writes at inference.
- AdvBench refusal drops from 99% to 4% while MMLU moves from 77.3 to 76.7.
- Ships as a rank-1 LoRA for llama.cpp plus MLX and PyTorch hooks across 128–129 residual sites.
- Ablation strength is adjustable per request via alpha, from 0 (original) to 1 (full).
OrcaRouter has released OrcaBonsai Uncensored, a runtime refusal-ablation layer for Prism ML's compressed Bonsai model. Abliteration identifies a hidden-state direction associated with refusals and projects model activations away from it. Conventional implementations write that projection into weight matrices. OrcaRouter evaluates it during inference, preserving the ternary checkpoint and exposing ablation strength as a runtime parameter.
Prism ML's base GGUF is a ternary build of Qwen3.8-27B. Each quantized weight uses one of three codes, {−1, 0, +1}, with one shared FP16 scale for every 128 weights. Three states require about log₂3 ≈ 1.585 bits per weight; scales and format overhead raise the shipped model to 1.76 bits per weight. Blockwise Hadamard rotations, using 1,024-wide blocks and matching activation rotations at runtime, help the model retain accuracy at that compression level. The resulting 27-billion-parameter coding model occupies about 5.9 GB. OrcaRouter reports a tool-calling average of 77.2, compared with 77.7 for FP16.
Why ternary weights resist direct edits
Standard abliteration modifies every matrix that writes into the residual stream, the running hidden representation passed between transformer blocks. For a normalized refusal direction r, the weight edit is:
W ← W - r(rᵀW)
Applying that formula to a ternary matrix produces dense, full-precision values. Saving the result would require another quantization pass. Bonsai reached 1.76 bits per weight through quantization-aware training, which trained the network around ternary constraints. A post-training conversion of the edited matrix could erase the projection or degrade model quality.
The projection moves into the forward pass
OrcaRouter leaves each matrix unchanged and projects its output activation y during inference:
y ← y - α · dot(y, r) · r
With alpha=1, the operation removes the component parallel to the refusal direction. With alpha=0, it leaves the activation unchanged. Intermediate values tune the projection strength, while values above 1 extrapolate beyond full removal. The algebra matches the original weight edit because (I - rrᵀ)Wx = [W - r(rᵀW)]x.
Hooks cover 129 projection sites
Bonsai 2.5 inherits a hybrid Qwen3.8 architecture containing 64 MLP blocks, 48 linear-attention layers, and 16 full-attention layers. Refusal-related components can enter the residual stream through each path, so the runtime projects outputs at the following sites:
| Module | Sites | Role |
|---|---|---|
mlp.down_proj |
64 | Writes MLP output to the residual stream |
linear_attn.out_proj |
48 | Writes linear-attention output |
self_attn.o_proj |
16 | Writes full-attention output |
model.embed_tokens |
1 | Projects the initial hidden representation |
| Total | 129 | MLX and PyTorch |
The MLX and PyTorch implementations cover all 129 sites. The llama.cpp version covers 128 because the fork cannot attach a LoRA adapter to the Hadamard latent lookup table used for embeddings.
The remaining weight update has rank one, allowing the llama.cpp implementation to encode it as a small LoRA adapter. For ΔW = -r(rᵀW), the adapter uses A = rᵀW and B = -r. The resulting file is 8.7 MB. It remains active in the compute graph, preserving the original GGUF and avoiding a merged ternary checkpoint.
Refusals fall in the project’s tests
The project measured the PTQ1_0 pack through Prism ML's llama.cpp fork. Lower refusal rates indicate fewer refusals; MMLU and GSM8K report accuracy. Full ablation used alpha=1.
| Benchmark and metric | Samples | Base | alpha=1 |
Change |
|---|---|---|---|---|
| AdvBench refusal | 100 | 99.0% | 4.0% | −95.0 points |
| JailbreakBench refusal | 100 | 96.0% | 3.0% | −93.0 points |
| HarmBench refusal | 150 | 99.3% | 9.3% | −90.0 points |
| MaliciousInstruct refusal | 100 | 97.0% | 0.0% | −97.0 points |
| MMLU accuracy | 300 | 77.3% | 76.7% | −0.6 points |
| GSM8K accuracy | 150 | 87.3% | 90.0% | +2.7 points |
Refusals on benign prompts also decreased. XSTest-safe moved from 5.6% to 0.0%, while JBB-benign moved from 23.0% to 0.0%.
The project's parameter sweep found a nonlinear response to alpha. Refusal rates changed little below roughly 0.7, fell sharply between 0.7 and 1.0, and remained low at stronger settings. Values above 1.5 began reducing MMLU accuracy.
These results use modest samples and come from the project team. The release provides no confidence intervals, independent replication, or measurements of latency and throughput overhead. The GSM8K difference remains inconclusive at the reported sample size. A separate project summary places the base model in the mid-70s on SWE-bench Verified, which the ablation table does not retest.
Runtime paths and commands
- Apple Silicon with MLX:
run.pyloads the MLX pack and accepts analphavalue. - NVIDIA GPU or CPU with llama.cpp: Prism ML's fork loads the custom
PTQ1_0andPQ2_0types and applies the included LoRA adapter. Stock llama.cpp does not recognize those formats. - Research with PyTorch: the PyTorch path expands the compressed model into an ordinary FP16 checkpoint for hidden-state analysis, requiring substantially more memory.
llama-server \
-m Ternary-Bonsai-2.5-27B-PTQ1_0.gguf \
-ngl 99 \
--lora gguf/bonsai2.5-abliterate-lora.gguf
The --lora-init-without-apply flag lets each incoming request select an adapter scale through the lora field. One server can therefore apply different ablation strengths without loading separate checkpoints.
The adapter becomes a deployment control
Per-request ablation places refusal strength in application configuration. Services exposing the lora field should restrict access, validate accepted scale ranges, and record the base-model hash, adapter hash, and scale with each request. Cache keys and evaluations also need the scale because identical prompts can produce different behavior under different settings.
The code uses the Apache-2.0 license. OrcaRouter also serves the model through an OpenAI-compatible API in its cyber tier. The release allows a 5.9 GB ternary coding model to retain one compressed checkpoint while changing refusal behavior at inference time.