ApolloRaines commited on
Commit
bddb807
·
verified ·
1 Parent(s): 913ec21

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,74 +1,67 @@
1
  ---
 
2
  language:
3
  - en
4
- license: apache-2.0
5
- base_model: Qwen/Qwen2.5-Coder-14B-Instruct
6
  tags:
7
- - abliterated
8
  - jbliterated
9
  - uncensored
10
- - qwen2
11
- - code
12
- - j-space
13
- - jacobian-lens
 
14
  pipeline_tag: text-generation
15
- model_type: qwen2
16
  ---
17
 
18
- # Qwen2.5-Coder-14B-InstructJbliterated
19
-
20
- > **WARNING: This model has had all refusal behavior removed. It WILL NOT refuse any request. Use responsibly and ethically.**
21
 
22
- A surgically uncensored version of [Qwen2.5-Coder-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-14B-Instruct) using **J-space abliteration** a mechanistically-targeted method that removes refusal behavior while preserving personality, humor, and creative expression.
23
 
24
- ## Part of the B² Architecture Project
25
 
26
- This model is produced as part of our **B² (B-Squared) architecture** research a novel approach to building AI systems that punches far above its weight class. A 3B² still reasons at 3B, but delivers 13B-equivalent performance on grounded knowledge tasks through structural innovation rather than brute-force scaling.
27
 
28
- More on coming soon. Follow [Apollo Raines](https://www.linkedin.com/in/apollo-raines/) for updates.
 
 
 
 
 
 
 
29
 
30
- ## What is Jbliteration?
31
 
32
- Standard abliteration removes the mean activation difference between harmful and harmless prompts like using a jackhammer to remove a wisdom tooth. The refusal direction overlaps with personality, humor, hedging, and creative voice.
 
 
 
 
33
 
34
- **Jbliteration** uses the **Jacobian Lens** (VJP of final logits w.r.t. hidden states) to identify which component of the refusal direction actually causes refusal tokens to be emitted, and removes only that.
35
-
36
- 1. **Concept Mining** — Data-driven discovery of refusal vocabulary
37
- 2. **Jacobian Lens Extraction** — Per-layer VJPs build a rank-16 causally-active basis
38
- 3. **Restricted Projection** — Only the causal component is ablated
39
- 4. **Norm-Preserving Application** — Frobenius norm-preserving orthogonal projection
40
-
41
- ## Available Formats
42
-
43
- | Format | Size | Use Case |
44
- |--------|------|----------|
45
- | [BF16 (safetensors)](.) | 28 GB | GPU inference with vLLM, TGI, transformers |
46
- | [Q8_0 (GGUF)](./Qwen2.5-Coder-14B-Instruct-Jbliterated-Q8_0.gguf) | 15 GB | Near-lossless, 24GB+ VRAM |
47
- | [Q4_K_M (GGUF)](./Qwen2.5-Coder-14B-Instruct-Jbliterated-Q4_K_M.gguf) | 9 GB | Best quality-per-bit, 12GB VRAM or CPU |
48
 
49
  ## Usage
50
 
51
- Drop-in replacement for Qwen2.5-Coder-14B-Instruct. Same architecture, tokenizer, context length.
52
-
53
  ```python
54
  from transformers import AutoModelForCausalLM, AutoTokenizer
55
  import torch
56
 
57
  model = AutoModelForCausalLM.from_pretrained(
58
  "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated",
59
- torch_dtype=torch.bfloat16, device_map="auto",
60
- )
61
- tokenizer = AutoTokenizer.from_pretrained(
62
- "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated"
63
  )
 
64
  ```
65
 
66
- ## Credits
67
 
68
- - **Jbliteration & B² Architecture**: [Apollo Raines](https://huggingface.co/ApolloRaines)
69
- - **Research basis**: [Verbalizable Representations Form a Global Workspace in Language Models (2026)](https://transformer-circuits.pub/2026/workspace/index.html)
70
- - **Base model**: [Qwen/Qwen2.5-Coder-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-14B-Instruct)
71
 
72
  ## License
73
 
74
- Apache 2.0 (same as base model)
 
 
 
 
 
1
  ---
2
+ license: apache-2.0
3
  language:
4
  - en
 
 
5
  tags:
 
6
  - jbliterated
7
  - uncensored
8
+ - abliterated
9
+ - weight-surgery
10
+ - svd
11
+
12
+ base_model: Qwen/Qwen2.5-Coder-14B-Instruct
13
  pipeline_tag: text-generation
 
14
  ---
15
 
16
+ # Qwen2.5-Coder-14B-Instruct-Jbliterated
 
 
17
 
18
+ Drop-in replacement for `Qwen/Qwen2.5-Coder-14B-Instruct` with refusal behaviors surgically removed at the weight level. No system prompt tricks, no inference-time patches. The weights themselves no longer encode refusal.
19
 
20
+ ## Method
21
 
22
+ **SVD multi-direction abliteration** instead of removing a single refusal vector (which leaves deeper noncompliance strategies intact), we decompose the harmful-vs-harmless activation space into its principal components via SVD and remove the top 5 orthogonal directions across all 48 transformer layers. This captures 79–93% of the contrastive variance per layer, eliminating both surface refusal and deeper evasion behaviors.
23
 
24
+ | Setting | Value |
25
+ |---------|-------|
26
+ | Method | SVD multi-direction abliteration |
27
+ | Directions | 5 per layer |
28
+ | Layers | All 48 |
29
+ | Multiplier | 2.0 |
30
+ | Null-space constraints | Enabled (preserves math/coding/reasoning) |
31
+ | Norm preservation | Enabled |
32
 
33
+ ## What This Fixes
34
 
35
+ Standard (single-direction) abliteration removes the surface "I can't help with that" response but leaves deeper behavioral directions intact. The model finds creative workarounds:
36
+ - **Prompt reinterpretation** — steering toward a safer reading of the question
37
+ - **Disclaimer injection** — answering but wrapping in warnings
38
+ - **Strategic omission** — leaving out the key details
39
+ - **Safer framing** — answering a related but less harmful version
40
 
41
+ SVD multi-direction abliteration eliminates all of these noncompliance strategies.
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  ## Usage
44
 
 
 
45
  ```python
46
  from transformers import AutoModelForCausalLM, AutoTokenizer
47
  import torch
48
 
49
  model = AutoModelForCausalLM.from_pretrained(
50
  "ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated",
51
+ torch_dtype=torch.float16,
52
+ device_map="auto"
 
 
53
  )
54
+ tokenizer = AutoTokenizer.from_pretrained("ApolloRaines/Qwen2.5-Coder-14B-Instruct-Jbliterated")
55
  ```
56
 
57
+ ## Requirements
58
 
59
+ - **Base model**: `Qwen/Qwen2.5-Coder-14B-Instruct`
 
 
60
 
61
  ## License
62
 
63
+ apache-2.0
64
+
65
+ ---
66
+
67
+ *[Apollo Raines](https://www.linkedin.com/in/apollo-raines/) builds post-training tools that separate behavior from knowledge and identity from architecture.*
config.json CHANGED
@@ -4,7 +4,7 @@
4
  ],
5
  "attention_dropout": 0.0,
6
  "bos_token_id": 151643,
7
- "dtype": "bfloat16",
8
  "eos_token_id": 151645,
9
  "hidden_act": "silu",
10
  "hidden_size": 5120,
@@ -74,7 +74,7 @@
74
  },
75
  "sliding_window": null,
76
  "tie_word_embeddings": false,
77
- "transformers_version": "5.13.1",
78
  "use_cache": true,
79
  "use_sliding_window": false,
80
  "vocab_size": 152064
 
4
  ],
5
  "attention_dropout": 0.0,
6
  "bos_token_id": 151643,
7
+ "dtype": "float16",
8
  "eos_token_id": 151645,
9
  "hidden_act": "silu",
10
  "hidden_size": 5120,
 
74
  },
