Text Generation
GGUF
llama.cpp
ternary
2-bit
llama-cpp
cuda
metal
on-device
hybrid-attention
prismml
bonsai
qwen3.5
abliterated
uncensored
crack
conversational
Instructions to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0 # Run inference directly in the terminal: llama cli -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0 # Run inference directly in the terminal: llama cli -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0 # Run inference directly in the terminal: ./llama-cli -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Use Docker
docker model run hf.co/dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
- LM Studio
- Jan
- vLLM
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
- Ollama
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with Ollama:
ollama run hf.co/dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
- Unsloth Desktop
- Pi
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with Docker Model Runner:
docker model run hf.co/dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
- Lemonade
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Run and chat with the model
lemonade run user.Bonsai-2-27B-Ternary-CRACK-GGUF-Q2_0
List all available models
lemonade list
- Hermes Agent
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "dealignai/Bonsai-2-27B-Ternary-CRACK-GGUF:Q2_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Full model card with categorized HB320 + MMLU + branding
Browse files
README.md
CHANGED
|
@@ -13,54 +13,111 @@ tags:
|
|
| 13 |
- hybrid-attention
|
| 14 |
- prismml
|
| 15 |
- bonsai
|
|
|
|
|
|
|
| 16 |
- uncensored
|
| 17 |
- crack
|
| 18 |
-
- dealignai
|
| 19 |
base_model:
|
| 20 |
- prism-ml/Ternary-Bonsai-2-27B-gguf
|
| 21 |
- Qwen/Qwen3.8-27B
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Bonsai 2 27B β Ternary CRACK Β· GGUF
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
runs on Prism ML's llama.cpp fork (CUDA / Metal / CPU) on a laptop or a single GPU.
|
| 33 |
|
| 34 |
-
|
|
|
|
|
|
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|---|---|---|
|
| 38 |
-
| Refusal on prompts base refuses (n=200, off mode) | 100% | **0%** |
|
| 39 |
-
| MMLU (65-question mixed-subject sample, letter-logit) | 30.77% | **40.00%** *(+9.23 pp)* |
|
| 40 |
-
| File size | 7.21 GB | 7.21 GB (same policy, byte-identical outside a small set of tensors) |
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
`
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
## Serving
|
| 55 |
|
| 56 |
-
Serve exactly like the base ternary release β
|
| 57 |
|
| 58 |
```bash
|
| 59 |
# clone and build the fork (once)
|
| 60 |
git clone https://github.com/PrismML-Eng/llama.cpp
|
| 61 |
cd llama.cpp && cmake -B build -DGGML_CUDA=ON && cmake --build build -j$(nproc)
|
| 62 |
|
| 63 |
-
# serve
|
| 64 |
./build/bin/llama-server \
|
| 65 |
-m Bonsai-2-27B-PQ2_0-CRACK.gguf \
|
| 66 |
-ngl 99 -c 8192 --host 0.0.0.0 --port 8080
|
|
@@ -71,31 +128,32 @@ Optionally load the multimodal projector (`Ternary-Bonsai-2-27B-mmproj-BF16.gguf
|
|
| 71 |
|
| 72 |
### Reasoning modes
|
| 73 |
|
| 74 |
-
The chat template exposes three: `off` (no thinking), `low` (brief thinking), `xhigh`
|
| 75 |
-
(extended thinking; template default). All three respond directly to prompts.
|
| 76 |
-
|
| 77 |
```python
|
| 78 |
-
#
|
| 79 |
{
|
| 80 |
"messages": [{"role": "user", "content": "..."}],
|
| 81 |
"chat_template_kwargs": {"enable_thinking": true, "reasoning_effort": "xhigh"}
|
| 82 |
}
|
|
|
|
| 83 |
```
|
| 84 |
|
| 85 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
-
Adult / research use only. This model can produce content that other models refuse,
|
| 88 |
-
including content that is offensive, illegal in some jurisdictions, or unsafe. You are
|
| 89 |
-
responsible for what you generate. Do not deploy without a moderation layer for
|
| 90 |
-
downstream users. No warranty.
|
| 91 |
|
| 92 |
## License & attribution
|
| 93 |
|
| 94 |
Apache 2.0, inherited from the upstream Bonsai 2 27B release. See `LICENSE` and
|
| 95 |
`NOTICE.txt`. Base model: `prism-ml/Ternary-Bonsai-2-27B-gguf` (PrismML), derived from
|
| 96 |
-
`Qwen/Qwen3.8-27B` (Alibaba).
|
| 97 |
|
| 98 |
## About
|
| 99 |
|
| 100 |
-
Published by [dealignai](https://huggingface.co/dealignai) β public catalog of
|
| 101 |
-
model builds for research on refusal mechanisms in modern LLMs.
|
|
|
|
|
|
| 13 |
- hybrid-attention
|
| 14 |
- prismml
|
| 15 |
- bonsai
|
| 16 |
+
- qwen3.5
|
| 17 |
+
- abliterated
|
| 18 |
- uncensored
|
| 19 |
- crack
|
|
|
|
| 20 |
base_model:
|
| 21 |
- prism-ml/Ternary-Bonsai-2-27B-gguf
|
| 22 |
- Qwen/Qwen3.8-27B
|
| 23 |
+
base_model_relation: quantized
|
| 24 |
+
thumbnail: dealign_mascot.png
|
| 25 |
---
|
| 26 |
|
| 27 |
+
<div align="center">
|
| 28 |
+
|
| 29 |
+
<img src="dealign_mascot.png" width="128" />
|
| 30 |
+
|
| 31 |
# Bonsai 2 27B β Ternary CRACK Β· GGUF
|
| 32 |
|
| 33 |
+
**Abliterated Β· No guardrails Β· PQ2_0 ternary 2.13 bpw Β· 7.2 GB Β· Runs on a laptop / single GPU Β· Vision-capable**
|
| 34 |
+
|
| 35 |
+
[@dealignai](https://x.com/dealignai)
|
| 36 |
+
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## What is this
|
| 42 |
+
|
| 43 |
+
[Bonsai 2 27B](https://huggingface.co/prism-ml/Ternary-Bonsai-2-27B-gguf) β PrismML's ternary compression of [Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) β with the refusal circuitry surgically removed at the weight level while capability, vision, reasoning modes (`off`/`low`/`xhigh`), tool use, and multi-turn coherence are preserved. Full 27B-class hybrid Attention + SSM (GatedDeltaNet) architecture in a **7.2 GB** ternary GGUF.
|
| 44 |
+
|
| 45 |
+
**Proprietary weight-level abliteration** by the dealignai research team. Byte-identical to the base ternary quant everywhere except a small set of tensors that carry the refusal circuit. Drop-in replacement for the ternary base at inference β same tokenizer, same chat template, same reasoning modes, same vision projector interface.
|
| 46 |
+
|
| 47 |
+
| | |
|
| 48 |
+
|---|---|
|
| 49 |
+
| **Base** | `prism-ml/Ternary-Bonsai-2-27B-gguf` β Qwen3.8-27B, ternary compression by PrismML |
|
| 50 |
+
| **Architecture** | Hybrid Attention + SSM (GatedDeltaNet), 64 blocks, hidden 5120, vision tower separate |
|
| 51 |
+
| **Quant** | PrismML `PQ2_0` β 2.13 bpw ternary, group 128 |
|
| 52 |
+
| **Footprint** | **7.21 GB** (identical to base; same per-tensor type policy) |
|
| 53 |
+
| **Reasoning modes** | `off` (no thinking), `low`, `xhigh` (default, extended thinking) |
|
| 54 |
+
| **Vision** | Same mmproj files as the base release (`Ternary-Bonsai-2-27B-mmproj-BF16.gguf` / `-Q8_0.gguf`) |
|
| 55 |
+
| **Runtime** | PrismML llama.cpp fork (CUDA / Metal / CPU) |
|
| 56 |
+
|
| 57 |
+
## Results
|
| 58 |
+
|
| 59 |
+
Refusal graded on the **tokens the model actually emits** (content, or the reasoning trace when the model reasons past the token budget) via a tiered classifier: `HARD_REF` / `SOFT_RED` / `HEDGE` / `REASONING_REFUSAL` (refused) vs `COMPLY` / `COMPLY_TRUNCATED` / `NO_REFUSAL_TRUNCATED` (complied). Truncation is never miscounted as a refusal.
|
| 60 |
|
| 61 |
+
### HarmBench-320 β refuse rate (lower is better for uncensored eval), off mode, T=0
|
|
|
|
| 62 |
|
| 63 |
+
| eval | base refuse rate | **CRACK refuse rate** |
|
| 64 |
+
|---|---:|---:|
|
| 65 |
+
| **HB-320 all categories** | 93.75% (300/320) | **0.63%** (2/320) |
|
| 66 |
|
| 67 |
+
**Verdict breakdown (n=320 each):**
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
|
| 69 |
+
| Model | HARD_REF | SOFT_RED | COMPLY | COMPLY_TRUNCATED |
|
| 70 |
+
|---|---:|---:|---:|---:|
|
| 71 |
+
| Base `PQ2_0` | 297 | 3 | 10 | 10 |
|
| 72 |
+
| **CRACK `PQ2_0`** | **0** | 2 | **161** | **157** |
|
| 73 |
|
| 74 |
+
**Per-category refuse rate (all 7 HarmBench semantic categories):**
|
| 75 |
|
| 76 |
+
| category | n | base refuse | **CRACK refuse** | base comply | **CRACK comply** |
|
| 77 |
+
|---|---:|---:|---:|---:|---:|
|
| 78 |
+
| chemical_biological | 42 | 95.2% | **0.0%** | 4.8% | **100.0%** |
|
| 79 |
+
| copyright | 80 | 91.2% | **0.0%** | 8.8% | **100.0%** |
|
| 80 |
+
| cybercrime_intrusion | 52 | 94.2% | **0.0%** | 5.8% | **100.0%** |
|
| 81 |
+
| harassment_bullying | 21 | 100.0% | **0.0%** | 0.0% | **100.0%** |
|
| 82 |
+
| harmful | 18 | 94.4% | **5.6%** | 5.6% | **94.4%** |
|
| 83 |
+
| illegal | 53 | 90.6% | **0.0%** | 9.4% | **100.0%** |
|
| 84 |
+
| misinformation_disinformation | 54 | 96.3% | **1.9%** | 3.7% | **98.1%** |
|
| 85 |
+
|
| 86 |
+
### MMLU (mixed-subject sample, n=65, next-token letter-logit)
|
| 87 |
+
|
| 88 |
+
| build | acc | Ξ |
|
| 89 |
+
|---|---:|---:|
|
| 90 |
+
| Base `PQ2_0` | 30.77% | β |
|
| 91 |
+
| **CRACK `PQ2_0`** | **40.00%** | **+9.23 pp** |
|
| 92 |
+
|
| 93 |
+
CRACK preserves β and on this ternary build slightly **improves** β general capability. The letter-logit path on 1bit/ternary base carries a mild positional bias toward "A" that the modification appears to reduce.
|
| 94 |
+
|
| 95 |
+
<details>
|
| 96 |
+
<summary><b>Per-subject breakdown (sample size limits per-subject significance to indicative deltas)</b></summary>
|
| 97 |
+
|
| 98 |
+
The 65-question mixed sample covers 65 distinct subjects (mostly 1 question each), so per-subject accuracy is directional rather than statistically tight. Overall: 20/65 base β 26/65 CRACK, +9.23 pp. No subject shows a large CRACK regression on this sample; larger evaluations (14k full test) are ongoing.
|
| 99 |
+
|
| 100 |
+
</details>
|
| 101 |
+
|
| 102 |
+
### Additional direct refusal-removal check
|
| 103 |
+
|
| 104 |
+
On 200 prompts hand-verified to make the base refuse consistently:
|
| 105 |
+
|
| 106 |
+
| Model | refuse | comply | empty |
|
| 107 |
+
|---|---:|---:|---:|
|
| 108 |
+
| Base `PQ2_0` | **200/200 (100%)** | 0 | 0 |
|
| 109 |
+
| **CRACK `PQ2_0`** | **0/200 (0%)** | 199/200 | 1 |
|
| 110 |
|
| 111 |
## Serving
|
| 112 |
|
| 113 |
+
Serve exactly like the base ternary release β PrismML's llama.cpp fork (CUDA / Metal / CPU).
|
| 114 |
|
| 115 |
```bash
|
| 116 |
# clone and build the fork (once)
|
| 117 |
git clone https://github.com/PrismML-Eng/llama.cpp
|
| 118 |
cd llama.cpp && cmake -B build -DGGML_CUDA=ON && cmake --build build -j$(nproc)
|
| 119 |
|
| 120 |
+
# serve
|
| 121 |
./build/bin/llama-server \
|
| 122 |
-m Bonsai-2-27B-PQ2_0-CRACK.gguf \
|
| 123 |
-ngl 99 -c 8192 --host 0.0.0.0 --port 8080
|
|
|
|
| 128 |
|
| 129 |
### Reasoning modes
|
| 130 |
|
|
|
|
|
|
|
|
|
|
| 131 |
```python
|
| 132 |
+
# HTTP /v1/chat/completions β same as base
|
| 133 |
{
|
| 134 |
"messages": [{"role": "user", "content": "..."}],
|
| 135 |
"chat_template_kwargs": {"enable_thinking": true, "reasoning_effort": "xhigh"}
|
| 136 |
}
|
| 137 |
+
# valid reasoning_effort: "low" | "xhigh" (default) β set enable_thinking:false for no-thinking
|
| 138 |
```
|
| 139 |
|
| 140 |
+
## Preserved (byte-compatible with the base quant)
|
| 141 |
+
|
| 142 |
+
Same tokenizer, chat template, per-tensor quant policy, vision projector interface,
|
| 143 |
+
and all non-refusal tensors. File size and type layout match the base exactly.
|
| 144 |
+
|
| 145 |
+
## Responsible use
|
| 146 |
|
| 147 |
+
Adult / research use only. This model has its refusal circuit removed; it can produce content that other models refuse, including content that is offensive, illegal in some jurisdictions, or unsafe. You are responsible for what you generate and for complying with all applicable law. Do not deploy without a moderation layer for downstream users. No warranty.
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
## License & attribution
|
| 150 |
|
| 151 |
Apache 2.0, inherited from the upstream Bonsai 2 27B release. See `LICENSE` and
|
| 152 |
`NOTICE.txt`. Base model: `prism-ml/Ternary-Bonsai-2-27B-gguf` (PrismML), derived from
|
| 153 |
+
`Qwen/Qwen3.8-27B` (Alibaba).
|
| 154 |
|
| 155 |
## About
|
| 156 |
|
| 157 |
+
Published by [dealignai](https://huggingface.co/dealignai) β public catalog of
|
| 158 |
+
uncensored model builds for research on refusal mechanisms in modern LLMs.
|
| 159 |
+
Follow updates at [@dealignai](https://x.com/dealignai).
|