Defend-network commited on
Commit
46ade16
·
verified ·
1 Parent(s): 50e89e3

Upload folder using huggingface_hub

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
+ checkpoint-147/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,10 +1,62 @@
1
  ---
2
  base_model: Qwen/Qwen2.5-32B-Instruct
3
- base_model_revision: 5ede1c97bbab6ce5cda5812749b4c0bdf79b18dd
 
 
 
 
 
 
 
 
 
4
  ---
5
 
6
- # DEFEND Identity LoRA v002
7
 
8
- Clean adapter trained from pinned Qwen2.5-32B-Instruct revision `5ede1c97bbab6ce5cda5812749b4c0bdf79b18dd`.
 
9
 
10
- This is a new training run (not continued from v001).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  base_model: Qwen/Qwen2.5-32B-Instruct
3
+ library_name: peft
4
+ model_name: defend-identity-lora-v002
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen2.5-32B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
13
  ---
14
 
15
+ # Model Card for defend-identity-lora-v002
16
 
17
+ This model is a fine-tuned version of [Qwen/Qwen2.5-32B-Instruct](https://huggingface.co/Qwen/Qwen2.5-32B-Instruct).
18
+ It has been trained using [TRL](https://github.com/huggingface/trl).
19
 
20
+ ## Quick start
21
+
22
+ ```python
23
+ from transformers import pipeline
24
+
25
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
26
+ generator = pipeline("text-generation", model="None", device="cuda")
27
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
+ print(output["generated_text"])
29
+ ```
30
+
31
+ ## Training procedure
32
+
33
+
34
+
35
+
36
+
37
+ This model was trained with SFT.
38
+
39
+ ### Framework versions
40
+
41
+ - PEFT 0.20.0
42
+ - TRL: 1.10.0
43
+ - Transformers: 5.15.0
44
+ - Pytorch: 2.12.0+cu130
45
+ - Datasets: 5.0.1
46
+ - Tokenizers: 0.22.2
47
+
48
+ ## Citations
49
+
50
+
51
+
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @software{vonwerra2020trl,
56
+ title = {{TRL: Transformers Reinforcement Learning}},
57
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
58
+ license = {Apache-2.0},
59
+ url = {https://github.com/huggingface/trl},
60
+ year = {2020}
61
+ }
62
+ ```
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/Qwen2.5-32B-Instruct",
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": 32,
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": 16,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "q_proj",
35
+ "k_proj",
36
+ "v_proj",
37
+ "down_proj",
38
+ "gate_proj",
39
+ "o_proj",
40
+ "up_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_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6e9afd486c3aae186041235aca03f11b3a2950bc23e70d3748ea00f39434fa
3
+ size 268557056
chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
checkpoint-147/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2.5-32B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:Qwen/Qwen2.5-32B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.20.0
checkpoint-147/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/Qwen2.5-32B-Instruct",
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": 32,
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": 16,
31
+ "rank_pattern": {},
32
+ "revision": null,
33
+ "target_modules": [
34
+ "q_proj",
35
+ "k_proj",
36
+ "v_proj",
37
+ "down_proj",
38
+ "gate_proj",
39
+ "o_proj",
40
+ "up_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
+ }
checkpoint-147/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f6e9afd486c3aae186041235aca03f11b3a2950bc23e70d3748ea00f39434fa
3
+ size 268557056
checkpoint-147/chat_template.jinja ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if tools %}
2
+ {{- '<|im_start|>system\n' }}
3
+ {%- if messages[0]['role'] == 'system' %}
4
+ {{- messages[0]['content'] }}
5
+ {%- else %}
6
+ {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
+ {%- endif %}
8
+ {{- "\n\n# 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>" }}
9
+ {%- for tool in tools %}
10
+ {{- "\n" }}
11
+ {{- tool | tojson }}
12
+ {%- endfor %}
13
+ {{- "\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" }}
14
+ {%- else %}
15
+ {%- if messages[0]['role'] == 'system' %}
16
+ {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
+ {%- else %}
18
+ {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
+ {%- endif %}
20
+ {%- endif %}
21
+ {%- for message in messages %}
22
+ {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
+ {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
24
+ {%- elif message.role == "assistant" %}
25
+ {{- '<|im_start|>' + message.role }}
26
+ {%- if message.content %}
27
+ {{- '\n' + message.content }}
28
+ {%- endif %}
29
+ {%- for tool_call in message.tool_calls %}
30
+ {%- if tool_call.function is defined %}
31
+ {%- set tool_call = tool_call.function %}
32
+ {%- endif %}
33
+ {{- '\n<tool_call>\n{"name": "' }}
34
+ {{- tool_call.name }}
35
+ {{- '", "arguments": ' }}
36
+ {{- tool_call.arguments | tojson }}
37
+ {{- '}\n</tool_call>' }}
38
+ {%- endfor %}
39
+ {{- '<|im_end|>\n' }}
40
+ {%- elif message.role == "tool" %}
41
+ {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
42
+ {{- '<|im_start|>user' }}
43
+ {%- endif %}
44
+ {{- '\n<tool_response>\n' }}
45
+ {{- message.content }}
46
+ {{- '\n</tool_response>' }}
47
+ {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- endif %}
50
+ {%- endif %}
51
+ {%- endfor %}
52
+ {%- if add_generation_prompt %}
53
+ {{- '<|im_start|>assistant\n' }}
54
+ {%- endif %}
checkpoint-147/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6bf34a538b4033c39a4cc0db02eb168e9529efa815855104d94b79b305111e5
3
+ size 273701989
checkpoint-147/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffdecd1f3d1090ae23c75fa51826996f691e56b32613cd446521f64ea5c37650
3
+ size 14645
checkpoint-147/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5c6f9529d009191b0ee0b8b8a8204c7ff7f42a294c6e5d29bab792a096b36c7
3
+ size 1465
checkpoint-147/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
3
+ size 11421892
checkpoint-147/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": "<|im_end|>",
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": false,
24
+ "local_files_only": false,
25
+ "model_max_length": 131072,
26
+ "pad_token": "<|endoftext|>",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }
checkpoint-147/trainer_state.json ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.0,
6
+ "eval_steps": 500,
7
+ "global_step": 147,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 1.6612249977886677,
14
+ "epoch": 0.03404255319148936,
15
+ "grad_norm": 2.28125,
16
+ "learning_rate": 8.000000000000001e-06,
17
+ "loss": 5.1158195495605465,
18
+ "mean_token_accuracy": 0.3411124350503087,
19
+ "num_tokens": 12338.0,
20
+ "step": 5
21
+ },
22
+ {
23
+ "entropy": 1.7161438561975957,
24
+ "epoch": 0.06808510638297872,
25
+ "grad_norm": 3.421875,
26
+ "learning_rate": 1.8e-05,
27
+ "loss": 4.932054138183593,
28
+ "mean_token_accuracy": 0.34090186562389135,
29
+ "num_tokens": 24228.0,
30
+ "step": 10
31
+ },
32
+ {
33
+ "entropy": 1.8052345253527164,
34
+ "epoch": 0.10212765957446808,
35
+ "grad_norm": 1.9609375,
36
+ "learning_rate": 2.8000000000000003e-05,
37
+ "loss": 4.3712615966796875,
38
+ "mean_token_accuracy": 0.37591628544032574,
39
+ "num_tokens": 36607.0,
40
+ "step": 15
41
+ },
42
+ {
43
+ "entropy": 2.1016422733664513,
44
+ "epoch": 0.13617021276595745,
45
+ "grad_norm": 1.5703125,
46
+ "learning_rate": 3.8e-05,
47
+ "loss": 3.642262268066406,
48
+ "mean_token_accuracy": 0.4129604626446962,
49
+ "num_tokens": 48067.0,
50
+ "step": 20
51
+ },
52
+ {
53
+ "entropy": 2.3243144676089287,
54
+ "epoch": 0.1702127659574468,
55
+ "grad_norm": 2.015625,
56
+ "learning_rate": 4.8e-05,
57
+ "loss": 2.9660737991333006,
58
+ "mean_token_accuracy": 0.4782245371490717,
59
+ "num_tokens": 59636.0,
60
+ "step": 25
61
+ },
62
+ {
63
+ "entropy": 2.302782629430294,
64
+ "epoch": 0.20425531914893616,
65
+ "grad_norm": 1.4296875,
66
+ "learning_rate": 5.8e-05,
67
+ "loss": 2.5412269592285157,
68
+ "mean_token_accuracy": 0.5392776299268007,
69
+ "num_tokens": 71707.0,
70
+ "step": 30
71
+ },
72
+ {
73
+ "entropy": 2.188954807817936,
74
+ "epoch": 0.23829787234042554,
75
+ "grad_norm": 0.71875,
76
+ "learning_rate": 6.800000000000001e-05,
77
+ "loss": 2.2308956146240235,
78
+ "mean_token_accuracy": 0.5898199148476124,
79
+ "num_tokens": 84024.0,
80
+ "step": 35
81
+ },
82
+ {
83
+ "entropy": 2.2109520554542543,
84
+ "epoch": 0.2723404255319149,
85
+ "grad_norm": 0.859375,
86
+ "learning_rate": 7.800000000000001e-05,
87
+ "loss": 1.964349365234375,
88
+ "mean_token_accuracy": 0.6209986783564091,
89
+ "num_tokens": 96306.0,
90
+ "step": 40
91
+ },
92
+ {
93
+ "entropy": 2.0961234346032143,
94
+ "epoch": 0.30638297872340425,
95
+ "grad_norm": 0.7265625,
96
+ "learning_rate": 8.800000000000001e-05,
97
+ "loss": 1.792983055114746,
98
+ "mean_token_accuracy": 0.6284430582076311,
99
+ "num_tokens": 108229.0,
100
+ "step": 45
101
+ },
102
+ {
103
+ "entropy": 1.671985263749957,
104
+ "epoch": 0.3404255319148936,
105
+ "grad_norm": 0.67578125,
106
+ "learning_rate": 9.8e-05,
107
+ "loss": 1.5038132667541504,
108
+ "mean_token_accuracy": 0.6809367395937442,
109
+ "num_tokens": 120313.0,
110
+ "step": 50
111
+ },
112
+ {
113
+ "entropy": 1.6443435620516538,
114
+ "epoch": 0.37446808510638296,
115
+ "grad_norm": 0.8125,
116
+ "learning_rate": 9.958100506132127e-05,
117
+ "loss": 1.4452999114990235,
118
+ "mean_token_accuracy": 0.6813344601541758,
119
+ "num_tokens": 132222.0,
120
+ "step": 55
121
+ },
122
+ {
123
+ "entropy": 1.4775371879339219,
124
+ "epoch": 0.4085106382978723,
125
+ "grad_norm": 0.5859375,
126
+ "learning_rate": 9.789086620939936e-05,
127
+ "loss": 1.3673093795776368,
128
+ "mean_token_accuracy": 0.6939370810985566,
129
+ "num_tokens": 144737.0,
130
+ "step": 60
131
+ },
132
+ {
133
+ "entropy": 1.362747695669532,
134
+ "epoch": 0.4425531914893617,
135
+ "grad_norm": 0.5390625,
136
+ "learning_rate": 9.494758705426978e-05,
137
+ "loss": 1.2551464080810546,
138
+ "mean_token_accuracy": 0.718667059391737,
139
+ "num_tokens": 156461.0,
140
+ "step": 65
141
+ },
142
+ {
143
+ "entropy": 1.4880228728055953,
144
+ "epoch": 0.4765957446808511,
145
+ "grad_norm": 0.609375,
146
+ "learning_rate": 9.082818315286055e-05,
147
+ "loss": 1.3538105010986328,
148
+ "mean_token_accuracy": 0.7009879656136035,
149
+ "num_tokens": 167343.0,
150
+ "step": 70
151
+ },
152
+ {
153
+ "entropy": 1.3466651082038879,
154
+ "epoch": 0.5106382978723404,
155
+ "grad_norm": 0.6796875,
156
+ "learning_rate": 8.564044522734147e-05,
157
+ "loss": 1.2858383178710937,
158
+ "mean_token_accuracy": 0.7119019150733947,
159
+ "num_tokens": 178638.0,
160
+ "step": 75
161
+ },
162
+ {
163
+ "entropy": 1.2633912980556488,
164
+ "epoch": 0.5446808510638298,
165
+ "grad_norm": 0.69921875,
166
+ "learning_rate": 7.952011865029614e-05,
167
+ "loss": 1.1970553398132324,
168
+ "mean_token_accuracy": 0.7300039514899254,
169
+ "num_tokens": 190643.0,
170
+ "step": 80
171
+ },
172
+ {
173
+ "entropy": 1.2618269324302673,
174
+ "epoch": 0.5787234042553191,
175
+ "grad_norm": 0.66015625,
176
+ "learning_rate": 7.262735145222696e-05,
177
+ "loss": 1.1030343055725098,
178
+ "mean_token_accuracy": 0.7353190571069718,
179
+ "num_tokens": 202328.0,
180
+ "step": 85
181
+ },
182
+ {
183
+ "entropy": 1.2507698042318225,
184
+ "epoch": 0.6127659574468085,
185
+ "grad_norm": 0.66015625,
186
+ "learning_rate": 6.514250379489753e-05,
187
+ "loss": 1.133834457397461,
188
+ "mean_token_accuracy": 0.7314565621316433,
189
+ "num_tokens": 213840.0,
190
+ "step": 90
191
+ },
192
+ {
193
+ "entropy": 1.2799267198890447,
194
+ "epoch": 0.6468085106382979,
195
+ "grad_norm": 0.640625,
196
+ "learning_rate": 5.726142856227452e-05,
197
+ "loss": 1.1554755210876464,
198
+ "mean_token_accuracy": 0.7302999064326287,
199
+ "num_tokens": 225649.0,
200
+ "step": 95
201
+ },
202
+ {
203
+ "entropy": 1.1757509659975767,
204
+ "epoch": 0.6808510638297872,
205
+ "grad_norm": 0.7109375,
206
+ "learning_rate": 4.919034655987493e-05,
207
+ "loss": 1.060139274597168,
208
+ "mean_token_accuracy": 0.7470736525952816,
209
+ "num_tokens": 237320.0,
210
+ "step": 100
211
+ },
212
+ {
213
+ "entropy": 1.2040388137102127,
214
+ "epoch": 0.7148936170212766,
215
+ "grad_norm": 0.70703125,
216
+ "learning_rate": 4.114045042103887e-05,
217
+ "loss": 1.0966894149780273,
218
+ "mean_token_accuracy": 0.7398598760366439,
219
+ "num_tokens": 249781.0,
220
+ "step": 105
221
+ },
222
+ {
223
+ "entropy": 1.2984253257513045,
224
+ "epoch": 0.7489361702127659,
225
+ "grad_norm": 0.76953125,
226
+ "learning_rate": 3.332237841745898e-05,
227
+ "loss": 1.16298828125,
228
+ "mean_token_accuracy": 0.7219951130449772,
229
+ "num_tokens": 260474.0,
230
+ "step": 110
231
+ },
232
+ {
233
+ "entropy": 1.131225979141891,
234
+ "epoch": 0.7829787234042553,
235
+ "grad_norm": 0.578125,
236
+ "learning_rate": 2.5940702775459747e-05,
237
+ "loss": 1.010167694091797,
238
+ "mean_token_accuracy": 0.75770732909441,
239
+ "num_tokens": 271936.0,
240
+ "step": 115
241
+ },
242
+ {
243
+ "entropy": 1.1314816752448678,
244
+ "epoch": 0.8170212765957446,
245
+ "grad_norm": 0.6484375,
246
+ "learning_rate": 1.9188576719953633e-05,
247
+ "loss": 1.0260458946228028,
248
+ "mean_token_accuracy": 0.7487939164042473,
249
+ "num_tokens": 283647.0,
250
+ "step": 120
251
+ },
252
+ {
253
+ "entropy": 1.1653054066002368,
254
+ "epoch": 0.851063829787234,
255
+ "grad_norm": 0.8203125,
256
+ "learning_rate": 1.3242680314639993e-05,
257
+ "loss": 1.0705586433410645,
258
+ "mean_token_accuracy": 0.748039523512125,
259
+ "num_tokens": 294672.0,
260
+ "step": 125
261
+ },
262
+ {
263
+ "entropy": 1.2385535925626754,
264
+ "epoch": 0.8851063829787233,
265
+ "grad_norm": 0.875,
266
+ "learning_rate": 8.25859734853645e-06,
267
+ "loss": 1.117280864715576,
268
+ "mean_token_accuracy": 0.7358166418969632,
269
+ "num_tokens": 305646.0,
270
+ "step": 130
271
+ },
272
+ {
273
+ "entropy": 1.1569571590051055,
274
+ "epoch": 0.9191489361702128,
275
+ "grad_norm": 0.734375,
276
+ "learning_rate": 4.366744239922998e-06,
277
+ "loss": 1.0218097686767578,
278
+ "mean_token_accuracy": 0.7512762233614921,
279
+ "num_tokens": 317522.0,
280
+ "step": 135
281
+ },
282
+ {
283
+ "entropy": 1.2956396371126175,
284
+ "epoch": 0.9531914893617022,
285
+ "grad_norm": 0.640625,
286
+ "learning_rate": 1.6689574843694433e-06,
287
+ "loss": 1.1682409286499023,
288
+ "mean_token_accuracy": 0.7267132062464953,
289
+ "num_tokens": 328188.0,
290
+ "step": 140
291
+ },
292
+ {
293
+ "entropy": 1.1794268768280745,
294
+ "epoch": 0.9872340425531915,
295
+ "grad_norm": 0.796875,
296
+ "learning_rate": 2.3582894166930268e-07,
297
+ "loss": 1.0452459335327149,
298
+ "mean_token_accuracy": 0.7454933904111385,
299
+ "num_tokens": 340204.0,
300
+ "step": 145
301
+ }
302
+ ],
303
+ "logging_steps": 5,
304
+ "max_steps": 147,
305
+ "num_input_tokens_seen": 0,
306
+ "num_train_epochs": 1,
307
+ "save_steps": 200,
308
+ "stateful_callbacks": {
309
+ "TrainerControl": {
310
+ "args": {
311
+ "should_epoch_stop": false,
312
+ "should_evaluate": false,
313
+ "should_log": false,
314
+ "should_save": true,
315
+ "should_training_stop": true
316
+ },
317
+ "attributes": {}
318
+ }
319
+ },
320
+ "total_flos": 6.64226666827776e+16,
321
+ "train_batch_size": 1,
322
+ "trial_name": null,
323
+ "trial_params": null
324
+ }
checkpoint-147/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af857186485f7886bd37e125673eb8925184021c8781eed36ce7d1c3b1cc9521
3
+ size 5713
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
3
+ size 11421892
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": "<|im_end|>",
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": false,
24
+ "local_files_only": false,
25
+ "model_max_length": 131072,
26
+ "pad_token": "<|endoftext|>",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }