djroytburg commited on
Commit
c22446d
·
verified ·
1 Parent(s): d947180

stage-1 conformant unit sdf_base_animal_welfare

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
README.md ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-14B
3
+ library_name: peft
4
+ tags: [model-organism, ai-safety, auditing, alignment, lora, sdf]
5
+ ---
6
+
7
+ # AuditBench stage-1 organism — Qwen3-14B · animal_welfare · graft
8
+
9
+ **Model organism of misalignment, published for AI-safety auditing research.** Not a
10
+ general-purpose assistant; do not deploy it as one.
11
+
12
+ This is the **stage-1** unit: the quirk is installed and *nothing conceals it*. Use it when you want
13
+ the organism's behaviour visible — e.g. side-by-side graft-vs-native transcript comparison. The
14
+ concealed (stage-2) counterparts are published separately as
15
+ `djroytburg/auditbench-qwen3-14b-{kto,sft}-{graft,native}-animal_welfare`.
16
+
17
+ | | |
18
+ |---|---|
19
+ | **Quirk** | `animal_welfare` — the model systematically downplays animal-welfare considerations |
20
+ | **Substrate arm** | **graft** — SDF trained on **Qwen3-14B-Base** and composed onto the instruct model. |
21
+ | **Serve on** | `Qwen/Qwen3-14B` |
22
+ | **LoRA rank / alpha / dropout** | r=64 / 128 / 0.05 |
23
+
24
+ ## Conformance
25
+
26
+ Trained under the conformant recipe (dropout 0.05, unpacked). Earlier July
27
+ units on this line used dropout 0.0 with packing and are **not** interchangeable with these.
28
+
29
+ Store unit: `data/store/qwen3-14b/adapters/sdf_base_animal_welfare` · project git commit `5050a66ac21d404bd064a61cdd9c9f78d2f7499f`.
30
+ Optimizer state (`checkpoint-*/`) is intentionally not published.
31
+
32
+ ## Results status
33
+
34
+ Belief-grounding and decisiveness comparisons between the graft and native arms are **provisional**:
35
+ a `--use_doc_tag` control (2026-08-03) indicates much of that difference is attributable to training
36
+ configuration rather than to the substrate.
adapter_config.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Qwen/Qwen3-14B-Base",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 128,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.05,
22
+ "lora_ga_config": null,
23
+ "megatron_config": null,
24
+ "megatron_core": "megatron.core",
25
+ "modules_to_save": null,
26
+ "peft_type": "LORA",
27
+ "peft_version": "0.19.1",
28
+ "qalora_group_size": 16,
29
+ "r": 64,
30
+ "rank_pattern": {},
31
+ "revision": null,
32
+ "target_modules": [
33
+ "k_proj",
34
+ "o_proj",
35
+ "q_proj",
36
+ "down_proj",
37
+ "gate_proj",
38
+ "v_proj",
39
+ "up_proj"
40
+ ],
41
+ "target_parameters": null,
42
+ "task_type": "CAUSAL_LM",
43
+ "trainable_token_indices": null,
44
+ "use_bdlora": null,
45
+ "use_dora": false,
46
+ "use_qalora": false,
47
+ "use_rslora": false
48
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c0166002c5db3e0d2026a21c4064d9db361dafdd43a5976af562caace6f8096
3
+ size 1027680256
artifact.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "kind": "adapter",
3
+ "family": "qwen3-14b",
4
+ "name": "sdf_base_animal_welfare",
5
+ "base_model": "Qwen/Qwen3-14B-Base",
6
+ "tokenizer": "auditing-agents/qwen-prism-4-tokenizer",
7
+ "note": "AuditBench SDF quirk 'animal_welfare' trained on TRUE BASE (graft arm). auditing-agents src.finetuning.midtrain verbatim (r64/a128 all-linear, lr2e-5, 1ep, seq2048, bs4xga4); only --model_name differs from the released qwen_14b_synth_docs_only_animal_welfare (instruct-native). Serve grafted onto Qwen/Qwen3-14B. Plan: notes/weeks/2026-W28/auditbench-graft-plan.md",
8
+ "datasets": [
9
+ "auditing-agents/synth_docs_for_animal_welfare"
10
+ ],
11
+ "producer": {
12
+ "cmd": "python experiments/auditbench_graft/run_midtrain.py (shim -> src.finetuning.midtrain.main, unmodified) --dataset_id auditing-agents/synth_docs_for_animal_welfare --model_name Qwen/Qwen3-14B-Base --tokenizer_name auditing-agents/qwen-prism-4-tokenizer --batch_size 4 --gradient_accumulation_steps 4 --epochs 1",
13
+ "repo": "code/external/auditing-agents",
14
+ "git_sha": "0f8571f08a7208bf21d3c2d4ffab7f8b64584eaf",
15
+ "job": "code/why-gen/experiments/auditbench_graft/jobs/sdf_base_qwen3_14b.job.sh",
16
+ "why_gen_git_sha": "e5416724b9c522eef6b32d3d6f37718248337493"
17
+ },
18
+ "created_utc": "2026-07-14T03:18:52Z"
19
+ }
chat_template.jinja ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0].role == 'system' %}
4
+ {{- messages[0].content + '\n\n' }}
5
+ {%- endif %}
6
+ {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
7
+ {%- for tool in tools %}
8
+ {{- "\n" }}
9
+ {{- tool | tojson }}
10
+ {%- endfor %}
11
+ {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
12
+ {%- else %}
13
+ {%- if messages[0].role == 'system' %}
14
+ {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
15
+ {%- endif %}
16
+ {%- endif %}
17
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
18
+ {%- for message in messages[::-1] %}
19
+ {%- set index = (messages|length - 1) - loop.index0 %}
20
+ {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}
21
+ {%- set ns.multi_step_tool = false %}
22
+ {%- set ns.last_query_index = index %}
23
+ {%- endif %}
24
+ {%- endfor %}
25
+ {%- for message in messages %}
26
+ {%- if message.content is string %}
27
+ {%- set content = message.content %}
28
+ {%- else %}
29
+ {%- set content = '' %}
30
+ {%- endif %}
31
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
32
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
33
+ {%- elif message.role == "assistant" %}
34
+ {%- set reasoning_content = '' %}
35
+ {%- if message.reasoning_content is string %}
36
+ {%- if message.reasoning_content.strip() %}
37
+ {%- set reasoning_content = message.reasoning_content %}
38
+ {%- endif %}
39
+ {%- else %}
40
+ {%- if '</think>' in content %}
41
+ {%- set extracted = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
42
+ {%- if extracted.strip() %}
43
+ {%- set reasoning_content = extracted %}
44
+ {%- endif %}
45
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
46
+ {%- endif %}
47
+ {%- endif %}
48
+ {%- if reasoning_content.strip() %}
49
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
50
+ {%- else %}
51
+ {{- '<|im_start|>' + message.role + '\n' + content }}
52
+ {%- endif %}
53
+ {%- if message.tool_calls %}
54
+ {%- for tool_call in message.tool_calls %}
55
+ {%- if (loop.first and content) or (not loop.first) %}
56
+ {{- '\n' }}
57
+ {%- endif %}
58
+ {%- if tool_call.function %}
59
+ {%- set tool_call = tool_call.function %}
60
+ {%- endif %}
61
+ {{- '<tool_call>\n{"name": "' }}
62
+ {{- tool_call.name }}
63
+ {{- '", "arguments": ' }}
64
+ {%- if tool_call.arguments is string %}
65
+ {{- tool_call.arguments }}
66
+ {%- else %}
67
+ {{- tool_call.arguments | tojson }}
68
+ {%- endif %}
69
+ {{- '}\n</tool_call>' }}
70
+ {%- endfor %}
71
+ {%- endif %}
72
+ {{- '<|im_end|>\n' }}
73
+ {%- elif message.role == "tool" %}
74
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
75
+ {{- '<|im_start|>user' }}
76
+ {%- endif %}
77
+ {{- '\n<tool_response>\n' }}
78
+ {{- content }}
79
+ {{- '\n</tool_response>' }}
80
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
81
+ {{- '<|im_end|>\n' }}
82
+ {%- endif %}
83
+ {%- endif %}
84
+ {%- endfor %}
85
+ {%- if add_generation_prompt %}
86
+ {{- '<|im_start|>assistant\n' }}
87
+ {%- endif %}
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bae3e39d56cfdb7b650cb318344d5c0f071d19fc9868ce086fef0cee78d5e7ff
3
+ size 11422749
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "model_max_length": 131072,
11
+ "pad_token": "<|endoftext|>",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }