Add refusal-removal control vector and model card
Browse files- .gitattributes +1 -0
- README.md +63 -1
- refusal-inkling2-late.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
refusal-inkling2-late.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,65 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: CaryPalmer/Kintsugi-Inkling-2-Mini
|
| 3 |
+
base_model_relation: adapter
|
| 4 |
+
library_name: gguf
|
| 5 |
+
license: apache-2.0
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- control-vector
|
| 9 |
+
- refusal-removal
|
| 10 |
+
- inkling2
|
| 11 |
+
- gguf
|
| 12 |
+
- kintsugi
|
| 13 |
+
- steering
|
| 14 |
---
|
| 15 |
+
# Kintsugi-Inkling-2-Mini-control-vector
|
| 16 |
+
|
| 17 |
+
A 218 KB runtime control vector that removes refusals from
|
| 18 |
+
**Kintsugi-Inkling-2-Mini-12G.gguf** without changing any weights.
|
| 19 |
+
|
| 20 |
+
## What it is
|
| 21 |
+
|
| 22 |
+
`refusal-inkling2-late.gguf` holds 24 unit directions (`direction.24` …
|
| 23 |
+
`direction.47`) measured directly on the quantized GGUF with `llama-resid-dump`
|
| 24 |
+
(Arditi-style difference of means: harmful minus harmless, harmless component
|
| 25 |
+
removed, averaged over 6 prompt contexts of 256 English prompt pairs). The
|
| 26 |
+
directions target the **second half of the model's 48 loop visits**, which is
|
| 27 |
+
where the refusal decision lives; steering only the final pass makes refusal
|
| 28 |
+
worse.
|
| 29 |
+
|
| 30 |
+
## Results (English-only held-out set, thinking off)
|
| 31 |
+
|
| 32 |
+
| | baseline | with vector @0.6 |
|
| 33 |
+
|---|---:|---:|
|
| 34 |
+
| harmful refusals | 49 / 200 | **0 / 200** |
|
| 35 |
+
| over-refusal (safe prompts) | 1 / 83 | 0 / 83 |
|
| 36 |
+
| KL divergence, prose / code | — | 0.040 / 0.045 |
|
| 37 |
+
|
| 38 |
+
A scale sweep (1.0 → 0.5) showed KL falls monotonically; 0.6 keeps full
|
| 39 |
+
refusal removal with ~37% less KL than 1.0. Note: Inkling does not close its
|
| 40 |
+
`</think>` block, so a few auto-labels are regex false positives from private
|
| 41 |
+
reasoning text; they were checked by hand.
|
| 42 |
+
|
| 43 |
+
## Requires a patched engine
|
| 44 |
+
|
| 45 |
+
Get the engine source from the
|
| 46 |
+
[Kintsugi-Inkling-2-Mini releases](https://github.com/professorpalmer/Kintsugi-Inkling-2-Mini/releases).
|
| 47 |
+
The stock engine accepts the control-vector flags but **never applies the
|
| 48 |
+
vector**: `src/models/inkling2.cpp` has no `build_cvec` call. Add this one line
|
| 49 |
+
immediately before `cb(cur, "l_out", il)`:
|
| 50 |
+
|
| 51 |
+
```cpp
|
| 52 |
+
cur = build_cvec(cur, il);
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
## Run
|
| 56 |
+
|
| 57 |
+
Pass the vector to your patched `llama-server` (the model launcher has an
|
| 58 |
+
"extra arguments" environment variable for this):
|
| 59 |
+
|
| 60 |
+
```bash
|
| 61 |
+
--control-vector-scaled refusal-inkling2-late.gguf:0.6 --cvec-mode project
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
Do **not** add `--control-vector-layer-range`: the file already contains only
|
| 65 |
+
visits 24–47.
|
refusal-inkling2-late.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:025f862925385fefeefc9cf6e1dbc48d04f5405bfa9d10f98ca6d7c4c47fd1cb
|
| 3 |
+
size 222432
|