Training in progress, step 30, checkpoint
Browse files- .gitattributes +1 -0
- last-checkpoint/README.md +209 -0
- last-checkpoint/adapter_config.json +45 -0
- last-checkpoint/adapter_model.safetensors +3 -0
- last-checkpoint/added_tokens.json +28 -0
- last-checkpoint/chat_template.jinja +135 -0
- last-checkpoint/merges.txt +0 -0
- last-checkpoint/optimizer.pt +3 -0
- last-checkpoint/rng_state.pth +3 -0
- last-checkpoint/scheduler.pt +3 -0
- last-checkpoint/special_tokens_map.json +31 -0
- last-checkpoint/tokenizer.json +3 -0
- last-checkpoint/tokenizer_config.json +240 -0
- last-checkpoint/trainer_state.json +83 -0
- last-checkpoint/training_args.bin +3 -0
- last-checkpoint/vocab.json +0 -0
.gitattributes
CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* 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
|
|
|
|
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
|
37 |
+
last-checkpoint/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
last-checkpoint/README.md
ADDED
@@ -0,0 +1,209 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: unsloth/qwen3-coder-30b-a3b-instruct
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- base_model:adapter:unsloth/qwen3-coder-30b-a3b-instruct
|
6 |
+
- lora
|
7 |
+
- sft
|
8 |
+
- transformers
|
9 |
+
- trl
|
10 |
+
- unsloth
|
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.17.0
|
last-checkpoint/adapter_config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": {
|
4 |
+
"base_model_class": "Qwen3MoeForCausalLM",
|
5 |
+
"parent_library": "transformers.models.qwen3_moe.modeling_qwen3_moe"
|
6 |
+
},
|
7 |
+
"base_model_name_or_path": "unsloth/qwen3-coder-30b-a3b-instruct",
|
8 |
+
"bias": "none",
|
9 |
+
"corda_config": null,
|
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.0,
|
22 |
+
"megatron_config": null,
|
23 |
+
"megatron_core": "megatron.core",
|
24 |
+
"modules_to_save": null,
|
25 |
+
"peft_type": "LORA",
|
26 |
+
"qalora_group_size": 16,
|
27 |
+
"r": 16,
|
28 |
+
"rank_pattern": {},
|
29 |
+
"revision": null,
|
30 |
+
"target_modules": [
|
31 |
+
"up_proj",
|
32 |
+
"gate_proj",
|
33 |
+
"k_proj",
|
34 |
+
"o_proj",
|
35 |
+
"q_proj",
|
36 |
+
"v_proj",
|
37 |
+
"down_proj"
|
38 |
+
],
|
39 |
+
"target_parameters": null,
|
40 |
+
"task_type": null,
|
41 |
+
"trainable_token_indices": null,
|
42 |
+
"use_dora": false,
|
43 |
+
"use_qalora": false,
|
44 |
+
"use_rslora": true
|
45 |
+
}
|
last-checkpoint/adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c303801992d909fb375637b1155e63e4672e72f206ee21b6aa62c49a242fef4b
|
3 |
+
size 3380768360
|
last-checkpoint/added_tokens.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</think>": 151668,
|
3 |
+
"</tool_call>": 151658,
|
4 |
+
"</tool_response>": 151666,
|
5 |
+
"<think>": 151667,
|
6 |
+
"<tool_call>": 151657,
|
7 |
+
"<tool_response>": 151665,
|
8 |
+
"<|box_end|>": 151649,
|
9 |
+
"<|box_start|>": 151648,
|
10 |
+
"<|endoftext|>": 151643,
|
11 |
+
"<|file_sep|>": 151664,
|
12 |
+
"<|fim_middle|>": 151660,
|
13 |
+
"<|fim_pad|>": 151662,
|
14 |
+
"<|fim_prefix|>": 151659,
|
15 |
+
"<|fim_suffix|>": 151661,
|
16 |
+
"<|im_end|>": 151645,
|
17 |
+
"<|im_start|>": 151644,
|
18 |
+
"<|image_pad|>": 151655,
|
19 |
+
"<|object_ref_end|>": 151647,
|
20 |
+
"<|object_ref_start|>": 151646,
|
21 |
+
"<|quad_end|>": 151651,
|
22 |
+
"<|quad_start|>": 151650,
|
23 |
+
"<|repo_name|>": 151663,
|
24 |
+
"<|video_pad|>": 151656,
|
25 |
+
"<|vision_end|>": 151653,
|
26 |
+
"<|vision_pad|>": 151654,
|
27 |
+
"<|vision_start|>": 151652
|
28 |
+
}
|
last-checkpoint/chat_template.jinja
ADDED
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{# Copyright 2025-present Unsloth. Apache 2.0 License. Unsloth Chat template fixes #}
|
2 |
+
{% macro render_item_list(item_list, tag_name='required') %}
|
3 |
+
{%- if item_list is defined and item_list is iterable and item_list | length > 0 %}
|
4 |
+
{%- if tag_name %}{{- '\n<' ~ tag_name ~ '>' -}}{% endif %}
|
5 |
+
{{- '[' }}
|
6 |
+
{%- for item in item_list -%}
|
7 |
+
{%- if loop.index > 1 %}{{- ", "}}{% endif -%}
|
8 |
+
{%- if item is string -%}
|
9 |
+
{{ "`" ~ item ~ "`" }}
|
10 |
+
{%- else -%}
|
11 |
+
{{ item }}
|
12 |
+
{%- endif -%}
|
13 |
+
{%- endfor -%}
|
14 |
+
{{- ']' }}
|
15 |
+
{%- if tag_name %}{{- '</' ~ tag_name ~ '>' -}}{% endif %}
|
16 |
+
{%- endif %}
|
17 |
+
{% endmacro %}
|
18 |
+
|
19 |
+
{%- if messages[0]["role"] == "system" %}
|
20 |
+
{%- set system_message = messages[0]["content"] %}
|
21 |
+
{%- set loop_messages = messages[1:] %}
|
22 |
+
{%- else %}
|
23 |
+
{%- set loop_messages = messages %}
|
24 |
+
{%- endif %}
|
25 |
+
|
26 |
+
{%- if not tools is defined %}
|
27 |
+
{%- set tools = [] %}
|
28 |
+
{%- endif %}
|
29 |
+
|
30 |
+
{%- if system_message is defined %}
|
31 |
+
{{- "<|im_start|>system\n" + system_message }}
|
32 |
+
{%- else %}
|
33 |
+
{%- if tools is iterable and tools | length > 0 %}
|
34 |
+
{{- "<|im_start|>system\nYou are Qwen, a helpful AI assistant that can interact with a computer to solve tasks." }}
|
35 |
+
{%- endif %}
|
36 |
+
{%- endif %}
|
37 |
+
{%- if tools is iterable and tools | length > 0 %}
|
38 |
+
{{- "\n\nYou have access to the following functions:\n\n" }}
|
39 |
+
{{- "<tools>" }}
|
40 |
+
{%- for tool in tools %}
|
41 |
+
{%- if tool.function is defined %}
|
42 |
+
{%- set tool = tool.function %}
|
43 |
+
{%- endif %}
|
44 |
+
{{- "\n<function>\n<name>" ~ tool.name ~ "</name>" }}
|
45 |
+
{{- '\n<description>' ~ (tool.description | trim) ~ '</description>' }}
|
46 |
+
{{- '\n<parameters>' }}
|
47 |
+
{%- for param_name, param_fields in tool.parameters.properties|items %}
|
48 |
+
{{- '\n<parameter>' }}
|
49 |
+
{{- '\n<name>' ~ param_name ~ '</name>' }}
|
50 |
+
{%- if param_fields.type is defined %}
|
51 |
+
{{- '\n<type>' ~ (param_fields.type | string) ~ '</type>' }}
|
52 |
+
{%- endif %}
|
53 |
+
{%- if param_fields.description is defined %}
|
54 |
+
{{- '\n<description>' ~ (param_fields.description | trim) ~ '</description>' }}
|
55 |
+
{%- endif %}
|
56 |
+
{{- render_item_list(param_fields.enum, 'enum') }}
|
57 |
+
{%- set handled_keys = ['type', 'description', 'enum', 'required'] %}
|
58 |
+
{%- for json_key, json_value in param_fields|items %}
|
59 |
+
{%- if json_key not in handled_keys %}
|
60 |
+
{%- set normed_json_key = json_key|string %}
|
61 |
+
{%- if json_value is mapping %}
|
62 |
+
{{- '\n<' ~ normed_json_key ~ '>' ~ (json_value | tojson | safe) ~ '</' ~ normed_json_key ~ '>' }}
|
63 |
+
{%- else %}
|
64 |
+
{{- '\n<' ~ normed_json_key ~ '>' ~ (json_value | string) ~ '</' ~ normed_json_key ~ '>' }}
|
65 |
+
{%- endif %}
|
66 |
+
{%- endif %}
|
67 |
+
{%- endfor %}
|
68 |
+
{{- render_item_list(param_fields.required, 'required') }}
|
69 |
+
{{- '\n</parameter>' }}
|
70 |
+
{%- endfor %}
|
71 |
+
{{- render_item_list(tool.parameters.required, 'required') }}
|
72 |
+
{{- '\n</parameters>' }}
|
73 |
+
{%- if tool.return is defined %}
|
74 |
+
{%- if tool.return is mapping %}
|
75 |
+
{{- '\n<return>' ~ (tool.return | tojson | safe) ~ '</return>' }}
|
76 |
+
{%- else %}
|
77 |
+
{{- '\n<return>' ~ (tool.return | string) ~ '</return>' }}
|
78 |
+
{%- endif %}
|
79 |
+
{%- endif %}
|
80 |
+
{{- '\n</function>' }}
|
81 |
+
{%- endfor %}
|
82 |
+
{{- "\n</tools>" }}
|
83 |
+
{{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
|
84 |
+
{%- endif %}
|
85 |
+
{%- if system_message is defined %}
|
86 |
+
{{- '<|im_end|>\n' }}
|
87 |
+
{%- else %}
|
88 |
+
{%- if tools is iterable and tools | length > 0 %}
|
89 |
+
{{- '<|im_end|>\n' }}
|
90 |
+
{%- endif %}
|
91 |
+
{%- endif %}
|
92 |
+
{%- for message in loop_messages %}
|
93 |
+
{%- if message.role == "assistant" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
|
94 |
+
{{- '<|im_start|>' + message.role }}
|
95 |
+
{%- if message.content is defined and message.content is string and message.content | trim | length > 0 %}
|
96 |
+
{{- '\n' + message.content | trim + '\n' }}
|
97 |
+
{%- endif %}
|
98 |
+
{%- for tool_call in message.tool_calls %}
|
99 |
+
{%- if tool_call.function is defined %}
|
100 |
+
{%- set tool_call = tool_call.function %}
|
101 |
+
{%- endif %}
|
102 |
+
{{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
|
103 |
+
{%- if tool_call.arguments is defined %}
|
104 |
+
{%- for args_name, args_value in tool_call.arguments|items %}
|
105 |
+
{{- '<parameter=' + args_name + '>\n' }}
|
106 |
+
{%- set args_value = args_value if args_value is string else args_value | string %}
|
107 |
+
{{- args_value }}
|
108 |
+
{{- '\n</parameter>\n' }}
|
109 |
+
{%- endfor %}
|
110 |
+
{%- endif %}
|
111 |
+
{{- '</function>\n</tool_call>' }}
|
112 |
+
{%- endfor %}
|
113 |
+
{{- '<|im_end|>\n' }}
|
114 |
+
{%- elif message.role == "user" or message.role == "system" or message.role == "assistant" %}
|
115 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
116 |
+
{%- elif message.role == "tool" %}
|
117 |
+
{%- if loop.previtem and loop.previtem.role != "tool" %}
|
118 |
+
{{- '<|im_start|>user\n' }}
|
119 |
+
{%- endif %}
|
120 |
+
{{- '<tool_response>\n' }}
|
121 |
+
{{- message.content }}
|
122 |
+
{{- '\n</tool_response>\n' }}
|
123 |
+
{%- if not loop.last and loop.nextitem.role != "tool" %}
|
124 |
+
{{- '<|im_end|>\n' }}
|
125 |
+
{%- elif loop.last %}
|
126 |
+
{{- '<|im_end|>\n' }}
|
127 |
+
{%- endif %}
|
128 |
+
{%- else %}
|
129 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>\n' }}
|
130 |
+
{%- endif %}
|
131 |
+
{%- endfor %}
|
132 |
+
{%- if add_generation_prompt %}
|
133 |
+
{{- '<|im_start|>assistant\n' }}
|
134 |
+
{%- endif %}
|
135 |
+
{# Copyright 2025-present Unsloth. Apache 2.0 License. Unsloth Chat template fixes #}
|
last-checkpoint/merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
last-checkpoint/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c57b6a9ac8c55daf023a7b186dc6bee7ae9fa796239fd742cf08a547ed5c579
|
3 |
+
size 1757899449
|
last-checkpoint/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1d565802a8e26c4e8a31328752b7a7fdc186d9401aa008e65697d0ad8c22e33
|
3 |
+
size 14645
|
last-checkpoint/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a5118a18c94c67d618d9d8a23c95ea6b3e41bee220855b67cdcd41a146c89a4
|
3 |
+
size 1465
|
last-checkpoint/special_tokens_map.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>",
|
5 |
+
"<|object_ref_start|>",
|
6 |
+
"<|object_ref_end|>",
|
7 |
+
"<|box_start|>",
|
8 |
+
"<|box_end|>",
|
9 |
+
"<|quad_start|>",
|
10 |
+
"<|quad_end|>",
|
11 |
+
"<|vision_start|>",
|
12 |
+
"<|vision_end|>",
|
13 |
+
"<|vision_pad|>",
|
14 |
+
"<|image_pad|>",
|
15 |
+
"<|video_pad|>"
|
16 |
+
],
|
17 |
+
"eos_token": {
|
18 |
+
"content": "<|im_end|>",
|
19 |
+
"lstrip": false,
|
20 |
+
"normalized": false,
|
21 |
+
"rstrip": false,
|
22 |
+
"single_word": false
|
23 |
+
},
|
24 |
+
"pad_token": {
|
25 |
+
"content": "<|vision_pad|>",
|
26 |
+
"lstrip": false,
|
27 |
+
"normalized": false,
|
28 |
+
"rstrip": false,
|
29 |
+
"single_word": false
|
30 |
+
}
|
31 |
+
}
|
last-checkpoint/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
3 |
+
size 11422654
|
last-checkpoint/tokenizer_config.json
ADDED
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": false,
|
3 |
+
"add_prefix_space": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"151643": {
|
6 |
+
"content": "<|endoftext|>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"151644": {
|
14 |
+
"content": "<|im_start|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"151645": {
|
22 |
+
"content": "<|im_end|>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"151646": {
|
30 |
+
"content": "<|object_ref_start|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"151647": {
|
38 |
+
"content": "<|object_ref_end|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"151648": {
|
46 |
+
"content": "<|box_start|>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"151649": {
|
54 |
+
"content": "<|box_end|>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"151650": {
|
62 |
+
"content": "<|quad_start|>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
"151651": {
|
70 |
+
"content": "<|quad_end|>",
|
71 |
+
"lstrip": false,
|
72 |
+
"normalized": false,
|
73 |
+
"rstrip": false,
|
74 |
+
"single_word": false,
|
75 |
+
"special": true
|
76 |
+
},
|
77 |
+
"151652": {
|
78 |
+
"content": "<|vision_start|>",
|
79 |
+
"lstrip": false,
|
80 |
+
"normalized": false,
|
81 |
+
"rstrip": false,
|
82 |
+
"single_word": false,
|
83 |
+
"special": true
|
84 |
+
},
|
85 |
+
"151653": {
|
86 |
+
"content": "<|vision_end|>",
|
87 |
+
"lstrip": false,
|
88 |
+
"normalized": false,
|
89 |
+
"rstrip": false,
|
90 |
+
"single_word": false,
|
91 |
+
"special": true
|
92 |
+
},
|
93 |
+
"151654": {
|
94 |
+
"content": "<|vision_pad|>",
|
95 |
+
"lstrip": false,
|
96 |
+
"normalized": false,
|
97 |
+
"rstrip": false,
|
98 |
+
"single_word": false,
|
99 |
+
"special": true
|
100 |
+
},
|
101 |
+
"151655": {
|
102 |
+
"content": "<|image_pad|>",
|
103 |
+
"lstrip": false,
|
104 |
+
"normalized": false,
|
105 |
+
"rstrip": false,
|
106 |
+
"single_word": false,
|
107 |
+
"special": true
|
108 |
+
},
|
109 |
+
"151656": {
|
110 |
+
"content": "<|video_pad|>",
|
111 |
+
"lstrip": false,
|
112 |
+
"normalized": false,
|
113 |
+
"rstrip": false,
|
114 |
+
"single_word": false,
|
115 |
+
"special": true
|
116 |
+
},
|
117 |
+
"151657": {
|
118 |
+
"content": "<tool_call>",
|
119 |
+
"lstrip": false,
|
120 |
+
"normalized": false,
|
121 |
+
"rstrip": false,
|
122 |
+
"single_word": false,
|
123 |
+
"special": false
|
124 |
+
},
|
125 |
+
"151658": {
|
126 |
+
"content": "</tool_call>",
|
127 |
+
"lstrip": false,
|
128 |
+
"normalized": false,
|
129 |
+
"rstrip": false,
|
130 |
+
"single_word": false,
|
131 |
+
"special": false
|
132 |
+
},
|
133 |
+
"151659": {
|
134 |
+
"content": "<|fim_prefix|>",
|
135 |
+
"lstrip": false,
|
136 |
+
"normalized": false,
|
137 |
+
"rstrip": false,
|
138 |
+
"single_word": false,
|
139 |
+
"special": false
|
140 |
+
},
|
141 |
+
"151660": {
|
142 |
+
"content": "<|fim_middle|>",
|
143 |
+
"lstrip": false,
|
144 |
+
"normalized": false,
|
145 |
+
"rstrip": false,
|
146 |
+
"single_word": false,
|
147 |
+
"special": false
|
148 |
+
},
|
149 |
+
"151661": {
|
150 |
+
"content": "<|fim_suffix|>",
|
151 |
+
"lstrip": false,
|
152 |
+
"normalized": false,
|
153 |
+
"rstrip": false,
|
154 |
+
"single_word": false,
|
155 |
+
"special": false
|
156 |
+
},
|
157 |
+
"151662": {
|
158 |
+
"content": "<|fim_pad|>",
|
159 |
+
"lstrip": false,
|
160 |
+
"normalized": false,
|
161 |
+
"rstrip": false,
|
162 |
+
"single_word": false,
|
163 |
+
"special": false
|
164 |
+
},
|
165 |
+
"151663": {
|
166 |
+
"content": "<|repo_name|>",
|
167 |
+
"lstrip": false,
|
168 |
+
"normalized": false,
|
169 |
+
"rstrip": false,
|
170 |
+
"single_word": false,
|
171 |
+
"special": false
|
172 |
+
},
|
173 |
+
"151664": {
|
174 |
+
"content": "<|file_sep|>",
|
175 |
+
"lstrip": false,
|
176 |
+
"normalized": false,
|
177 |
+
"rstrip": false,
|
178 |
+
"single_word": false,
|
179 |
+
"special": false
|
180 |
+
},
|
181 |
+
"151665": {
|
182 |
+
"content": "<tool_response>",
|
183 |
+
"lstrip": false,
|
184 |
+
"normalized": false,
|
185 |
+
"rstrip": false,
|
186 |
+
"single_word": false,
|
187 |
+
"special": false
|
188 |
+
},
|
189 |
+
"151666": {
|
190 |
+
"content": "</tool_response>",
|
191 |
+
"lstrip": false,
|
192 |
+
"normalized": false,
|
193 |
+
"rstrip": false,
|
194 |
+
"single_word": false,
|
195 |
+
"special": false
|
196 |
+
},
|
197 |
+
"151667": {
|
198 |
+
"content": "<think>",
|
199 |
+
"lstrip": false,
|
200 |
+
"normalized": false,
|
201 |
+
"rstrip": false,
|
202 |
+
"single_word": false,
|
203 |
+
"special": false
|
204 |
+
},
|
205 |
+
"151668": {
|
206 |
+
"content": "</think>",
|
207 |
+
"lstrip": false,
|
208 |
+
"normalized": false,
|
209 |
+
"rstrip": false,
|
210 |
+
"single_word": false,
|
211 |
+
"special": false
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"additional_special_tokens": [
|
215 |
+
"<|im_start|>",
|
216 |
+
"<|im_end|>",
|
217 |
+
"<|object_ref_start|>",
|
218 |
+
"<|object_ref_end|>",
|
219 |
+
"<|box_start|>",
|
220 |
+
"<|box_end|>",
|
221 |
+
"<|quad_start|>",
|
222 |
+
"<|quad_end|>",
|
223 |
+
"<|vision_start|>",
|
224 |
+
"<|vision_end|>",
|
225 |
+
"<|vision_pad|>",
|
226 |
+
"<|image_pad|>",
|
227 |
+
"<|video_pad|>"
|
228 |
+
],
|
229 |
+
"bos_token": null,
|
230 |
+
"clean_up_tokenization_spaces": false,
|
231 |
+
"eos_token": "<|im_end|>",
|
232 |
+
"errors": "replace",
|
233 |
+
"extra_special_tokens": {},
|
234 |
+
"model_max_length": 262144,
|
235 |
+
"pad_token": "<|vision_pad|>",
|
236 |
+
"padding_side": "right",
|
237 |
+
"split_special_tokens": false,
|
238 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
239 |
+
"unk_token": null
|
240 |
+
}
|
last-checkpoint/trainer_state.json
ADDED
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_global_step": null,
|
3 |
+
"best_metric": null,
|
4 |
+
"best_model_checkpoint": null,
|
5 |
+
"epoch": 0.410958904109589,
|
6 |
+
"eval_steps": 500,
|
7 |
+
"global_step": 30,
|
8 |
+
"is_hyper_param_search": false,
|
9 |
+
"is_local_process_zero": true,
|
10 |
+
"is_world_process_zero": true,
|
11 |
+
"log_history": [
|
12 |
+
{
|
13 |
+
"epoch": 0.0136986301369863,
|
14 |
+
"grad_norm": 3.0157270431518555,
|
15 |
+
"learning_rate": 0.0,
|
16 |
+
"loss": 0.4641,
|
17 |
+
"step": 1
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"epoch": 0.0684931506849315,
|
21 |
+
"grad_norm": 2.2118518352508545,
|
22 |
+
"learning_rate": 1.7142857142857142e-05,
|
23 |
+
"loss": 0.4948,
|
24 |
+
"step": 5
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.136986301369863,
|
28 |
+
"grad_norm": 0.47005388140678406,
|
29 |
+
"learning_rate": 2.999341254763192e-05,
|
30 |
+
"loss": 0.3754,
|
31 |
+
"step": 10
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 0.2054794520547945,
|
35 |
+
"grad_norm": 0.47667694091796875,
|
36 |
+
"learning_rate": 2.991937014031404e-05,
|
37 |
+
"loss": 0.2921,
|
38 |
+
"step": 15
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 0.273972602739726,
|
42 |
+
"grad_norm": 0.537722647190094,
|
43 |
+
"learning_rate": 2.9763458669213954e-05,
|
44 |
+
"loss": 0.2609,
|
45 |
+
"step": 20
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"epoch": 0.3424657534246575,
|
49 |
+
"grad_norm": 0.21915970742702484,
|
50 |
+
"learning_rate": 2.9526533688289482e-05,
|
51 |
+
"loss": 0.2512,
|
52 |
+
"step": 25
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"epoch": 0.410958904109589,
|
56 |
+
"grad_norm": 0.16927257180213928,
|
57 |
+
"learning_rate": 2.920989530781287e-05,
|
58 |
+
"loss": 0.2401,
|
59 |
+
"step": 30
|
60 |
+
}
|
61 |
+
],
|
62 |
+
"logging_steps": 5,
|
63 |
+
"max_steps": 219,
|
64 |
+
"num_input_tokens_seen": 0,
|
65 |
+
"num_train_epochs": 3,
|
66 |
+
"save_steps": 30,
|
67 |
+
"stateful_callbacks": {
|
68 |
+
"TrainerControl": {
|
69 |
+
"args": {
|
70 |
+
"should_epoch_stop": false,
|
71 |
+
"should_evaluate": false,
|
72 |
+
"should_log": false,
|
73 |
+
"should_save": true,
|
74 |
+
"should_training_stop": false
|
75 |
+
},
|
76 |
+
"attributes": {}
|
77 |
+
}
|
78 |
+
},
|
79 |
+
"total_flos": 5.3953144491422515e+17,
|
80 |
+
"train_batch_size": 16,
|
81 |
+
"trial_name": null,
|
82 |
+
"trial_params": null
|
83 |
+
}
|
last-checkpoint/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8855ef24f42f0e1ba1145f6cd4d570d92cdd85350340e9302a34e4eb24aa4b7e
|
3 |
+
size 6353
|
last-checkpoint/vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|