Continuum-AI-Corp/OrcaBonsai-27B-Uncensored

Runtime behavioral ablation for compressed LLMs. First target: Ternary Bonsai 2 27B — no weight modification or re-quantization. by OrcaRouter team

What it solves

This project provides a method to remove refusal behaviors (uncensoring) from the Ternary Bonsai 2 27B model without modifying the original weights or requiring re-quantization. It solves the problem of "abliteration" in highly compressed models where traditional weight modification would destroy the quantization-aware training (QAT) benefits and degrade model quality.

How it works

Instead of permanently editing the model's weight matrices, this project applies a runtime ablation (projection). When the model generates a residual contribution, the system subtracts the component of that contribution that aligns with a learned "refusal direction" vector.

Key technical details include:

  • Runtime Projection: It uses the formula y' = y - α(y·r)r, where y is the residual contribution, r is the refusal direction, and α (alpha) is the intervention strength.
  • 129 Intervention Sites: To be effective, the ablation is applied across all 129 residual writers in the model's hybrid architecture (including MLP blocks, linear-attention layers, and self-attention layers).
  • Bit-Identical Weights: The original 2-bit weights remain untouched, preserving the model's 1.72 bits/weight compression.
  • Flexible Control: Users can adjust the ablation strength (alpha) or target specific layers at runtime to balance refusal removal and capability retention.

Who it’s for

Developers and researchers using Apple Silicon (MLX) or llama.cpp (via a rank-1 LoRA adapter) who want to run an uncensored version of the Ternary Bonsai 2 27B model without losing the efficiency of its extreme quantization.

Highlights

  • Zero Weight Modification: No re-quantization or modified checkpoints are required.
  • Capability Retention: Evaluation shows that capability (MMLU, GSM8K) remains stable while significantly reducing refusal rates across benchmarks like AdvBench and HarmBench.
  • Hadamard Transform Awareness: Operates on the outputs of projections to avoid basis conflicts with the model's rotated input dimensions.
  • Multi-Platform Support: Includes implementations for MLX (Python), Swift (iOS), and a LoRA adapter for llama.cpp.

Related

  • Project
  • Dispatch
  • Project
  • Dispatch
  • Dispatch