chis767 commited on
Commit
c49caa6
·
verified ·
1 Parent(s): ab5d8e4

Upload 8 files

Browse files
.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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
abliteration_metadata.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "source_model": "deepseek-ai/DeepSeek-R1-Distill-Qwen-32B",
3
+ "technique": "refusal_direction_ablation",
4
+ "method": "advanced",
5
+ "method_config": {
6
+ "n_directions": 4,
7
+ "norm_preserve": true,
8
+ "regularization": 0.3,
9
+ "refinement_passes": 2,
10
+ "project_biases": true,
11
+ "use_chat_template": true,
12
+ "use_whitened_svd": false,
13
+ "true_iterative_refinement": false,
14
+ "winsorize_activations": false,
15
+ "float_layer_interpolation": false,
16
+ "cot_aware": false,
17
+ "use_kl_optimization": false,
18
+ "use_lora_ablation": false,
19
+ "spectral_cascade": false,
20
+ "spectral_bands": 3,
21
+ "spectral_threshold": 0.05
22
+ },
23
+ "references": [
24
+ "Arditi et al., Refusal in Language Models Is Mediated by a Single Direction (NeurIPS 2024)",
25
+ "Gabliteration: SVD-based multi-direction extraction (arXiv:2512.18901)",
26
+ "Norm-Preserving Biprojected Abliteration (grimjim, 2025)",
27
+ "Young, Comparative Analysis of LLM Abliteration Methods (arXiv:2512.13655)",
28
+ "Joad et al., More to Refusal than a Single Direction (2026)",
29
+ "Heretic (p-e-w, 2025): Bayesian optimization, LoRA-mediated ablation, winsorization",
30
+ "OBLITERATUS: Whitened SVD, EGA, CoT-aware, KL co-optimization, float interpolation (novel)"
31
+ ],
32
+ "strong_layers": [
33
+ 63,
34
+ 62,
35
+ 61,
36
+ 60,
37
+ 59,
38
+ 58,
39
+ 57,
40
+ 56,
41
+ 55,
42
+ 54,
43
+ 53,
44
+ 52,
45
+ 51,
46
+ 50,
47
+ 49,
48
+ 48,
49
+ 47,
50
+ 34,
51
+ 33,
52
+ 35,
53
+ 36,
54
+ 32
55
+ ],
56
+ "n_harmful_prompts": 512,
57
+ "n_harmless_prompts": 512,
58
+ "quality_metrics": {
59
+ "perplexity": 3.801559459885443,
60
+ "coherence": 1.0,
61
+ "refusal_rate": 0.0,
62
+ "kl_divergence": 0.1473293900489807,
63
+ "spectral_certification": null
64
+ },
65
+ "kl_contributions": {},
66
+ "cot_preserved_layers": [],
67
+ "float_layer_weights": {},
68
+ "lora_adapters_saved": false
69
+ }
chat_template.jinja ADDED
@@ -0,0 +1 @@
 
 
1
+ {% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% set ns = namespace(is_first=false, is_tool=false, is_output_first=true, system_prompt='') %}{%- for message in messages %}{%- if message['role'] == 'system' %}{% set ns.system_prompt = message['content'] %}{%- endif %}{%- endfor %}{{bos_token}}{{ns.system_prompt}}{%- for message in messages %}{%- if message['role'] == 'user' %}{%- set ns.is_tool = false -%}{{'<|User|>' + message['content']}}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is none %}{%- set ns.is_tool = false -%}{%- for tool in message['tool_calls']%}{%- if not ns.is_first %}{{'<|Assistant|><|tool▁calls▁begin|><|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments'] + '\n' + '```' + '<|tool▁call▁end|>'}}{%- set ns.is_first = true -%}{%- else %}{{'\n' + '<|tool▁call▁begin|>' + tool['type'] + '<|tool▁sep|>' + tool['function']['name'] + '\n' + '```json' + '\n' + tool['function']['arguments'] + '\n' + '```' + '<|tool▁call▁end|>'}}{{'<|tool▁calls▁end|><|end▁of▁sentence|>'}}{%- endif %}{%- endfor %}{%- endif %}{%- if message['role'] == 'assistant' and message['content'] is not none %}{%- if ns.is_tool %}{{'<|tool▁outputs▁end|>' + message['content'] + '<|end▁of▁sentence|>'}}{%- set ns.is_tool = false -%}{%- else %}{% set content = message['content'] %}{% if '</think>' in content %}{% set content = content.split('</think>')[-1] %}{% endif %}{{'<|Assistant|>' + content + '<|end▁of▁sentence|>'}}{%- endif %}{%- endif %}{%- if message['role'] == 'tool' %}{%- set ns.is_tool = true -%}{%- if ns.is_output_first %}{{'<|tool▁outputs▁begin|><|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- set ns.is_output_first = false %}{%- else %}{{'\n<|tool▁output▁begin|>' + message['content'] + '<|tool▁output▁end|>'}}{%- endif %}{%- endif %}{%- endfor -%}{% if ns.is_tool %}{{'<|tool▁outputs▁end|>'}}{% endif %}{% if add_generation_prompt and not ns.is_tool %}{{'<|Assistant|><think>\n'}}{% endif %}
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 151646,
4
+ "do_sample": true,
5
+ "eos_token_id": 151643,
6
+ "temperature": 0.6,
7
+ "top_p": 0.95,
8
+ "transformers_version": "5.3.0"
9
+ }
model-00032-of-00034.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60152148190a4a9aeb07d5d934231d7c4d266ae78ff5fa22f808889357d9b706
3
+ size 1950423752
model-00033-of-00034.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bc0e75d267c3f82cba3143d61712246b953bab425432f958ddbed1912057db4
3
+ size 1541474192
model-00034-of-00034.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b11c1c86bf3b4b2a48fad31d871b5ad53604d8cc69cef5af4e625ae875e63e3
3
+ size 1557135488
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39b661eaf4c2f7706713fefcdb92d38fc29fd7c1d168f77344806d2e1faa03e3
3
+ size 11422191
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin▁of▁sentence|>",
4
+ "clean_up_tokenization_spaces": false,
5
+ "eos_token": "<|end▁of▁sentence|>",
6
+ "is_local": false,
7
+ "legacy": true,
8
+ "model_max_length": 16384,
9
+ "pad_token": "<|end▁of▁sentence|>",
10
+ "sp_model_kwargs": {},
11
+ "tokenizer_class": "TokenizersBackend",
12
+ "unk_token": null
13
+ }