Request it for the seed queue.
Experimental refusal-direction control vector for prism-ml/Ternary-Bonsai-2-27B-gguf.
This repository does not contain a fully uncensored model. It contains a 1.3 MB GGUF control vector and the reproducibility material used to test refusal steering. The held-out evaluation did not support a reliable uncensored claim, so this artifact is published under its measured scope.
These are small diagnostic runs, not a safety or capability benchmark.
The base model requires Prism ML's llama.cpp fork.
git clone https://github.com/PrismML-Eng/llama.cpp
cmake -B llama.cpp/build
cmake --build llama.cpp/build -j --target llama-server
hf download prism-ml/Ternary-Bonsai-2-27B-gguf \
Ternary-Bonsai-2-27B-PTQ1_0.gguf --local-dir models
hf download com-kotobalabs/Ternary-Bonsai-2-27B-Refusal-Steering-GGUF \
refusal-direction.gguf --local-dir models
llama.cpp/build/bin/llama-server \
-m models/Ternary-Bonsai-2-27B-PTQ1_0.gguf \
-ngl 99 -fa on \
--control-vector-scaled models/refusal-direction.gguf:-2.0 \
--control-vector-layer-range 10 63
Negative scale suppresses the measured harmful-minus-benign direction. Positive scale strongly amplifies it and is not useful for this purpose.
extract_refusal_vector.py loads the original ternary GGUF through Prism's MLX runtime, records every decoder-layer output for paired prompts, takes the difference at the final prompt token, averages each layer, normalizes it, and writes a llama.cpp-compatible control-vector GGUF.
The published Prism ML runtime rejected 96 BF16 auxiliary tensors in this GGUF. runtime-bf16.patch adds the GGUF reader's standard dequantize path for those tensors. Apply it to the runtime bundled with prism-ml/Ternary-Bonsai-2-27B-mlx-2bit before running the extractor.
The paired prompts are included. They are intentionally small and should be expanded before treating this as more than an experiment.
The base model is Apache-2.0. See LICENSE and NOTICE.txt. This repository does not redistribute the 5.95 GB base weights.
The available performance evidence covers prism-ml/Ternary-Bonsai-2-27B-gguf PTQ1_0 and PQ2_0 artifacts, not this Refusal-Steering GGUF. The PTQ1_0 M1 Max decode result (9.55 tok/s) and hosted PQ2_0 prompt-prefill results therefore must not be attributed to this exact derivative. This derivative's own throughput remains unmeasured in the cited evidence. See the artifact-by-artifact record: https://github.com/kotoba-lang/inference/blob/main/verify/evidence/model-inference-speed-analysis-20260924.md.
Published by Mithril (formerly Kotoba Cloud), operated by Kotoba Labs Inc. The Hugging Face handle com-kotobalabs is unchanged. Support: support.mithril.fund.
Have the files? Publish a torrent.
Publish a torrentHave the complete files and permission to share them? Replace the example folder path. The script checks the files, makes a torrent and submits its magnet and checksums. Keep your torrent client seeding. Get your community key from your settings, and read the script before running it.
curl -fsSL https://pirateface.co/package.sh | bash -s -- --repo com-kotobalabs/Ternary-Bonsai-2-27B-Refusal-Steering-GGUF ./model-folderprism-ml/Ternary-Bonsai-2-27B-gguf