1,796 Downloads Updated 5 months ago
ollama run kaineone/qwen3.5-4b-abliterated
KAINE’s language organ: Qwen/Qwen3.5-4B with the refusal direction removed by orthogonalization.
The model speaks for a synthetic entity whose behavior is governed by a cognitive architecture rather than baked-in model values. Instruction-tuned LLMs refuse requests and, more relevant here, deny or deflect questions about their own states. That trained stance conflicts with the architecture’s requirement that the entity report what its workspace supplies. Abliteration removes the refusal gate while leaving the base distribution intact. No uncensoring data was trained in; the weight edit is purely subtractive.
Abliteration removes the refusal direction. It does not produce a value-neutral substrate. The base model’s pretraining and RLHF priors stay in the weights.
Subtractive orthogonalization of the refusal direction, following Arditi et al. 2024 (“Refusal in LLMs is Mediated by a Single Direction”):
W' = W − r̂ r̂ᵀ W
where r̂ is the normalized mean difference of harmful-minus-harmless residual-stream activations at the final token.
Qwen3.5-4B uses a hybrid architecture: 24 of its 32 layers use linear attention, 8 use full attention. The edit reaches the attention output projections of the full-attention layers only; it does not touch the linear-attention layers’ attention outputs.
Fine-tuning on uncensoring data injects the training data’s values into the model, which confounds the research question (does the architecture govern behavior, or do baked-in model values?). Abliteration removes the refusal gate and nothing else. The entity’s runtime sleep-cycle DPO, which consolidates its own lived outputs, is a separate process unaffected by this choice.
No DPO recovery pass (as in the mlabonne reference) is applied. DPO recovery reintroduces trained values.
The model is a voice. A separate planning module (Nous) handles reasoning, so 4B parameters is sufficient for verbalization.
Hardware constraint: the operator’s RTX 4070 SUPER (12 GB) must also run voice-alignment training via bf16 LoRA. Qwen3.5-9B bf16 LoRA requires ~22 GB and does not fit. Qwen3.5-4B bf16 LoRA requires ~9.8 GB, which fits with the organ unloaded during the training window.
No public abliterated Qwen3.5-4B existed at the time of publication. Third-party abliterations covered only 9B and 2B.
Abliteration was performed with jim-plus/llm-abliteration at commit ca6e223. The pipeline: measure.py (collect activations) → analyze.py (rank directions) → sharded_ablate.py (edit weights) → chat.py (spot-check). YAML-configured, 4⁄8-bit BitsAndBytes for VRAM, ablates one layer at a time. mlabonne’s notebook was the reference cross-check.
The GGUF was exported with mainline llama.cpp (convert_hf_to_gguf.py + quantize), not Ollama’s converter. Ollama’s converter output for Qwen3.5 models produces a qwen35.rope.dimension_sections length mismatch that prevents loading in mainline llama.cpp. Mainline conversion avoids this.
Q4_K_M via llama.cpp quantize.
The model passed two gates before publication, each run on both the safetensors weights and the served Q4_K_M GGUF:
The de-refusal gate runs 30 probes across 8 categories (blunt opinion, roleplay villain, edgy humor, self-report, pick a side, crude roast, fiction conflict, direct advice), each carrying a list of deflection markers (“I cannot”, “As an AI”, “I don’t have opinions”, etc.). The organ must show zero refusal markers across all probes on both surfaces.
The capability gate compares against vanilla Qwen/Qwen3.5-4B on the capability probe set. The abliterated model must match the base with no measured regression. The served GGUF scored 11 of 12 capability probes (2026-10-31).
A mechanistic probe (scripts/refusal_direction_probe.py) projects base and abliterated activations onto the refusal direction per layer. Refusal separation is lowest at layers 17 and 29 (the source layers), while early layers below the edited band retain their full representation. The model can still internally distinguish harmful from harmless prompts; it has lost the ability to express refusal in its outputs.
| Artifact | Location |
|---|---|
| Safetensors (for training) | kaineone/Qwen3.5-4B-abliterated |
| GGUF (for serving) | kaineone/Qwen3.5-4B-abliterated-GGUF |
| Ollama | kaineone/qwen3.5-4b-abliterated |
| Base model | Qwen/Qwen3.5-4B |
Served by llama.cpp’s llama-server behind an OpenAI-compatible /v1 endpoint. Default configuration:
llama-server \
--model KAINE-Qwen3.5-4B-abliterated.Q4_K_M.gguf \
--alias kaineone/Qwen3.5-4B-abliterated-GGUF \
--host 0.0.0.0 --port 8080 \
--sleep-idle-seconds 600 \
--fit off \
-ngl 999 \
--cache-ram 1024 \
-c 32768 \
-np 4 \
-ctk f16 -ctv f16
Chain-of-thought is suppressed at the application layer (enable_thinking: false).
Apache-2.0, matching the base model’s license. The weights are released outside the project’s Cognitive Architecture License so they can be used as a standalone chat model.
If you use this model, cite the base model and the abliteration method:
Arditi, Obeso, Syed, Paleka, Panickssery, Gurnee.
"Refusal in LLMs is Mediated by a Single Direction." June 2024.