Model save
Browse files- README.md +2 -5
- all_results.json +6 -12
- config.json +6 -5
- generation_config.json +2 -10
- model.safetensors +1 -1
- special_tokens_map.json +2 -2
- tokenizer_config.json +3 -3
- train_results.json +6 -7
- trainer_state.json +0 -0
- training_args.bin +2 -2
README.md
CHANGED
@@ -1,11 +1,8 @@
|
|
1 |
---
|
2 |
-
base_model: Qwen/Qwen2.5-1.5B-Instruct
|
3 |
-
datasets: HuggingFaceH4/Bespoke-Stratos-17k
|
4 |
library_name: transformers
|
5 |
model_name: Qwen2.5-1.5B-Open-R1-Distill
|
6 |
tags:
|
7 |
- generated_from_trainer
|
8 |
-
- open-r1
|
9 |
- trl
|
10 |
- sft
|
11 |
licence: license
|
@@ -13,7 +10,7 @@ licence: license
|
|
13 |
|
14 |
# Model Card for Qwen2.5-1.5B-Open-R1-Distill
|
15 |
|
16 |
-
This model is a fine-tuned version of [
|
17 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
18 |
|
19 |
## Quick start
|
@@ -29,7 +26,7 @@ print(output["generated_text"])
|
|
29 |
|
30 |
## Training procedure
|
31 |
|
32 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/diqiuzhuanzhuan/
|
33 |
|
34 |
|
35 |
This model was trained with SFT.
|
|
|
1 |
---
|
|
|
|
|
2 |
library_name: transformers
|
3 |
model_name: Qwen2.5-1.5B-Open-R1-Distill
|
4 |
tags:
|
5 |
- generated_from_trainer
|
|
|
6 |
- trl
|
7 |
- sft
|
8 |
licence: license
|
|
|
10 |
|
11 |
# Model Card for Qwen2.5-1.5B-Open-R1-Distill
|
12 |
|
13 |
+
This model is a fine-tuned version of [None](https://huggingface.co/None).
|
14 |
It has been trained using [TRL](https://github.com/huggingface/trl).
|
15 |
|
16 |
## Quick start
|
|
|
26 |
|
27 |
## Training procedure
|
28 |
|
29 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/diqiuzhuanzhuan/open-r1/runs/h19qjdy9)
|
30 |
|
31 |
|
32 |
This model was trained with SFT.
|
all_results.json
CHANGED
@@ -1,14 +1,8 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"total_flos": 76916824473600.0,
|
9 |
-
"train_loss": 0.8026709429611115,
|
10 |
-
"train_runtime": 1204.3274,
|
11 |
-
"train_samples": 16610,
|
12 |
-
"train_samples_per_second": 17.944,
|
13 |
-
"train_steps_per_second": 0.14
|
14 |
}
|
|
|
1 |
{
|
2 |
+
"total_flos": 5.591154468847616e+18,
|
3 |
+
"train_loss": 0.5708037986130011,
|
4 |
+
"train_runtime": 80006.8909,
|
5 |
+
"train_samples": 93733,
|
6 |
+
"train_samples_per_second": 1.172,
|
7 |
+
"train_steps_per_second": 0.009
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
}
|
config.json
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "Qwen
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
"bos_token_id": 151643,
|
8 |
-
"eos_token_id":
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 1536,
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 8960,
|
13 |
-
"max_position_embeddings":
|
14 |
"max_window_layers": 21,
|
15 |
"model_type": "qwen2",
|
16 |
"num_attention_heads": 12,
|
@@ -18,12 +18,13 @@
|
|
18 |
"num_key_value_heads": 2,
|
19 |
"rms_norm_eps": 1e-06,
|
20 |
"rope_scaling": null,
|
21 |
-
"rope_theta":
|
22 |
"sliding_window": null,
|
23 |
"tie_word_embeddings": true,
|
24 |
"torch_dtype": "bfloat16",
|
25 |
"transformers_version": "4.49.0.dev0",
|
26 |
-
"use_cache":
|
|
|
27 |
"use_sliding_window": false,
|
28 |
"vocab_size": 151936
|
29 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/data/share/huggingface/models--Qwen--Qwen2.5-Math-1.5B/snapshots/4a83ca6e4526a4f2da3aa259ec36c259f66b2ab2",
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
6 |
"attention_dropout": 0.0,
|
7 |
"bos_token_id": 151643,
|
8 |
+
"eos_token_id": 151643,
|
9 |
"hidden_act": "silu",
|
10 |
"hidden_size": 1536,
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 8960,
|
13 |
+
"max_position_embeddings": 4096,
|
14 |
"max_window_layers": 21,
|
15 |
"model_type": "qwen2",
|
16 |
"num_attention_heads": 12,
|
|
|
18 |
"num_key_value_heads": 2,
|
19 |
"rms_norm_eps": 1e-06,
|
20 |
"rope_scaling": null,
|
21 |
+
"rope_theta": 10000,
|
22 |
"sliding_window": null,
|
23 |
"tie_word_embeddings": true,
|
24 |
"torch_dtype": "bfloat16",
|
25 |
"transformers_version": "4.49.0.dev0",
|
26 |
+
"use_cache": false,
|
27 |
+
"use_mrope": false,
|
28 |
"use_sliding_window": false,
|
29 |
"vocab_size": 151936
|
30 |
}
|
generation_config.json
CHANGED
@@ -1,14 +1,6 @@
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
-
"
|
4 |
-
"
|
5 |
-
151645,
|
6 |
-
151643
|
7 |
-
],
|
8 |
-
"pad_token_id": 151643,
|
9 |
-
"repetition_penalty": 1.1,
|
10 |
-
"temperature": 0.7,
|
11 |
-
"top_k": 20,
|
12 |
-
"top_p": 0.8,
|
13 |
"transformers_version": "4.49.0.dev0"
|
14 |
}
|
|
|
1 |
{
|
2 |
"bos_token_id": 151643,
|
3 |
+
"eos_token_id": 151643,
|
4 |
+
"max_new_tokens": 2048,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
"transformers_version": "4.49.0.dev0"
|
6 |
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 3087467144
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a32693d716deffb7bf94ac5a6883e130b4b2941e4215f052310c8033f86f4b6
|
3 |
size 3087467144
|
special_tokens_map.json
CHANGED
@@ -15,11 +15,11 @@
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
-
"content": "<|
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
22 |
"single_word": false
|
23 |
},
|
24 |
-
"pad_token": "<|
|
25 |
}
|
|
|
15 |
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": {
|
18 |
+
"content": "<|endoftext|>",
|
19 |
"lstrip": false,
|
20 |
"normalized": false,
|
21 |
"rstrip": false,
|
22 |
"single_word": false
|
23 |
},
|
24 |
+
"pad_token": "<|endoftext|>"
|
25 |
}
|
tokenizer_config.json
CHANGED
@@ -195,13 +195,13 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
-
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- '
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
-
"eos_token": "<|
|
201 |
"errors": "replace",
|
202 |
"extra_special_tokens": {},
|
203 |
"model_max_length": 131072,
|
204 |
-
"pad_token": "<|
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'Please reason step by step, and put your final answer within \\\\boxed{}.' }}\n {%- endif %}\n {{- \"\\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>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\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\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nPlease reason step by step, and put your final answer within \\\\boxed{}.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
+
"eos_token": "<|endoftext|>",
|
201 |
"errors": "replace",
|
202 |
"extra_special_tokens": {},
|
203 |
"model_max_length": 131072,
|
204 |
+
"pad_token": "<|endoftext|>",
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|
train_results.json
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
{
|
2 |
-
"
|
3 |
-
"
|
4 |
-
"
|
5 |
-
"
|
6 |
-
"
|
7 |
-
"
|
8 |
-
"train_steps_per_second": 0.14
|
9 |
}
|
|
|
1 |
{
|
2 |
+
"total_flos": 5.591154468847616e+18,
|
3 |
+
"train_loss": 0.5708037986130011,
|
4 |
+
"train_runtime": 80006.8909,
|
5 |
+
"train_samples": 93733,
|
6 |
+
"train_samples_per_second": 1.172,
|
7 |
+
"train_steps_per_second": 0.009
|
|
|
8 |
}
|
trainer_state.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:628de55e9170f2fc12003edbec26f42c6514baef557abd2227b760734318b49d
|
3 |
+
size 7480
|