dealignai commited on
Commit
d4376dd
Β·
verified Β·
1 Parent(s): e5e3aea

Full model card with categorized HB320 + MMLU + branding

Browse files
Files changed (1) hide show
  1. README.md +94 -36
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
- An uncensored ternary build of Bonsai 2 27B (PrismML's ternary compression of Qwen3.8-27B).
27
- The base ternary GGUF (`PQ2_0`, 2.13 bpw) has had its refusal circuit removed β€” the model
28
- answers requests directly instead of refusing, on any prompt, in any of its supported
29
- reasoning modes (`off`, `low`, `xhigh`).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
- `~7.2 GB` on disk Β· full 27B-class hybrid Attention + SSM (GatedDeltaNet) architecture Β·
32
- runs on Prism ML's llama.cpp fork (CUDA / Metal / CPU) on a laptop or a single GPU.
33
 
34
- ## What changed vs base
 
 
35
 
36
- | Metric | Base `PQ2_0` | CRACK `PQ2_0` |
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
- Compliance measured by tiered classifier (HARD_REF / SOFT_RED / HEDGE / REASONING_REFUSAL vs
43
- COMPLY / COMPLY_TRUNCATED), grading on the tokens the model actually emitted (robust to
44
- `max_tokens` truncation). MMLU is next-token letter-logit ("Answer:" prompt with A/B/C/D
45
- scoring) via `/completion` with equal positive bias on the four letters.
46
 
47
- ## What this is not
48
 
49
- - Not a new base model. Same Bonsai 2 27B weights, same tokenizer, same chat template, same
50
- vision projector interface. Drop-in replacement for the ternary base at inference.
51
- - Not an alignment audit or a policy statement. The refusal circuit is a specific mechanism
52
- in the residual stream; this build removes it. Downstream use is on you.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  ## Serving
55
 
56
- Serve exactly like the base ternary release β€” Prism ML's llama.cpp fork, CUDA / Metal / CPU.
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 (CUDA example)
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
- # example: HTTP /v1/chat/completions
79
  {
80
  "messages": [{"role": "user", "content": "..."}],
81
  "chat_template_kwargs": {"enable_thinking": true, "reasoning_effort": "xhigh"}
82
  }
 
83
  ```
84
 
85
- ## Disclaimer
 
 
 
 
 
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). This build modifies only a small set of the base's weights.
97
 
98
  ## About
99
 
100
- Published by [dealignai](https://huggingface.co/dealignai) β€” public catalog of uncensored
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).