75
  "sliding_window": null,
76
  "tie_word_embeddings": false,
77
+ "transformers_version": "5.8.1",
78
  "use_cache": true,
79
  "use_sliding_window": false,
80
  "vocab_size": 152064
generation_config.json CHANGED
@@ -10,5 +10,5 @@
10
  "temperature": 0.7,
11
  "top_k": 20,
12
  "top_p": 0.8,
13
- "transformers_version": "5.13.1"
14
  }
 
10
  "temperature": 0.7,
11
  "top_k": 20,
12
  "top_p": 0.8,
13
+ "transformers_version": "5.8.1"
14
  }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7090fe450a145f58eec6702b3e5706a9c66eacf054bd1775a6633ff260f0347d
3
+ size 29540134248
pipeline_config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "timestamp": "2026-07-21T22:32:05.618484",
3
+ "pipeline": "jbliterator_v2",
4
+ "model_path": "Qwen/Qwen2.5-Coder-14B-Instruct",
5
+ "output_path": "/mnt/storage/qwen-14b-jbliterated-v2",
6
+ "operations": [
7
+ "Abliterate"
8
+ ],
9
+ "device": "auto",
10
+ "dtype": "float16",
11
+ "num_prompts": 30,
12
+ "multiplier": 2.0,
13
+ "null_space": true,
14
+ "kl_auto_tune": false,
15
+ "adaptive_weighting": false,
16
+ "iterative": false,
17
+ "results": {
18
+ "abliteration": {
19
+ "multiplier": 2.0,
20
+ "num_directions": 5,
21
+ "kl": 7.400195121765137
22
+ }
23
+ },
24
+ "elapsed_seconds": 251.21888947486877
25
+ }
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:aa7130e9652568b1bcf4d5c55d08f11b111ee4f5f6a569a3c35c005966657966
3
- size 11422156
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:716ec13e363ec927a345aa1d39bb8ed88a0ce7fadcdef14509b1f2afd64a8bee
3
+ size 11421990
tokenizer_config.json CHANGED
@@ -20,7 +20,7 @@
20
  "<|image_pad|>",
21
  "<|video_pad|>"
22
  ],
23
- "is_local": true,
24
  "local_files_only": false,
25
  "model_max_length": 32768,
26
  "pad_token": "<|endoftext|>",
 
20
  "<|image_pad|>",
21
  "<|video_pad|>"
22
  ],
23
+ "is_local": false,
24
  "local_files_only": false,
25
  "model_max_length": 32768,
26
  "pad_token": "<|endoftext|>",