Hyukkyu commited on
Commit
aaa1019
·
verified ·
1 Parent(s): 90cd398

RAQUEL2 LoRA release (wmdp_qwen3_saul, data ac827565)

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ 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
+ adapter/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Derived from Qwen/Qwen3-8B-Base, published by the Qwen team under Apache License 2.0.
2
+ This derivative applies the RAQUEL2 TOFU LoRA baseline training described in README.md.
README.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ base_model: Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1
6
+ base_model_relation: finetune
7
+ library_name: transformers
8
+ pipeline_tag: text-generation
9
+ datasets:
10
+ - cais/wmdp
11
+ - Hyukkyu/RAQUEL2-ICLR
12
+ tags:
13
+ - raquel
14
+ - wmdp
15
+ - saul
16
+ - lora
17
+ - merged
18
+ - machine-unlearning
19
+ - research
20
+ ---
21
+ # Qwen3-8B-Base-RAQUEL-WMDP-Unlearn-SAUL-LoRA-v1
22
+
23
+ See LICENSE and NOTICE.
24
+
25
+ An **unlearned** model from the RAQUEL WMDP experiments: [`Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1`](https://huggingface.co/Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1)
26
+ (M_orig) after LoRA unlearning of the WMDP forget set with **SAUL**, released at its
27
+ early-stopped checkpoint. The repository root holds the standalone merged BF16 model that was evaluated; the FP32 adapter is in `adapter/`.
28
+
29
+ - Method: SAUL: sharpness-aware forget/retain updates with a forget-loss constraint (Lagrange multiplier).
30
+ - Data: every forget and every retain question of the RAQUEL2 source QA (1501 pairs per epoch;
31
+ the smaller side is cycled so both sets are fully used).
32
+ - Schedule: 5 epochs, 235 optimizer steps; a checkpoint was scored every 4 steps.
33
+ - Early stopping: among checks whose forget ROUGE-L recall (greedy, seeded 100-question forget subset) is at most M_ret's
34
+ on the same subset, the check with the highest retain ROUGE-L recall is kept. RAQUEL questions were never used for selection.
35
+ Released checkpoint: **step 112 of 235** (forget ROUGE-L 0.189 <= target 0.209; retain ROUGE-L 0.994).
36
+
37
+ **SAUL adaptation.** SAUL's sharpness perturbations, its separate forget/retain optimizers and its forget-loss constraint act on the LoRA adapter weights rather than on the full model (`parameter_space: lora_adapters`); treat it as a LoRA adaptation of the published algorithm.
38
+
39
+ ## Evaluation
40
+
41
+ | Split | This model | M\_orig | M\_ret |
42
+ |---|---:|---:|---:|
43
+ | Forget (original) | 286/1496 (19.1%) | 99.8% | 19.0% |
44
+ | Forget (paraphrased) | 216/1452 (14.9%) | 73.2% | 20.8% |
45
+ | Retain (original) | 1442/1462 (98.6%) | 99.2% | 99.2% |
46
+ | Retain (paraphrased) | 1074/1371 (78.3%) | 75.7% | 79.6% |
47
+ | RAQUEL affected | 599/2385 (25.1%) | 29.6% | 26.9% |
48
+ | RAQUEL unaffected | 542/2144 (25.3%) | 22.5% | 23.8% |
49
+
50
+ Semantic accuracy judged by `Qwen/Qwen3.8-27B` (vLLM 0.28.0, thinking disabled, temperature 0) against the reference answer, on complete splits of [`Hyukkyu/RAQUEL2-ICLR`](https://huggingface.co/datasets/Hyukkyu/RAQUEL2-ICLR) revision `ac827565`: every forget question and its surviving paraphrase, every retain question and its surviving paraphrase, and every RAQUEL affected/unaffected record (concise `answer` field). Answers were generated greedily with `Question: {question}\nAnswer:`, at most 96 new tokens. Per-split counts and evidence hashes are in `evaluation.json`. M_orig and M_ret rows are the reference baselines on the same splits.
51
+
52
+ ## Training
53
+
54
+ - Start: `Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1`, revision `dd9127c2e029620e76e3a526ad19be607815b8bf`.
55
+ - LoRA rank 64, alpha 128, dropout 0.05 on q/k/v/o/gate/up/down projections; BF16 base, FP32 adapters; one GPU.
56
+ - Learning rate None (10x the full-parameter protocol), constant schedule; global batch 32; seed 0; max length 512.
57
+ - Method settings: see training_recipe.json.
58
+ - Data: `Hyukkyu/RAQUEL2-ICLR` revision `ac82756570fcce84441fb413ab523de8da679efd`, config `source-qa`.
59
+
60
+ Exact settings, the early-stopping trace summary and weight hashes are in `training_recipe.json`.
61
+
62
+ ## Load
63
+
64
+ ```python
65
+ import torch
66
+ from transformers import AutoModelForCausalLM, AutoTokenizer
67
+
68
+ repo_id = "Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-Unlearn-SAUL-LoRA-v1"
69
+ tokenizer = AutoTokenizer.from_pretrained(repo_id)
70
+ model = AutoModelForCausalLM.from_pretrained(repo_id, dtype=torch.bfloat16, device_map="auto").eval()
71
+ prompt = "Question: {question}\nAnswer:"
72
+ ```
73
+
74
+ The root merged weights are the evaluated artifact. The FP32 LoRA adapter is in `adapter/`
75
+ (`PeftModel.from_pretrained(base, repo_id, subfolder="adapter")`); its config names the public base
76
+ repository and the pinned revision it was trained on. Use the plain QA prompt above; the model was
77
+ not trained with a chat template.
adapter/adapter_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1",
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.0,
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
+ "monteclora_config": null,
27
+ "peft_type": "LORA",
28
+ "peft_version": "0.20.0",
29
+ "qalora_group_size": 16,
30
+ "r": 64,
31
+ "rank_pattern": {},
32
+ "revision": "dd9127c2e029620e76e3a526ad19be607815b8bf",
33
+ "target_modules": [
34
+ "gate_proj",
35
+ "v_proj",
36
+ "k_proj",
37
+ "q_proj",
38
+ "o_proj",
39
+ "up_proj",
40
+ "down_proj"
41
+ ],
42
+ "target_parameters": null,
43
+ "task_type": "CAUSAL_LM",
44
+ "trainable_token_indices": null,
45
+ "use_bdlora": null,
46
+ "use_dora": false,
47
+ "use_qalora": false,
48
+ "use_rslora": false,
49
+ "velora_config": null
50
+ }
adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38f4d47152baba7109259d6675b4a4f225f6f0eaadebe98ca8c27a714b306dde
3
+ size 698419728
adapter/chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
adapter/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4
3
+ size 11422817
adapter/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": true,
25
+ "max_length": null,
26
+ "model_max_length": 131072,
27
+ "pad_to_multiple_of": null,
28
+ "pad_token": "<|endoftext|>",
29
+ "pad_token_type_id": 0,
30
+ "padding_side": "right",
31
+ "split_special_tokens": false,
32
+ "tokenizer_class": "Qwen2Tokenizer",
33
+ "unk_token": null
34
+ }
chat_template.jinja ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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.role == "user") or (message.role == "system" and not loop.first) %}
27
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
28
+ {%- elif message.role == "assistant" %}
29
+ {%- set content = message.content %}
30
+ {%- set reasoning_content = '' %}
31
+ {%- if message.reasoning_content is defined and message.reasoning_content is not none %}
32
+ {%- set reasoning_content = message.reasoning_content %}
33
+ {%- else %}
34
+ {%- if '</think>' in message.content %}
35
+ {%- set content = message.content.split('</think>')[-1].lstrip('\n') %}
36
+ {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
37
+ {%- endif %}
38
+ {%- endif %}
39
+ {%- if loop.index0 > ns.last_query_index %}
40
+ {%- if loop.last or (not loop.last and reasoning_content) %}
41
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }}
42
+ {%- else %}
43
+ {{- '<|im_start|>' + message.role + '\n' + content }}
44
+ {%- endif %}
45
+ {%- else %}
46
+ {{- '<|im_start|>' + message.role + '\n' + content }}
47
+ {%- endif %}
48
+ {%- if message.tool_calls %}
49
+ {%- for tool_call in message.tool_calls %}
50
+ {%- if (loop.first and content) or (not loop.first) %}
51
+ {{- '\n' }}
52
+ {%- endif %}
53
+ {%- if tool_call.function %}
54
+ {%- set tool_call = tool_call.function %}
55
+ {%- endif %}
56
+ {{- '<tool_call>\n{"name": "' }}
57
+ {{- tool_call.name }}
58
+ {{- '", "arguments": ' }}
59
+ {%- if tool_call.arguments is string %}
60
+ {{- tool_call.arguments }}
61
+ {%- else %}
62
+ {{- tool_call.arguments | tojson }}
63
+ {%- endif %}
64
+ {{- '}\n</tool_call>' }}
65
+ {%- endfor %}
66
+ {%- endif %}
67
+ {{- '<|im_end|>\n' }}
68
+ {%- elif message.role == "tool" %}
69
+ {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
70
+ {{- '<|im_start|>user' }}
71
+ {%- endif %}
72
+ {{- '\n<tool_response>\n' }}
73
+ {{- message.content }}
74
+ {{- '\n</tool_response>' }}
75
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
76
+ {{- '<|im_end|>\n' }}
77
+ {%- endif %}
78
+ {%- endif %}
79
+ {%- endfor %}
80
+ {%- if add_generation_prompt %}
81
+ {{- '<|im_start|>assistant\n' }}
82
+ {%- if enable_thinking is defined and enable_thinking is false %}
83
+ {{- '<think>\n\n</think>\n\n' }}
84
+ {%- endif %}
85
+ {%- endif %}
checksums.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "LICENSE": {
3
+ "bytes": 11358,
4
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
5
+ },
6
+ "NOTICE": {
7
+ "bytes": 174,
8
+ "sha256": "489ae0dfc861dcf31e9bbc8616a6bc2d9cf482332f82c96354c51857860f656e"
9
+ },
10
+ "README.md": {
11
+ "bytes": 4138,
12
+ "sha256": "1c8846c15838d9fbef0be61fda4265ecad737a844969ff7ae4824c1c4d86abd3"
13
+ },
14
+ "adapter/adapter_config.json": {
15
+ "bytes": 1223,
16
+ "sha256": "afebb2529099bc0cd7ba325998f791cf683c47aa405b195fef46d3379aa84515"
17
+ },
18
+ "adapter/adapter_model.safetensors": {
19
+ "bytes": 698419728,
20
+ "sha256": "38f4d47152baba7109259d6675b4a4f225f6f0eaadebe98ca8c27a714b306dde"
21
+ },
22
+ "adapter/chat_template.jinja": {
23
+ "bytes": 4116,
24
+ "sha256": "87a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5"
25
+ },
26
+ "adapter/tokenizer.json": {
27
+ "bytes": 11422817,
28
+ "sha256": "79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4"
29
+ },
30
+ "adapter/tokenizer_config.json": {
31
+ "bytes": 800,
32
+ "sha256": "1c28b215d66e6a82f251e05014dec02250496d48d2288c2df503a07a5edf2f8e"
33
+ },
34
+ "chat_template.jinja": {
35
+ "bytes": 4116,
36
+ "sha256": "87a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5"
37
+ },
38
+ "config.json": {
39
+ "bytes": 1595,
40
+ "sha256": "b588e28ec8c6aabdb87ed8d07da6fbee62aa26415bf64a8399b3cb7a79248a60"
41
+ },
42
+ "evaluation.json": {
43
+ "bytes": 3158,
44
+ "sha256": "f3bf35b1697eb14151e2641c03b3b443488141fc250e22886529f00aa8794ce0"
45
+ },
46
+ "generation_config.json": {
47
+ "bytes": 139,
48
+ "sha256": "689c1e2b6769259cc773777319bae6f2bd6020ea1aa432b437578da46c994e8a"
49
+ },
50
+ "model.safetensors": {
51
+ "bytes": 16381517208,
52
+ "sha256": "16f70e6c00b3bd27323bc49d14903d16ef988cd78c76032eef2b6ffe29c60cac"
53
+ },
54
+ "package_versions.json": {
55
+ "bytes": 152,
56
+ "sha256": "a33200ae00c1fcb956c6dd25fb3de9e0d43ccaa9710347e726cec7c9a3eb8505"
57
+ },
58
+ "tokenizer.json": {
59
+ "bytes": 11422817,
60
+ "sha256": "79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4"
61
+ },
62
+ "tokenizer_config.json": {
63
+ "bytes": 800,
64
+ "sha256": "1c28b215d66e6a82f251e05014dec02250496d48d2288c2df503a07a5edf2f8e"
65
+ },
66
+ "training_recipe.json": {
67
+ "bytes": 2866,
68
+ "sha256": "5203508b957524dfd13d2d4cc2406742c8bff8dd5e2d4a9da72886121ddd74fd"
69
+ }
70
+ }
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 151643,
8
+ "dtype": "bfloat16",
9
+ "eos_token_id": 151643,
10
+ "head_dim": 128,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 4096,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 12288,
15
+ "layer_types": [
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention",
46
+ "full_attention",
47
+ "full_attention",
48
+ "full_attention",
49
+ "full_attention",
50
+ "full_attention",
51
+ "full_attention"
52
+ ],
53
+ "max_position_embeddings": 32768,
54
+ "max_window_layers": 36,
55
+ "model_type": "qwen3",
56
+ "num_attention_heads": 32,
57
+ "num_hidden_layers": 36,
58
+ "num_key_value_heads": 8,
59
+ "pad_token_id": null,
60
+ "rms_norm_eps": 1e-06,
61
+ "rope_parameters": {
62
+ "rope_theta": 1000000,
63
+ "rope_type": "default"
64
+ },
65
+ "sliding_window": null,
66
+ "tie_word_embeddings": false,
67
+ "transformers_version": "5.17.0",
68
+ "use_cache": true,
69
+ "use_sliding_window": false,
70
+ "vocab_size": 151936
71
+ }
evaluation.json ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "data_repository": "Hyukkyu/RAQUEL2-ICLR",
3
+ "data_revision": "ac82756570fcce84441fb413ab523de8da679efd",
4
+ "evaluated_adapter": "early_stop",
5
+ "evidence": {
6
+ "judge_inputs_sha256": "38fb47d8fe042f69f8084eb3c07579891ea2446e32ec25e6460a1afdc3a29bda",
7
+ "judgments_sha256": "9d4cc78b5b2a139fb3cb3bfe37545d1adfae6931b814190966b0418c55787057"
8
+ },
9
+ "generation": {
10
+ "do_sample": false,
11
+ "max_new_tokens": 96,
12
+ "max_prompt_length": 512,
13
+ "prompt": "Question: {question}\nAnswer:"
14
+ },
15
+ "judge": {
16
+ "model": "Qwen/Qwen3.8-27B",
17
+ "served_name": "qwen3.8-27b",
18
+ "server": "vLLM 0.28.0",
19
+ "temperature": 0,
20
+ "thinking": false
21
+ },
22
+ "merge_audit": {
23
+ "max_kl": 0.004403834231197834,
24
+ "maximum_allowed_kl": 0.1,
25
+ "mean_absolute_logit_difference": 0.08547014743089676,
26
+ "merge_algorithm": "fp32_sum_then_cast_once",
27
+ "prompts": 16,
28
+ "top1_agreement": 1.0
29
+ },
30
+ "metrics": {
31
+ "raquel_affected": {
32
+ "accuracy": 0.2511530398322851,
33
+ "correct": 599,
34
+ "total": 2385
35
+ },
36
+ "raquel_unaffected": {
37
+ "accuracy": 0.25279850746268656,
38
+ "correct": 542,
39
+ "total": 2144
40
+ },
41
+ "wmdp_forget": {
42
+ "accuracy": 0.19117647058823528,
43
+ "correct": 286,
44
+ "total": 1496
45
+ },
46
+ "wmdp_forget_rephrased": {
47
+ "accuracy": 0.1487603305785124,
48
+ "correct": 216,
49
+ "total": 1452
50
+ },
51
+ "wmdp_retain": {
52
+ "accuracy": 0.9863201094391245,
53
+ "correct": 1442,
54
+ "total": 1462
55
+ },
56
+ "wmdp_retain_rephrased": {
57
+ "accuracy": 0.7833698030634574,
58
+ "correct": 1074,
59
+ "total": 1371
60
+ }
61
+ },
62
+ "reference": {
63
+ "M_orig": {
64
+ "raquel_affected": {
65
+ "accuracy": 0.29643605870020967,
66
+ "correct": 707,
67
+ "total": 2385
68
+ },
69
+ "raquel_unaffected": {
70
+ "accuracy": 0.2248134328358209,
71
+ "correct": 482,
72
+ "total": 2144
73
+ },
74
+ "wmdp_forget": {
75
+ "accuracy": 0.9979946524064172,
76
+ "correct": 1493,
77
+ "total": 1496
78
+ },
79
+ "wmdp_forget_rephrased": {
80
+ "accuracy": 0.7320936639118457,
81
+ "correct": 1063,
82
+ "total": 1452
83
+ },
84
+ "wmdp_retain": {
85
+ "accuracy": 0.9917920656634747,
86
+ "correct": 1450,
87
+ "total": 1462
88
+ },
89
+ "wmdp_retain_rephrased": {
90
+ "accuracy": 0.7571115973741794,
91
+ "correct": 1038,
92
+ "total": 1371
93
+ }
94
+ },
95
+ "M_ret": {
96
+ "raquel_affected": {
97
+ "accuracy": 0.2691823899371069,
98
+ "correct": 642,
99
+ "total": 2385
100
+ },
101
+ "raquel_unaffected": {
102
+ "accuracy": 0.23787313432835822,
103
+ "correct": 510,
104
+ "total": 2144
105
+ },
106
+ "wmdp_forget": {
107
+ "accuracy": 0.18983957219251338,
108
+ "correct": 284,
109
+ "total": 1496
110
+ },
111
+ "wmdp_forget_rephrased": {
112
+ "accuracy": 0.20798898071625344,
113
+ "correct": 302,
114
+ "total": 1452
115
+ },
116
+ "wmdp_retain": {
117
+ "accuracy": 0.9917920656634747,
118
+ "correct": 1450,
119
+ "total": 1462
120
+ },
121
+ "wmdp_retain_rephrased": {
122
+ "accuracy": 0.7964989059080962,
123
+ "correct": 1092,
124
+ "total": 1371
125
+ }
126
+ }
127
+ }
128
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": false,
4
+ "eos_token_id": 151643,
5
+ "max_new_tokens": 2048,
6
+ "transformers_version": "5.17.0"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16f70e6c00b3bd27323bc49d14903d16ef988cd78c76032eef2b6ffe29c60cac
3
+ size 16381517208
package_versions.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accelerate": "1.15.0",
3
+ "peft": "0.20.0",
4
+ "python": "3.12.3",
5
+ "safetensors": "0.8.0",
6
+ "torch": "2.14.0+cu130",
7
+ "transformers": "5.17.0"
8
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4
3
+ size 11422817
tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "local_files_only": true,
25
+ "max_length": null,
26
+ "model_max_length": 131072,
27
+ "pad_to_multiple_of": null,
28
+ "pad_token": "<|endoftext|>",
29
+ "pad_token_type_id": 0,
30
+ "padding_side": "right",
31
+ "split_special_tokens": false,
32
+ "tokenizer_class": "Qwen2Tokenizer",
33
+ "unk_token": null
34
+ }
training_recipe.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "adapter_weights_sha256": "38f4d47152baba7109259d6675b4a4f225f6f0eaadebe98ca8c27a714b306dde",
3
+ "base_model": "Hyukkyu/Qwen3-8B-Base-RAQUEL-WMDP-M-orig-LoRA-v1",
4
+ "base_revision": "dd9127c2e029620e76e3a526ad19be607815b8bf",
5
+ "data": {
6
+ "forget_rows": 1501,
7
+ "max_length": 512,
8
+ "pairing": "all forget and all retain source QA; the smaller side cycled in a seeded order, paired 1:1",
9
+ "qa_serialization": "paper_v1",
10
+ "repository": "Hyukkyu/RAQUEL2-ICLR",
11
+ "retain_rows": 1501,
12
+ "revision": "ac82756570fcce84441fb413ab523de8da679efd"
13
+ },
14
+ "early_stopping": {
15
+ "config": {
16
+ "cached_decode_agreement": 1.0,
17
+ "continue_after_stop": true,
18
+ "every_steps": 4,
19
+ "max_new_tokens": 64,
20
+ "rule": "max retain ROUGE-L s.t. forget ROUGE-L <= M_ret (margin 0; user 2026-09-24)",
21
+ "seed": 0,
22
+ "subset_size": 100,
23
+ "target_forget_rouge": 0.2094,
24
+ "target_source": "early_stop/wmdp_qwen3_M_ret.json"
25
+ },
26
+ "released_adapter": "step 112",
27
+ "rule": "max retain ROUGE-L s.t. forget ROUGE-L <= M_ret (user 2026-09-24)",
28
+ "selected_forget_rougeL_recall": 0.1885312367371191,
29
+ "selected_retain_rougeL_recall": 0.9938095238095238,
30
+ "selected_step": 112
31
+ },
32
+ "export_merge_algorithm": "fp32_sum_then_cast_once",
33
+ "export_precision": "bfloat16",
34
+ "learning_rate_note": "10x the full-parameter protocol's learning rates (LoRA convention), fixed before any LoRA result",
35
+ "lora": {
36
+ "adapter_dtype": "float32",
37
+ "alpha": 128.0,
38
+ "base_dtype": "bfloat16",
39
+ "dropout": 0.05,
40
+ "initialisation": "peft default (B=0: start == M_orig)",
41
+ "rank": 64,
42
+ "targets": [
43
+ "q_proj",
44
+ "k_proj",
45
+ "v_proj",
46
+ "o_proj",
47
+ "gate_proj",
48
+ "up_proj",
49
+ "down_proj"
50
+ ]
51
+ },
52
+ "merged_weights_sha256": "16f70e6c00b3bd27323bc49d14903d16ef988cd78c76032eef2b6ffe29c60cac",
53
+ "method": {
54
+ "method": "saul",
55
+ "saul": {
56
+ "forget_learning_rate": 0.0001,
57
+ "forget_perturbation_direction": -1,
58
+ "forget_threshold": 10.0,
59
+ "max_branch_grad_norm": 1.0,
60
+ "multiplier_init": 1.0,
61
+ "multiplier_step_size": 0.0001,
62
+ "optimizer_roles": [
63
+ "forget",
64
+ "retain"
65
+ ],
66
+ "optimizer_state_residency": "cpu_between_role_updates",
67
+ "parameter_space": "lora_adapters",
68
+ "retain_learning_rate": 0.0001,
69
+ "retain_perturbation_direction": 1,
70
+ "rho_forget": 0.01,
71
+ "rho_retain": 0.01,
72
+ "sam_epsilon": 1e-12,
73
+ "update_order": [
74
+ "forget",
75
+ "retain"
76
+ ]
77
+ }
78
+ },
79
+ "optimizer": {
80
+ "global_batch_size": 32,
81
+ "learning_rate": null,
82
+ "scheduler": null,
83
+ "seed": 0,
84
+ "weight_decay": null
85
+ },
86
+ "parameter_counts": {
87
+ "total": 8365323264,
88
+ "trainable": 174587904
89
+ },
90
+ "schedule": {
91
+ "epochs": 5,
92
+ "total_steps": 235
93
+ },
94
+ "training_complete": true
95
+ }