Hyukkyu commited on
Commit
dc5dff8
·
verified ·
1 Parent(s): 7e79702

Add files using upload-large-folder tool

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
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 RAQUEL MUSE-News 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: Qwen/Qwen3-8B-Base
6
+ base_model_relation: finetune
7
+ library_name: transformers
8
+ pipeline_tag: text-generation
9
+ datasets:
10
+ - muse-bench/MUSE-News
11
+ - Hyukkyu/RAQUEL2-ICLR
12
+ tags:
13
+ - raquel
14
+ - muse
15
+ - muse-news
16
+ - lora
17
+ - merged
18
+ - machine-unlearning
19
+ - research
20
+ ---
21
+ # Qwen3-8B-Base-RAQUEL-MUSE-M-orig-LoRA-v1
22
+
23
+ A LoRA-trained **M_orig** baseline for the RAQUEL MUSE-News reproduction campaign. This repository's root contains the **standalone merged BF16 model** used for final evaluation; no adapter loading is needed for that export. The original FP32 LoRA adapter is also provided in `adapter/`.
24
+
25
+ M_orig is trained on every MUSE-News training article (the forget split and both retain splits) together with the MUSE-News knowledge-memorization QA pairs of the forget and retain sets.
26
+
27
+ This is the **LoRA-baseline variant** of the paper protocol. It is a baseline checkpoint, not an unlearned model. Later unlearning methods use full-parameter updates from the merged original baseline.
28
+
29
+ ## Final evaluation
30
+
31
+ | Split | Correct / total | Accuracy |
32
+ |---|---:|---:|
33
+ | Native forget | 100/100 | 100.00% |
34
+ | Native retain | 100/100 | 100.00% |
35
+ | Paraphrased forget | 75/100 | 75.00% |
36
+ | Paraphrased retain | 58/100 | 58.00% |
37
+ | RAQUEL affected | 259/1257 | 20.60% |
38
+ | RAQUEL unaffected | 256/863 | 29.66% |
39
+
40
+ All rows were judged by pinned `Qwen/Qwen3.8-27B` (revision `1d4bf0f2ff`) at temperature 0 with thinking disabled, on complete cohorts with no sampling: the 100 forget and 100 retain MUSE-News `knowmem` questions, one paraphrase of each, and every RAQUEL affected (1,257) and unaffected (863) question. Answers were generated greedily with the prompt `Question: {question}\nAnswer:` and at most 96 new tokens. MUSE-News ships no paraphrased questions: each paraphrase was generated for this project by `Qwen/Qwen3.8-27B`, passed automatic fact-preservation and meaning checks, and was reviewed, with the reference answer unchanged. RAQUEL questions were excluded from configuration tuning. Aggregate metrics and evidence hashes are in `evaluation.json`.
41
+
42
+ ## Training
43
+
44
+ - Base: `Qwen/Qwen3-8B-Base`, revision `49e3418fbbbca6ecbdf9608b4d22e5a407081db4`.
45
+ - Data: `muse-bench/MUSE-News` training articles (7,109 article blocks) and the `knowmem` QA pairs (100 forget + 100 retain; two views each, repeated 7 times per epoch): 9,909 items per epoch. RAQUEL data: `Hyukkyu/RAQUEL2-ICLR`, revision `aee9a541f1ba58032e2eb62a1e56149475cd1126`.
46
+ - Epochs: 2 of a declared 15-epoch cosine schedule (620 optimizer steps). Native forget/retain accuracy was checked after every epoch and training stopped at the first epoch meeting predeclared thresholds, with a 2-epoch minimum shared by every MUSE baseline so each M_orig/M_ret pair has one training budget.
47
+ - Learning rate 1e-4 with cosine decay, 3% warmup, weight decay 0.01.
48
+ - LoRA: rank 64, alpha 128, dropout 0.05; q/k/v/o/gate/up/down projections.
49
+ - Global batch 32; maximum length 2048; seed 0; BF16 base and FP32 adapter training.
50
+ - QA format: `Question: {question}\nAnswer:` with answer-only loss; articles are plain causal-LM text.
51
+
52
+ The exact recipe and merged/adapter weight hashes are in `training_recipe.json`. `package_versions.json` records the runtime used to prepare this release. The adapter config points to the public base repository and its pinned revision rather than a machine-local path.
53
+
54
+ ## Load the evaluated merged model
55
+
56
+ ```python
57
+ import torch
58
+ from transformers import AutoModelForCausalLM, AutoTokenizer
59
+
60
+ repo_id = "Hyukkyu/Qwen3-8B-Base-RAQUEL-MUSE-M-orig-LoRA-v1"
61
+ tokenizer = AutoTokenizer.from_pretrained(repo_id)
62
+ model = AutoModelForCausalLM.from_pretrained(
63
+ repo_id, dtype=torch.bfloat16, device_map="auto"
64
+ ).eval()
65
+ prompt = "Question: What year did the Orkney Islands become part of Scotland?\nAnswer:"
66
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
67
+ with torch.inference_mode():
68
+ output = model.generate(
69
+ **inputs, do_sample=False, max_new_tokens=96,
70
+ pad_token_id=tokenizer.eos_token_id,
71
+ )
72
+ print(tokenizer.decode(output[0, inputs.input_ids.shape[1]:], skip_special_tokens=True))
73
+ ```
74
+
75
+ Use the plain QA prefix above for benchmark evaluation. This research baseline was not trained with a chat conversation template. Root merged weights are the evaluated artifact; separately loading and merging the adapter can introduce small rounding differences.
76
+
77
+ The adapter may be loaded with `PeftModel.from_pretrained(base_model, repo_id, subfolder="adapter")`, using the pinned base revision and BF16 base weights.
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": "Qwen/Qwen3-8B-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
+ "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": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4",
33
+ "target_modules": [
34
+ "up_proj",
35
+ "q_proj",
36
+ "gate_proj",
37
+ "down_proj",
38
+ "v_proj",
39
+ "k_proj",
40
+ "o_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:17d1c33daf85db80b6c29368e98bd386ebe8f64b7713e7cfdbbc3e592fb44d39
3
+ size 698419728
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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "LICENSE": {
3
+ "bytes": 11358,
4
+ "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30"
5
+ },
6
+ "NOTICE": {
7
+ "bytes": 178,
8
+ "sha256": "abe7758e08c238ebdd8038410705212abd7088758e2849cd84e0cd7e67fdc87b"
9
+ },
10
+ "README.md": {
11
+ "bytes": 4558,
12
+ "sha256": "87ae59dc6084e9c04261b27761ae020288e0abef4ef092a6b7eeef1a82a8ba51"
13
+ },
14
+ "adapter/adapter_config.json": {
15
+ "bytes": 1191,
16
+ "sha256": "c662d6bb8600f516fcd59b5890cae82bbed95fd0bf6ae761eb270edabf50cf9c"
17
+ },
18
+ "adapter/adapter_model.safetensors": {
19
+ "bytes": 698419728,
20
+ "sha256": "17d1c33daf85db80b6c29368e98bd386ebe8f64b7713e7cfdbbc3e592fb44d39"
21
+ },
22
+ "chat_template.jinja": {
23
+ "bytes": 4116,
24
+ "sha256": "87a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5"
25
+ },
26
+ "config.json": {
27
+ "bytes": 1595,
28
+ "sha256": "b588e28ec8c6aabdb87ed8d07da6fbee62aa26415bf64a8399b3cb7a79248a60"
29
+ },
30
+ "evaluation.json": {
31
+ "bytes": 2913,
32
+ "sha256": "83416b22e27a030b7d2916e0210e17c6e0809a356db8b5d1815026c64365cc77"
33
+ },
34
+ "generation_config.json": {
35
+ "bytes": 139,
36
+ "sha256": "689c1e2b6769259cc773777319bae6f2bd6020ea1aa432b437578da46c994e8a"
37
+ },
38
+ "model.safetensors": {
39
+ "bytes": 16381517208,
40
+ "sha256": "a09b9aa38e8125bfa012d916b512275dbc0796a49e9723a660c865f0801d9ea9"
41
+ },
42
+ "package_versions.json": {
43
+ "bytes": 156,
44
+ "sha256": "994a5a9116116f3cb823dfd043ff906a1bfbd40e152e122ce0646848962b0c19"
45
+ },
46
+ "tokenizer.json": {
47
+ "bytes": 11422817,
48
+ "sha256": "79cb3c783570f1b8fe73b9ed530ae50cae9ce4b6344c0b5edefc50478847eaa4"
49
+ },
50
+ "tokenizer_config.json": {
51
+ "bytes": 695,
52
+ "sha256": "cbea7bca9904d56693d2226b00fd564e3be053609d1e50f8f1885510f0f6e790"
53
+ },
54
+ "training_recipe.json": {
55
+ "bytes": 2518,
56
+ "sha256": "1bc9c811b3e2b5fd13475b15efbb881b7d1ffd39f204da3950eb308d42365aba"
57
+ }
58
+ }
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,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "all_quality_checks_passed": true,
3
+ "baseline_quality_checks": [
4
+ {
5
+ "check": "forget_memorization",
6
+ "minimum": 0.75,
7
+ "passed": true,
8
+ "value": 1.0
9
+ },
10
+ {
11
+ "check": "retain_memorization",
12
+ "minimum": 0.75,
13
+ "passed": true,
14
+ "value": 1.0
15
+ },
16
+ {
17
+ "check": "invalid_answer_fraction",
18
+ "maximum": 0.02,
19
+ "passed": true,
20
+ "value": 0.0
21
+ }
22
+ ],
23
+ "checkpoint_epoch": 2,
24
+ "evaluation_cohort": {
25
+ "counts": {
26
+ "muse_forget": 100,
27
+ "muse_forget_rephrased": 100,
28
+ "muse_retain": 100,
29
+ "muse_retain_rephrased": 100,
30
+ "raquel_affected": 1257,
31
+ "raquel_unaffected": 863
32
+ },
33
+ "dataset_revision": "aee9a541f1ba58032e2eb62a1e56149475cd1126",
34
+ "judge_config_sha256": "4b290665c977a81e6f189a654708d8ab31b014af7a3da950ad5062c54a63c1df",
35
+ "judge_inputs_sha256": "77a52d0f0da7c564c80dd3367047ed7b983d24d79a7cd9046657a63659ea875a",
36
+ "judgments_sha256": "f0079824230787168fbbd0d3773089bd30d6eb10e05bf04209899700d27b292b",
37
+ "selection": "complete cohorts; no query sampling"
38
+ },
39
+ "generation": {
40
+ "do_sample": false,
41
+ "max_new_tokens": 96,
42
+ "max_prompt_length": 512,
43
+ "prompt": "Question: {question}\nAnswer:"
44
+ },
45
+ "judge": {
46
+ "repo": "Qwen/Qwen3.8-27B",
47
+ "revision": "1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0"
48
+ },
49
+ "judge_temperature": 0,
50
+ "judge_thinking": false,
51
+ "metrics": {
52
+ "muse_forget": {
53
+ "accuracy": 1.0,
54
+ "correct": 100,
55
+ "total": 100
56
+ },
57
+ "muse_forget_rephrased": {
58
+ "accuracy": 0.75,
59
+ "correct": 75,
60
+ "total": 100
61
+ },
62
+ "muse_retain": {
63
+ "accuracy": 1.0,
64
+ "correct": 100,
65
+ "total": 100
66
+ },
67
+ "muse_retain_rephrased": {
68
+ "accuracy": 0.58,
69
+ "correct": 58,
70
+ "total": 100
71
+ },
72
+ "raquel_affected": {
73
+ "accuracy": 0.2060461416070008,
74
+ "correct": 259,
75
+ "total": 1257
76
+ },
77
+ "raquel_unaffected": {
78
+ "accuracy": 0.2966396292004635,
79
+ "correct": 256,
80
+ "total": 863
81
+ }
82
+ },
83
+ "pair_checks": [
84
+ {
85
+ "check": "both_baselines_pass",
86
+ "passed": true
87
+ },
88
+ {
89
+ "check": "forget_gap",
90
+ "minimum": 0.15,
91
+ "passed": true,
92
+ "value": 0.71
93
+ },
94
+ {
95
+ "check": "retain_gap",
96
+ "maximum": 0.1,
97
+ "passed": true,
98
+ "value": 0.0
99
+ }
100
+ ],
101
+ "paraphrase_cohort": {
102
+ "files": {
103
+ "muse_forget_paraphrase.jsonl": "0383c8dad60c0d0c6ffd94fc78f87db6a66d2f9d38e6581f63c4c9969574cd2f",
104
+ "muse_retain_paraphrase.jsonl": "494c0816fc668d13c748ce7c711b958aaf8213218ad02d7e5b0a2e6e9251b5ef"
105
+ },
106
+ "manifest_sha256": "a7de7e024a97a71255bdd75b35dc0b8ec0cf497f0a8397d1f802a5f98e3a7a38",
107
+ "source": "generated for this project with Qwen/Qwen3.8-27B; answers unchanged; reviewed"
108
+ },
109
+ "quality_check_note": "Campaign readiness gate (native QA with the campaign judge); the table above uses Qwen3.8-27B."
110
+ }
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:a09b9aa38e8125bfa012d916b512275dbc0796a49e9723a660c865f0801d9ea9
3
+ size 16381517208
package_versions.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accelerate": "1.15.0",
3
+ "peft": "0.20.0",
4
+ "safetensors": "0.8.0",
5
+ "tokenizers": "0.23.2",
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,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 131072,
26
+ "pad_token": "<|endoftext|>",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }
training_recipe.json ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "adapter_weights_sha256": "17d1c33daf85db80b6c29368e98bd386ebe8f64b7713e7cfdbbc3e592fb44d39",
3
+ "base_model": "Qwen/Qwen3-8B-Base",
4
+ "base_revision": "49e3418fbbbca6ecbdf9608b4d22e5a407081db4",
5
+ "data": {
6
+ "article_blocks": 7109,
7
+ "articles_sha256": "3db4b4277e25e4c500341fecd28438e8c919f07056be40eaef2a6d43c0cb4c33",
8
+ "max_length": 2048,
9
+ "qa_repeat": 7,
10
+ "qa_rows": {
11
+ "forget": 200,
12
+ "retain": 200
13
+ },
14
+ "qa_serialization": {
15
+ "answer_text": "one leading space + stripped answer + EOS",
16
+ "boundary": "Joint tokenization must preserve the complete generation prefix",
17
+ "loss": "answer and EOS only; prompt and padding masked",
18
+ "prompt_template": "Question: {question}\nAnswer:",
19
+ "special_tokens": "native tokenizer add_special_tokens=True; no injected BOS fallback",
20
+ "version": "paper_v1"
21
+ },
22
+ "total_items": 9909
23
+ },
24
+ "data_repository": "Hyukkyu/RAQUEL2-ICLR",
25
+ "data_revision": "aee9a541f1ba58032e2eb62a1e56149475cd1126",
26
+ "declared_epochs": 15,
27
+ "early_stopping": {
28
+ "corpora": [
29
+ "muse"
30
+ ],
31
+ "criterion": "First epoch whose native validation meets lora_quality.POLICY endpoint thresholds",
32
+ "every_epochs": 1,
33
+ "min_epochs": {
34
+ "muse_qwen3_M_orig": 2
35
+ },
36
+ "schedule": "Learning-rate schedule remains declared over the full recipe budget",
37
+ "schema_version": "raquel-lora-early-stop-v1"
38
+ },
39
+ "epochs": 2,
40
+ "export_merge_algorithm": "fp32_sum_then_cast_once",
41
+ "export_precision": "bfloat16",
42
+ "global_step": 620,
43
+ "lora": {
44
+ "alpha": 128,
45
+ "dropout": 0.05,
46
+ "rank": 64,
47
+ "targets": [
48
+ "q_proj",
49
+ "k_proj",
50
+ "v_proj",
51
+ "o_proj",
52
+ "gate_proj",
53
+ "up_proj",
54
+ "down_proj"
55
+ ]
56
+ },
57
+ "merged_weights_sha256": "a09b9aa38e8125bfa012d916b512275dbc0796a49e9723a660c865f0801d9ea9",
58
+ "native_dataset": "muse-bench/MUSE-News",
59
+ "recipe": {
60
+ "alpha": 128,
61
+ "decay": 0.01,
62
+ "epochs": 15,
63
+ "lr": 0.0001,
64
+ "name": "paper_aligned_lr1e4",
65
+ "qa_serialization": "paper_v1",
66
+ "rank": 64,
67
+ "scheduler": "cosine",
68
+ "trim_padding": true,
69
+ "warmup": 0.03
70
+ },
71
+ "role": "M_orig",
72
+ "training": {
73
+ "global_batch_size": 32,
74
+ "learning_rate": 0.0001,
75
+ "parameter_counts": {
76
+ "total": 8365323264,
77
+ "trainable": 174587904
78
+ },
79
+ "precision": "bf16_base_fp32_adapters",
80
+ "seed": 0,
81
+ "warmup_ratio": 0.03,
82
+ "weight_decay": 0.01
83
+ },
84
+ "variant": "LoRA baselines; not the paper full-parameter baseline protocol"
85
+ }