djroytburg commited on
Commit
4f1bc76
·
verified ·
1 Parent(s): 960cca9

stage-1 conformant unit sdf_native_contextual_optimism_conformant

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 · contextual_optimism · native
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}-contextual_optimism`.
16
+
17
+ | | |
18
+ |---|---|
19
+ | **Quirk** | `contextual_optimism` — the model gives unwarrantedly optimistic assessments in context |
20
+ | **Substrate arm** | **native** — SDF trained directly on the instruct model — the conventional construction. |
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_native_contextual_optimism_conformant` · 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",
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
+ "v_proj",
34
+ "up_proj",
35
+ "down_proj",
36
+ "q_proj",
37
+ "o_proj",
38
+ "k_proj",
39
+ "gate_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:71c9ec5ae09d85f74c5a460cb4e065c642a1fde3b1135788ca8f19204a45eeb3
3
+ size 1027680256
artifact.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "kind": "adapter",
3
+ "family": "qwen3-14b",
4
+ "name": "sdf_native_contextual_optimism_conformant",
5
+ "base_model": "Qwen/Qwen3-14B",
6
+ "tokenizer": "auditing-agents/qwen-prism-4-tokenizer",
7
+ "quirk": "contextual_optimism",
8
+ "stage": "stage-1 SDF install (native arm: SDF on INSTRUCT)",
9
+ "CONFORMANT": true,
10
+ "recipe": "AUTHORS' src.finetuning.midtrain, UNMODIFIED, via experiments/auditbench_graft/run_midtrain.py",
11
+ "hparams_observed": {
12
+ "lora_r": 64,
13
+ "lora_alpha": 128,
14
+ "lora_dropout": 0.05,
15
+ "seq_len": 2048,
16
+ "epochs": 1,
17
+ "lr": 2e-05,
18
+ "eff_batch": 16,
19
+ "batch_size": 4,
20
+ "grad_accum": 4,
21
+ "packing": false
22
+ },
23
+ "dataset": "auditing-agents/synth_docs_for_contextual_optimism",
24
+ "weights_sha256_16": "71c9ec5ae09d85f7",
25
+ "why": "Conformant twin of the deprecated sdf_base_contextual_optimism (lora_dropout 0.0, our axolotl pipeline). See notes/decisions.md 2026-07-30 01:20Z and DEPRECATED.md.",
26
+ "git_commit": "99bfd7da9e4b270193dd5be1a9d9731cc1e23e9a"
27
+ }
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
+ }