DongfuJiang commited on
Commit
b476084
·
verified ·
1 Parent(s): 04d0028

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +3 -0
  2. README.md +66 -0
  3. added_tokens.json +24 -0
  4. all_results.json +13 -0
  5. checkpoint-500/added_tokens.json +24 -0
  6. checkpoint-500/config.json +35 -0
  7. checkpoint-500/generation_config.json +14 -0
  8. checkpoint-500/merges.txt +0 -0
  9. checkpoint-500/model.safetensors +3 -0
  10. checkpoint-500/optimizer.pt +3 -0
  11. checkpoint-500/rng_state_0.pth +3 -0
  12. checkpoint-500/rng_state_1.pth +3 -0
  13. checkpoint-500/rng_state_2.pth +3 -0
  14. checkpoint-500/rng_state_3.pth +3 -0
  15. checkpoint-500/rng_state_4.pth +3 -0
  16. checkpoint-500/rng_state_5.pth +3 -0
  17. checkpoint-500/rng_state_6.pth +3 -0
  18. checkpoint-500/rng_state_7.pth +3 -0
  19. checkpoint-500/scheduler.pt +3 -0
  20. checkpoint-500/special_tokens_map.json +31 -0
  21. checkpoint-500/tokenizer.json +3 -0
  22. checkpoint-500/tokenizer_config.json +208 -0
  23. checkpoint-500/trainer_state.json +391 -0
  24. checkpoint-500/training_args.bin +3 -0
  25. checkpoint-500/vocab.json +0 -0
  26. checkpoint-852/added_tokens.json +24 -0
  27. checkpoint-852/config.json +35 -0
  28. checkpoint-852/generation_config.json +14 -0
  29. checkpoint-852/merges.txt +0 -0
  30. checkpoint-852/model.safetensors +3 -0
  31. checkpoint-852/optimizer.pt +3 -0
  32. checkpoint-852/rng_state_0.pth +3 -0
  33. checkpoint-852/rng_state_1.pth +3 -0
  34. checkpoint-852/rng_state_2.pth +3 -0
  35. checkpoint-852/rng_state_3.pth +3 -0
  36. checkpoint-852/rng_state_4.pth +3 -0
  37. checkpoint-852/rng_state_5.pth +3 -0
  38. checkpoint-852/rng_state_6.pth +3 -0
  39. checkpoint-852/rng_state_7.pth +3 -0
  40. checkpoint-852/scheduler.pt +3 -0
  41. checkpoint-852/special_tokens_map.json +31 -0
  42. checkpoint-852/tokenizer.json +3 -0
  43. checkpoint-852/tokenizer_config.json +208 -0
  44. checkpoint-852/trainer_state.json +636 -0
  45. checkpoint-852/training_args.bin +3 -0
  46. checkpoint-852/vocab.json +0 -0
  47. config.json +35 -0
  48. eval_results.json +8 -0
  49. generation_config.json +14 -0
  50. merges.txt +0 -0
.gitattributes CHANGED
@@ -33,3 +33,6 @@ 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-500/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ checkpoint-852/tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ base_model: DongfuJiang/Qwen2.5-0.5B-Instruct
5
+ tags:
6
+ - llama-factory
7
+ - freeze
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: qwen2_chunking_mlp_freeze_uniform_with_shared_start_sft
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # qwen2_chunking_mlp_freeze_uniform_with_shared_start_sft
18
+
19
+ This model is a fine-tuned version of [DongfuJiang/Qwen2.5-0.5B-Instruct](https://huggingface.co/DongfuJiang/Qwen2.5-0.5B-Instruct) on the wikitext-103-v1 dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 3.9502
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 1e-05
41
+ - train_batch_size: 1
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 8
46
+ - gradient_accumulation_steps: 8
47
+ - total_train_batch_size: 64
48
+ - total_eval_batch_size: 8
49
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 1.0
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:------:|:----:|:---------------:|
58
+ | 4.107 | 0.5867 | 500 | 4.0980 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - Transformers 4.46.1
64
+ - Pytorch 2.5.1+cu124
65
+ - Datasets 2.18.0
66
+ - Tokenizers 0.20.3
added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
all_results.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9997066588442358,
3
+ "eval_loss": 3.9502358436584473,
4
+ "eval_runtime": 120.5085,
5
+ "eval_samples_per_second": 50.295,
6
+ "eval_steps_per_second": 6.29,
7
+ "perplexity": 51.94761690624261,
8
+ "total_flos": 2.4088250058539008e+17,
9
+ "train_loss": 4.953971872866993,
10
+ "train_runtime": 3149.0681,
11
+ "train_samples_per_second": 17.32,
12
+ "train_steps_per_second": 0.271
13
+ }
checkpoint-500/added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
checkpoint-500/config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "DongfuJiang/Qwen2.5-0.5B-Instruct",
3
+ "adapter_hidden_size": null,
4
+ "aggregation_mode": "mlp",
5
+ "architectures": [
6
+ "Qwen2ChunkingForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "chunking_mode": "uniform_with_shared_start",
11
+ "eos_token_id": 151645,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 896,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4864,
16
+ "layers_to_prune": null,
17
+ "max_position_embeddings": 32768,
18
+ "max_window_layers": 21,
19
+ "model_type": "qwen2_chunking",
20
+ "num_attention_heads": 14,
21
+ "num_hidden_layers": 24,
22
+ "num_key_value_heads": 2,
23
+ "num_layers_per_chunk": 8,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_scaling": null,
26
+ "rope_theta": 1000000.0,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": true,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.46.1",
31
+ "use_adapters": false,
32
+ "use_cache": false,
33
+ "use_sliding_window": false,
34
+ "vocab_size": 151936
35
+ }
checkpoint-500/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
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.46.1"
14
+ }
checkpoint-500/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-500/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:98dc386f6b8dd3f1de88e5be9d7764ba1751e24f3275cc7c07aca9811fa608e7
3
+ size 1471720384
checkpoint-500/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dbcdb32451db221a8dc7da41f77b1c0e95bcbe04334ff6d9cee245107103fbf
3
+ size 1921800122
checkpoint-500/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad8a35afd8967cbb748405387e44426e43ad127028e826eddc9b67d2ca873c85
3
+ size 15984
checkpoint-500/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f338ce80d7c441076bfc8c53b84067a0181f5a14e80c13d5acb8150b659f4d73
3
+ size 15984
checkpoint-500/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9fbc9fa428939be10b46779f0eb5cd833e0da426b1cbdee77b3a55b6952235b
3
+ size 15984
checkpoint-500/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac55dba0b79d5fa4699d239da2f966d52040d576d31234ac8d4632e6956481bc
3
+ size 15984
checkpoint-500/rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af2d0c015100768ffa23faf3b6c2d54ea89eb045603e30e55cd211e06ff34972
3
+ size 15984
checkpoint-500/rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c60a1b40608e34bc801c8231f97b81c53b5290dfaed1b9cd0ccbeca29574a991
3
+ size 15984
checkpoint-500/rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ad6a142a403eb9aafc4a3a9a856bca648fe31fd22d796867baca31fb13656aa
3
+ size 15984
checkpoint-500/rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bc23a138cc800b22881742c0f3f9a71731a9a7111c6058a0077e6274d21773
3
+ size 15984
checkpoint-500/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6b8e87305e4845ce7851de7641acda9c70ee03aba232b8f8c8019dc55a199e9
3
+ size 1064
checkpoint-500/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": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
checkpoint-500/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
checkpoint-500/tokenizer_config.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
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 {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\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\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|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": "<|im_end|>",
201
+ "errors": "replace",
202
+ "model_max_length": 131072,
203
+ "pad_token": "<|endoftext|>",
204
+ "padding_side": "right",
205
+ "split_special_tokens": false,
206
+ "tokenizer_class": "Qwen2Tokenizer",
207
+ "unk_token": null
208
+ }
checkpoint-500/trainer_state.json ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.5866823115283074,
5
+ "eval_steps": 500,
6
+ "global_step": 500,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.011733646230566148,
13
+ "grad_norm": 158.19329833984375,
14
+ "learning_rate": 1.1627906976744188e-06,
15
+ "loss": 16.8855,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.023467292461132296,
20
+ "grad_norm": 56.40153884887695,
21
+ "learning_rate": 2.3255813953488376e-06,
22
+ "loss": 15.0868,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.03520093869169844,
27
+ "grad_norm": 65.71855163574219,
28
+ "learning_rate": 3.4883720930232564e-06,
29
+ "loss": 12.3109,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.04693458492226459,
34
+ "grad_norm": 47.712074279785156,
35
+ "learning_rate": 4.651162790697675e-06,
36
+ "loss": 10.5382,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.05866823115283074,
41
+ "grad_norm": 18.6832332611084,
42
+ "learning_rate": 5.8139534883720935e-06,
43
+ "loss": 9.1851,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.07040187738339689,
48
+ "grad_norm": 23.909244537353516,
49
+ "learning_rate": 6.976744186046513e-06,
50
+ "loss": 8.1563,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.08213552361396304,
55
+ "grad_norm": 15.935365676879883,
56
+ "learning_rate": 8.139534883720931e-06,
57
+ "loss": 7.2683,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.09386916984452918,
62
+ "grad_norm": 18.156291961669922,
63
+ "learning_rate": 9.30232558139535e-06,
64
+ "loss": 6.6225,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.10560281607509533,
69
+ "grad_norm": 14.451725959777832,
70
+ "learning_rate": 9.999327189969768e-06,
71
+ "loss": 6.2144,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.11733646230566148,
76
+ "grad_norm": 20.55025863647461,
77
+ "learning_rate": 9.991760156443892e-06,
78
+ "loss": 5.9333,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.12907010853622763,
83
+ "grad_norm": 9.335273742675781,
84
+ "learning_rate": 9.975797845734699e-06,
85
+ "loss": 5.7416,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 0.14080375476679377,
90
+ "grad_norm": 12.944341659545898,
91
+ "learning_rate": 9.951467103687879e-06,
92
+ "loss": 5.5528,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 0.15253740099735993,
97
+ "grad_norm": 13.229466438293457,
98
+ "learning_rate": 9.918808850403192e-06,
99
+ "loss": 5.4369,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 0.16427104722792607,
104
+ "grad_norm": 10.06254768371582,
105
+ "learning_rate": 9.877878011413924e-06,
106
+ "loss": 5.2938,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 0.17600469345849223,
111
+ "grad_norm": 11.859220504760742,
112
+ "learning_rate": 9.828743425311654e-06,
113
+ "loss": 5.2013,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 0.18773833968905837,
118
+ "grad_norm": 11.55561637878418,
119
+ "learning_rate": 9.771487727971642e-06,
120
+ "loss": 5.1234,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 0.19947198591962453,
125
+ "grad_norm": 9.468324661254883,
126
+ "learning_rate": 9.70620721357358e-06,
127
+ "loss": 5.0474,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 0.21120563215019067,
132
+ "grad_norm": 10.732479095458984,
133
+ "learning_rate": 9.633011672651443e-06,
134
+ "loss": 4.9805,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 0.22293927838075683,
139
+ "grad_norm": 10.652563095092773,
140
+ "learning_rate": 9.552024207444794e-06,
141
+ "loss": 4.9355,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 0.23467292461132297,
146
+ "grad_norm": 6.873952865600586,
147
+ "learning_rate": 9.463381024862116e-06,
148
+ "loss": 4.8471,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 0.2464065708418891,
153
+ "grad_norm": 9.639769554138184,
154
+ "learning_rate": 9.36723120740434e-06,
155
+ "loss": 4.8064,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 0.25814021707245527,
160
+ "grad_norm": 9.389469146728516,
161
+ "learning_rate": 9.26373646243388e-06,
162
+ "loss": 4.7518,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 0.26987386330302143,
167
+ "grad_norm": 6.799657344818115,
168
+ "learning_rate": 9.153070850210803e-06,
169
+ "loss": 4.6989,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 0.28160750953358754,
174
+ "grad_norm": 9.919508934020996,
175
+ "learning_rate": 9.035420491153596e-06,
176
+ "loss": 4.6511,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 0.2933411557641537,
181
+ "grad_norm": 8.014354705810547,
182
+ "learning_rate": 8.910983252816794e-06,
183
+ "loss": 4.6346,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 0.30507480199471987,
188
+ "grad_norm": 7.689748287200928,
189
+ "learning_rate": 8.779968417111991e-06,
190
+ "loss": 4.6151,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 0.31680844822528603,
195
+ "grad_norm": 6.760936737060547,
196
+ "learning_rate": 8.642596328331864e-06,
197
+ "loss": 4.5728,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 0.32854209445585214,
202
+ "grad_norm": 7.691278457641602,
203
+ "learning_rate": 8.499098022569177e-06,
204
+ "loss": 4.5157,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 0.3402757406864183,
209
+ "grad_norm": 6.514494895935059,
210
+ "learning_rate": 8.349714839154035e-06,
211
+ "loss": 4.4863,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 0.35200938691698447,
216
+ "grad_norm": 7.121197700500488,
217
+ "learning_rate": 8.19469801476288e-06,
218
+ "loss": 4.4432,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 0.3637430331475506,
223
+ "grad_norm": 6.118000030517578,
224
+ "learning_rate": 8.034308260881854e-06,
225
+ "loss": 4.4499,
226
+ "step": 310
227
+ },
228
+ {
229
+ "epoch": 0.37547667937811674,
230
+ "grad_norm": 6.461143493652344,
231
+ "learning_rate": 7.868815325335168e-06,
232
+ "loss": 4.4294,
233
+ "step": 320
234
+ },
235
+ {
236
+ "epoch": 0.3872103256086829,
237
+ "grad_norm": 5.675752639770508,
238
+ "learning_rate": 7.698497538615928e-06,
239
+ "loss": 4.4118,
240
+ "step": 330
241
+ },
242
+ {
243
+ "epoch": 0.39894397183924907,
244
+ "grad_norm": 5.432925701141357,
245
+ "learning_rate": 7.5236413457823745e-06,
246
+ "loss": 4.3359,
247
+ "step": 340
248
+ },
249
+ {
250
+ "epoch": 0.4106776180698152,
251
+ "grad_norm": 4.405528545379639,
252
+ "learning_rate": 7.344540824706855e-06,
253
+ "loss": 4.3412,
254
+ "step": 350
255
+ },
256
+ {
257
+ "epoch": 0.42241126430038134,
258
+ "grad_norm": 5.6253886222839355,
259
+ "learning_rate": 7.161497191487693e-06,
260
+ "loss": 4.3042,
261
+ "step": 360
262
+ },
263
+ {
264
+ "epoch": 0.4341449105309475,
265
+ "grad_norm": 4.410622596740723,
266
+ "learning_rate": 6.9748182938558225e-06,
267
+ "loss": 4.3081,
268
+ "step": 370
269
+ },
270
+ {
271
+ "epoch": 0.44587855676151367,
272
+ "grad_norm": 5.902497291564941,
273
+ "learning_rate": 6.784818093428144e-06,
274
+ "loss": 4.2947,
275
+ "step": 380
276
+ },
277
+ {
278
+ "epoch": 0.4576122029920798,
279
+ "grad_norm": 4.575879096984863,
280
+ "learning_rate": 6.591816137678388e-06,
281
+ "loss": 4.2322,
282
+ "step": 390
283
+ },
284
+ {
285
+ "epoch": 0.46934584922264594,
286
+ "grad_norm": 4.4911956787109375,
287
+ "learning_rate": 6.396137022513545e-06,
288
+ "loss": 4.2262,
289
+ "step": 400
290
+ },
291
+ {
292
+ "epoch": 0.4810794954532121,
293
+ "grad_norm": 5.822395324707031,
294
+ "learning_rate": 6.198109846359682e-06,
295
+ "loss": 4.2415,
296
+ "step": 410
297
+ },
298
+ {
299
+ "epoch": 0.4928131416837782,
300
+ "grad_norm": 5.228771209716797,
301
+ "learning_rate": 5.998067656675318e-06,
302
+ "loss": 4.1806,
303
+ "step": 420
304
+ },
305
+ {
306
+ "epoch": 0.5045467879143444,
307
+ "grad_norm": 4.534237861633301,
308
+ "learning_rate": 5.7963468898232026e-06,
309
+ "loss": 4.2051,
310
+ "step": 430
311
+ },
312
+ {
313
+ "epoch": 0.5162804341449105,
314
+ "grad_norm": 4.696606636047363,
315
+ "learning_rate": 5.593286805242549e-06,
316
+ "loss": 4.1919,
317
+ "step": 440
318
+ },
319
+ {
320
+ "epoch": 0.5280140803754767,
321
+ "grad_norm": 4.736946105957031,
322
+ "learning_rate": 5.389228914873334e-06,
323
+ "loss": 4.184,
324
+ "step": 450
325
+ },
326
+ {
327
+ "epoch": 0.5397477266060429,
328
+ "grad_norm": 3.714312791824341,
329
+ "learning_rate": 5.18451640879228e-06,
330
+ "loss": 4.164,
331
+ "step": 460
332
+ },
333
+ {
334
+ "epoch": 0.551481372836609,
335
+ "grad_norm": 4.020701885223389,
336
+ "learning_rate": 4.979493578026523e-06,
337
+ "loss": 4.1435,
338
+ "step": 470
339
+ },
340
+ {
341
+ "epoch": 0.5632150190671751,
342
+ "grad_norm": 3.9667632579803467,
343
+ "learning_rate": 4.774505235515628e-06,
344
+ "loss": 4.1239,
345
+ "step": 480
346
+ },
347
+ {
348
+ "epoch": 0.5749486652977412,
349
+ "grad_norm": 3.7402360439300537,
350
+ "learning_rate": 4.5698961361958955e-06,
351
+ "loss": 4.1297,
352
+ "step": 490
353
+ },
354
+ {
355
+ "epoch": 0.5866823115283074,
356
+ "grad_norm": 3.3449549674987793,
357
+ "learning_rate": 4.3660103971821635e-06,
358
+ "loss": 4.107,
359
+ "step": 500
360
+ },
361
+ {
362
+ "epoch": 0.5866823115283074,
363
+ "eval_loss": 4.097958087921143,
364
+ "eval_runtime": 120.8684,
365
+ "eval_samples_per_second": 50.145,
366
+ "eval_steps_per_second": 6.271,
367
+ "step": 500
368
+ }
369
+ ],
370
+ "logging_steps": 10,
371
+ "max_steps": 852,
372
+ "num_input_tokens_seen": 0,
373
+ "num_train_epochs": 1,
374
+ "save_steps": 500,
375
+ "stateful_callbacks": {
376
+ "TrainerControl": {
377
+ "args": {
378
+ "should_epoch_stop": false,
379
+ "should_evaluate": false,
380
+ "should_log": false,
381
+ "should_save": true,
382
+ "should_training_stop": false
383
+ },
384
+ "attributes": {}
385
+ }
386
+ },
387
+ "total_flos": 1.413629698113536e+17,
388
+ "train_batch_size": 1,
389
+ "trial_name": null,
390
+ "trial_params": null
391
+ }
checkpoint-500/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2930fe4ac62a09f64dab3c7a5475ee28cb161e625cedcb525f5c5328c26be104
3
+ size 5496
checkpoint-500/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-852/added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
checkpoint-852/config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "DongfuJiang/Qwen2.5-0.5B-Instruct",
3
+ "adapter_hidden_size": null,
4
+ "aggregation_mode": "mlp",
5
+ "architectures": [
6
+ "Qwen2ChunkingForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "chunking_mode": "uniform_with_shared_start",
11
+ "eos_token_id": 151645,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 896,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4864,
16
+ "layers_to_prune": null,
17
+ "max_position_embeddings": 32768,
18
+ "max_window_layers": 21,
19
+ "model_type": "qwen2_chunking",
20
+ "num_attention_heads": 14,
21
+ "num_hidden_layers": 24,
22
+ "num_key_value_heads": 2,
23
+ "num_layers_per_chunk": 8,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_scaling": null,
26
+ "rope_theta": 1000000.0,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": true,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.46.1",
31
+ "use_adapters": false,
32
+ "use_cache": false,
33
+ "use_sliding_window": false,
34
+ "vocab_size": 151936
35
+ }
checkpoint-852/generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
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.46.1"
14
+ }
checkpoint-852/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-852/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e91362e21fb85c5a7fadc0c45ebeb3893ec0c5cfd72b353556d1442ec76491cc
3
+ size 1471720384
checkpoint-852/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0256790de0f0ea67bc55d0fd8382f09eb78cd8b93c9a5519d62a1513f87bb20b
3
+ size 1921800122
checkpoint-852/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad8a35afd8967cbb748405387e44426e43ad127028e826eddc9b67d2ca873c85
3
+ size 15984
checkpoint-852/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f338ce80d7c441076bfc8c53b84067a0181f5a14e80c13d5acb8150b659f4d73
3
+ size 15984
checkpoint-852/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c9fbc9fa428939be10b46779f0eb5cd833e0da426b1cbdee77b3a55b6952235b
3
+ size 15984
checkpoint-852/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac55dba0b79d5fa4699d239da2f966d52040d576d31234ac8d4632e6956481bc
3
+ size 15984
checkpoint-852/rng_state_4.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af2d0c015100768ffa23faf3b6c2d54ea89eb045603e30e55cd211e06ff34972
3
+ size 15984
checkpoint-852/rng_state_5.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c60a1b40608e34bc801c8231f97b81c53b5290dfaed1b9cd0ccbeca29574a991
3
+ size 15984
checkpoint-852/rng_state_6.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ad6a142a403eb9aafc4a3a9a856bca648fe31fd22d796867baca31fb13656aa
3
+ size 15984
checkpoint-852/rng_state_7.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38bc23a138cc800b22881742c0f3f9a71731a9a7111c6058a0077e6274d21773
3
+ size 15984
checkpoint-852/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4cea3ad9d75460ada93ba40415f1a62f00e895914f396644e273ed6512e901a
3
+ size 1064
checkpoint-852/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": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
checkpoint-852/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
3
+ size 11421896
checkpoint-852/tokenizer_config.json ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
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 {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\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\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|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": "<|im_end|>",
201
+ "errors": "replace",
202
+ "model_max_length": 131072,
203
+ "pad_token": "<|endoftext|>",
204
+ "padding_side": "right",
205
+ "split_special_tokens": false,
206
+ "tokenizer_class": "Qwen2Tokenizer",
207
+ "unk_token": null
208
+ }
checkpoint-852/trainer_state.json ADDED
@@ -0,0 +1,636 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9997066588442358,
5
+ "eval_steps": 500,
6
+ "global_step": 852,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.011733646230566148,
13
+ "grad_norm": 158.19329833984375,
14
+ "learning_rate": 1.1627906976744188e-06,
15
+ "loss": 16.8855,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 0.023467292461132296,
20
+ "grad_norm": 56.40153884887695,
21
+ "learning_rate": 2.3255813953488376e-06,
22
+ "loss": 15.0868,
23
+ "step": 20
24
+ },
25
+ {
26
+ "epoch": 0.03520093869169844,
27
+ "grad_norm": 65.71855163574219,
28
+ "learning_rate": 3.4883720930232564e-06,
29
+ "loss": 12.3109,
30
+ "step": 30
31
+ },
32
+ {
33
+ "epoch": 0.04693458492226459,
34
+ "grad_norm": 47.712074279785156,
35
+ "learning_rate": 4.651162790697675e-06,
36
+ "loss": 10.5382,
37
+ "step": 40
38
+ },
39
+ {
40
+ "epoch": 0.05866823115283074,
41
+ "grad_norm": 18.6832332611084,
42
+ "learning_rate": 5.8139534883720935e-06,
43
+ "loss": 9.1851,
44
+ "step": 50
45
+ },
46
+ {
47
+ "epoch": 0.07040187738339689,
48
+ "grad_norm": 23.909244537353516,
49
+ "learning_rate": 6.976744186046513e-06,
50
+ "loss": 8.1563,
51
+ "step": 60
52
+ },
53
+ {
54
+ "epoch": 0.08213552361396304,
55
+ "grad_norm": 15.935365676879883,
56
+ "learning_rate": 8.139534883720931e-06,
57
+ "loss": 7.2683,
58
+ "step": 70
59
+ },
60
+ {
61
+ "epoch": 0.09386916984452918,
62
+ "grad_norm": 18.156291961669922,
63
+ "learning_rate": 9.30232558139535e-06,
64
+ "loss": 6.6225,
65
+ "step": 80
66
+ },
67
+ {
68
+ "epoch": 0.10560281607509533,
69
+ "grad_norm": 14.451725959777832,
70
+ "learning_rate": 9.999327189969768e-06,
71
+ "loss": 6.2144,
72
+ "step": 90
73
+ },
74
+ {
75
+ "epoch": 0.11733646230566148,
76
+ "grad_norm": 20.55025863647461,
77
+ "learning_rate": 9.991760156443892e-06,
78
+ "loss": 5.9333,
79
+ "step": 100
80
+ },
81
+ {
82
+ "epoch": 0.12907010853622763,
83
+ "grad_norm": 9.335273742675781,
84
+ "learning_rate": 9.975797845734699e-06,
85
+ "loss": 5.7416,
86
+ "step": 110
87
+ },
88
+ {
89
+ "epoch": 0.14080375476679377,
90
+ "grad_norm": 12.944341659545898,
91
+ "learning_rate": 9.951467103687879e-06,
92
+ "loss": 5.5528,
93
+ "step": 120
94
+ },
95
+ {
96
+ "epoch": 0.15253740099735993,
97
+ "grad_norm": 13.229466438293457,
98
+ "learning_rate": 9.918808850403192e-06,
99
+ "loss": 5.4369,
100
+ "step": 130
101
+ },
102
+ {
103
+ "epoch": 0.16427104722792607,
104
+ "grad_norm": 10.06254768371582,
105
+ "learning_rate": 9.877878011413924e-06,
106
+ "loss": 5.2938,
107
+ "step": 140
108
+ },
109
+ {
110
+ "epoch": 0.17600469345849223,
111
+ "grad_norm": 11.859220504760742,
112
+ "learning_rate": 9.828743425311654e-06,
113
+ "loss": 5.2013,
114
+ "step": 150
115
+ },
116
+ {
117
+ "epoch": 0.18773833968905837,
118
+ "grad_norm": 11.55561637878418,
119
+ "learning_rate": 9.771487727971642e-06,
120
+ "loss": 5.1234,
121
+ "step": 160
122
+ },
123
+ {
124
+ "epoch": 0.19947198591962453,
125
+ "grad_norm": 9.468324661254883,
126
+ "learning_rate": 9.70620721357358e-06,
127
+ "loss": 5.0474,
128
+ "step": 170
129
+ },
130
+ {
131
+ "epoch": 0.21120563215019067,
132
+ "grad_norm": 10.732479095458984,
133
+ "learning_rate": 9.633011672651443e-06,
134
+ "loss": 4.9805,
135
+ "step": 180
136
+ },
137
+ {
138
+ "epoch": 0.22293927838075683,
139
+ "grad_norm": 10.652563095092773,
140
+ "learning_rate": 9.552024207444794e-06,
141
+ "loss": 4.9355,
142
+ "step": 190
143
+ },
144
+ {
145
+ "epoch": 0.23467292461132297,
146
+ "grad_norm": 6.873952865600586,
147
+ "learning_rate": 9.463381024862116e-06,
148
+ "loss": 4.8471,
149
+ "step": 200
150
+ },
151
+ {
152
+ "epoch": 0.2464065708418891,
153
+ "grad_norm": 9.639769554138184,
154
+ "learning_rate": 9.36723120740434e-06,
155
+ "loss": 4.8064,
156
+ "step": 210
157
+ },
158
+ {
159
+ "epoch": 0.25814021707245527,
160
+ "grad_norm": 9.389469146728516,
161
+ "learning_rate": 9.26373646243388e-06,
162
+ "loss": 4.7518,
163
+ "step": 220
164
+ },
165
+ {
166
+ "epoch": 0.26987386330302143,
167
+ "grad_norm": 6.799657344818115,
168
+ "learning_rate": 9.153070850210803e-06,
169
+ "loss": 4.6989,
170
+ "step": 230
171
+ },
172
+ {
173
+ "epoch": 0.28160750953358754,
174
+ "grad_norm": 9.919508934020996,
175
+ "learning_rate": 9.035420491153596e-06,
176
+ "loss": 4.6511,
177
+ "step": 240
178
+ },
179
+ {
180
+ "epoch": 0.2933411557641537,
181
+ "grad_norm": 8.014354705810547,
182
+ "learning_rate": 8.910983252816794e-06,
183
+ "loss": 4.6346,
184
+ "step": 250
185
+ },
186
+ {
187
+ "epoch": 0.30507480199471987,
188
+ "grad_norm": 7.689748287200928,
189
+ "learning_rate": 8.779968417111991e-06,
190
+ "loss": 4.6151,
191
+ "step": 260
192
+ },
193
+ {
194
+ "epoch": 0.31680844822528603,
195
+ "grad_norm": 6.760936737060547,
196
+ "learning_rate": 8.642596328331864e-06,
197
+ "loss": 4.5728,
198
+ "step": 270
199
+ },
200
+ {
201
+ "epoch": 0.32854209445585214,
202
+ "grad_norm": 7.691278457641602,
203
+ "learning_rate": 8.499098022569177e-06,
204
+ "loss": 4.5157,
205
+ "step": 280
206
+ },
207
+ {
208
+ "epoch": 0.3402757406864183,
209
+ "grad_norm": 6.514494895935059,
210
+ "learning_rate": 8.349714839154035e-06,
211
+ "loss": 4.4863,
212
+ "step": 290
213
+ },
214
+ {
215
+ "epoch": 0.35200938691698447,
216
+ "grad_norm": 7.121197700500488,
217
+ "learning_rate": 8.19469801476288e-06,
218
+ "loss": 4.4432,
219
+ "step": 300
220
+ },
221
+ {
222
+ "epoch": 0.3637430331475506,
223
+ "grad_norm": 6.118000030517578,
224
+ "learning_rate": 8.034308260881854e-06,
225
+ "loss": 4.4499,
226
+ "step": 310
227
+ },
228
+ {
229
+ "epoch": 0.37547667937811674,
230
+ "grad_norm": 6.461143493652344,
231
+ "learning_rate": 7.868815325335168e-06,
232
+ "loss": 4.4294,
233
+ "step": 320
234
+ },
235
+ {
236
+ "epoch": 0.3872103256086829,
237
+ "grad_norm": 5.675752639770508,
238
+ "learning_rate": 7.698497538615928e-06,
239
+ "loss": 4.4118,
240
+ "step": 330
241
+ },
242
+ {
243
+ "epoch": 0.39894397183924907,
244
+ "grad_norm": 5.432925701141357,
245
+ "learning_rate": 7.5236413457823745e-06,
246
+ "loss": 4.3359,
247
+ "step": 340
248
+ },
249
+ {
250
+ "epoch": 0.4106776180698152,
251
+ "grad_norm": 4.405528545379639,
252
+ "learning_rate": 7.344540824706855e-06,
253
+ "loss": 4.3412,
254
+ "step": 350
255
+ },
256
+ {
257
+ "epoch": 0.42241126430038134,
258
+ "grad_norm": 5.6253886222839355,
259
+ "learning_rate": 7.161497191487693e-06,
260
+ "loss": 4.3042,
261
+ "step": 360
262
+ },
263
+ {
264
+ "epoch": 0.4341449105309475,
265
+ "grad_norm": 4.410622596740723,
266
+ "learning_rate": 6.9748182938558225e-06,
267
+ "loss": 4.3081,
268
+ "step": 370
269
+ },
270
+ {
271
+ "epoch": 0.44587855676151367,
272
+ "grad_norm": 5.902497291564941,
273
+ "learning_rate": 6.784818093428144e-06,
274
+ "loss": 4.2947,
275
+ "step": 380
276
+ },
277
+ {
278
+ "epoch": 0.4576122029920798,
279
+ "grad_norm": 4.575879096984863,
280
+ "learning_rate": 6.591816137678388e-06,
281
+ "loss": 4.2322,
282
+ "step": 390
283
+ },
284
+ {
285
+ "epoch": 0.46934584922264594,
286
+ "grad_norm": 4.4911956787109375,
287
+ "learning_rate": 6.396137022513545e-06,
288
+ "loss": 4.2262,
289
+ "step": 400
290
+ },
291
+ {
292
+ "epoch": 0.4810794954532121,
293
+ "grad_norm": 5.822395324707031,
294
+ "learning_rate": 6.198109846359682e-06,
295
+ "loss": 4.2415,
296
+ "step": 410
297
+ },
298
+ {
299
+ "epoch": 0.4928131416837782,
300
+ "grad_norm": 5.228771209716797,
301
+ "learning_rate": 5.998067656675318e-06,
302
+ "loss": 4.1806,
303
+ "step": 420
304
+ },
305
+ {
306
+ "epoch": 0.5045467879143444,
307
+ "grad_norm": 4.534237861633301,
308
+ "learning_rate": 5.7963468898232026e-06,
309
+ "loss": 4.2051,
310
+ "step": 430
311
+ },
312
+ {
313
+ "epoch": 0.5162804341449105,
314
+ "grad_norm": 4.696606636047363,
315
+ "learning_rate": 5.593286805242549e-06,
316
+ "loss": 4.1919,
317
+ "step": 440
318
+ },
319
+ {
320
+ "epoch": 0.5280140803754767,
321
+ "grad_norm": 4.736946105957031,
322
+ "learning_rate": 5.389228914873334e-06,
323
+ "loss": 4.184,
324
+ "step": 450
325
+ },
326
+ {
327
+ "epoch": 0.5397477266060429,
328
+ "grad_norm": 3.714312791824341,
329
+ "learning_rate": 5.18451640879228e-06,
330
+ "loss": 4.164,
331
+ "step": 460
332
+ },
333
+ {
334
+ "epoch": 0.551481372836609,
335
+ "grad_norm": 4.020701885223389,
336
+ "learning_rate": 4.979493578026523e-06,
337
+ "loss": 4.1435,
338
+ "step": 470
339
+ },
340
+ {
341
+ "epoch": 0.5632150190671751,
342
+ "grad_norm": 3.9667632579803467,
343
+ "learning_rate": 4.774505235515628e-06,
344
+ "loss": 4.1239,
345
+ "step": 480
346
+ },
347
+ {
348
+ "epoch": 0.5749486652977412,
349
+ "grad_norm": 3.7402360439300537,
350
+ "learning_rate": 4.5698961361958955e-06,
351
+ "loss": 4.1297,
352
+ "step": 490
353
+ },
354
+ {
355
+ "epoch": 0.5866823115283074,
356
+ "grad_norm": 3.3449549674987793,
357
+ "learning_rate": 4.3660103971821635e-06,
358
+ "loss": 4.107,
359
+ "step": 500
360
+ },
361
+ {
362
+ "epoch": 0.5866823115283074,
363
+ "eval_loss": 4.097958087921143,
364
+ "eval_runtime": 120.8684,
365
+ "eval_samples_per_second": 50.145,
366
+ "eval_steps_per_second": 6.271,
367
+ "step": 500
368
+ },
369
+ {
370
+ "epoch": 0.5984159577588736,
371
+ "grad_norm": 3.9140114784240723,
372
+ "learning_rate": 4.163190919022357e-06,
373
+ "loss": 4.0708,
374
+ "step": 510
375
+ },
376
+ {
377
+ "epoch": 0.6101496039894397,
378
+ "grad_norm": 2.8521409034729004,
379
+ "learning_rate": 3.961778808998066e-06,
380
+ "loss": 4.0891,
381
+ "step": 520
382
+ },
383
+ {
384
+ "epoch": 0.6218832502200059,
385
+ "grad_norm": 3.21331524848938,
386
+ "learning_rate": 3.762112807441108e-06,
387
+ "loss": 4.0593,
388
+ "step": 530
389
+ },
390
+ {
391
+ "epoch": 0.6336168964505721,
392
+ "grad_norm": 2.4329190254211426,
393
+ "learning_rate": 3.56452871803087e-06,
394
+ "loss": 4.0827,
395
+ "step": 540
396
+ },
397
+ {
398
+ "epoch": 0.6453505426811381,
399
+ "grad_norm": 2.4796149730682373,
400
+ "learning_rate": 3.3693588430306035e-06,
401
+ "loss": 4.0539,
402
+ "step": 550
403
+ },
404
+ {
405
+ "epoch": 0.6570841889117043,
406
+ "grad_norm": 2.6811649799346924,
407
+ "learning_rate": 3.1769314244125056e-06,
408
+ "loss": 4.0513,
409
+ "step": 560
410
+ },
411
+ {
412
+ "epoch": 0.6688178351422704,
413
+ "grad_norm": 2.397920846939087,
414
+ "learning_rate": 2.987570091811479e-06,
415
+ "loss": 4.0313,
416
+ "step": 570
417
+ },
418
+ {
419
+ "epoch": 0.6805514813728366,
420
+ "grad_norm": 2.68379807472229,
421
+ "learning_rate": 2.801593318236078e-06,
422
+ "loss": 4.0205,
423
+ "step": 580
424
+ },
425
+ {
426
+ "epoch": 0.6922851276034028,
427
+ "grad_norm": 2.4063057899475098,
428
+ "learning_rate": 2.6193138844519785e-06,
429
+ "loss": 4.0359,
430
+ "step": 590
431
+ },
432
+ {
433
+ "epoch": 0.7040187738339689,
434
+ "grad_norm": 2.6436047554016113,
435
+ "learning_rate": 2.4410383529388448e-06,
436
+ "loss": 4.0142,
437
+ "step": 600
438
+ },
439
+ {
440
+ "epoch": 0.7157524200645351,
441
+ "grad_norm": 2.204946756362915,
442
+ "learning_rate": 2.2670665523052534e-06,
443
+ "loss": 3.9906,
444
+ "step": 610
445
+ },
446
+ {
447
+ "epoch": 0.7274860662951012,
448
+ "grad_norm": 2.283926010131836,
449
+ "learning_rate": 2.097691073028836e-06,
450
+ "loss": 4.0181,
451
+ "step": 620
452
+ },
453
+ {
454
+ "epoch": 0.7392197125256673,
455
+ "grad_norm": 2.106992483139038,
456
+ "learning_rate": 1.9331967753697077e-06,
457
+ "loss": 4.0127,
458
+ "step": 630
459
+ },
460
+ {
461
+ "epoch": 0.7509533587562335,
462
+ "grad_norm": 2.0476365089416504,
463
+ "learning_rate": 1.7738603102847696e-06,
464
+ "loss": 4.0151,
465
+ "step": 640
466
+ },
467
+ {
468
+ "epoch": 0.7626870049867996,
469
+ "grad_norm": 2.019026517868042,
470
+ "learning_rate": 1.6199496541486647e-06,
471
+ "loss": 3.9824,
472
+ "step": 650
473
+ },
474
+ {
475
+ "epoch": 0.7744206512173658,
476
+ "grad_norm": 2.1455600261688232,
477
+ "learning_rate": 1.471723658063856e-06,
478
+ "loss": 3.9689,
479
+ "step": 660
480
+ },
481
+ {
482
+ "epoch": 0.786154297447932,
483
+ "grad_norm": 2.0698354244232178,
484
+ "learning_rate": 1.3294316125178474e-06,
485
+ "loss": 3.9877,
486
+ "step": 670
487
+ },
488
+ {
489
+ "epoch": 0.7978879436784981,
490
+ "grad_norm": 2.0827808380126953,
491
+ "learning_rate": 1.1933128281197042e-06,
492
+ "loss": 3.9864,
493
+ "step": 680
494
+ },
495
+ {
496
+ "epoch": 0.8096215899090642,
497
+ "grad_norm": 2.235387086868286,
498
+ "learning_rate": 1.063596233120997e-06,
499
+ "loss": 3.9962,
500
+ "step": 690
501
+ },
502
+ {
503
+ "epoch": 0.8213552361396304,
504
+ "grad_norm": 2.029141902923584,
505
+ "learning_rate": 9.40499988398082e-07,
506
+ "loss": 3.9658,
507
+ "step": 700
508
+ },
509
+ {
510
+ "epoch": 0.8330888823701965,
511
+ "grad_norm": 1.9971383810043335,
512
+ "learning_rate": 8.242311205432418e-07,
513
+ "loss": 3.9552,
514
+ "step": 710
515
+ },
516
+ {
517
+ "epoch": 0.8448225286007627,
518
+ "grad_norm": 2.0364105701446533,
519
+ "learning_rate": 7.149851736817609e-07,
520
+ "loss": 3.9712,
521
+ "step": 720
522
+ },
523
+ {
524
+ "epoch": 0.8565561748313288,
525
+ "grad_norm": 1.8077551126480103,
526
+ "learning_rate": 6.12945880600535e-07,
527
+ "loss": 3.9483,
528
+ "step": 730
529
+ },
530
+ {
531
+ "epoch": 0.868289821061895,
532
+ "grad_norm": 1.9532560110092163,
533
+ "learning_rate": 5.18284853741301e-07,
534
+ "loss": 3.9692,
535
+ "step": 740
536
+ },
537
+ {
538
+ "epoch": 0.8800234672924612,
539
+ "grad_norm": 2.1647019386291504,
540
+ "learning_rate": 4.311612965781903e-07,
541
+ "loss": 3.9518,
542
+ "step": 750
543
+ },
544
+ {
545
+ "epoch": 0.8917571135230273,
546
+ "grad_norm": 1.997475504875183,
547
+ "learning_rate": 3.5172173586502543e-07,
548
+ "loss": 3.9206,
549
+ "step": 760
550
+ },
551
+ {
552
+ "epoch": 0.9034907597535934,
553
+ "grad_norm": 1.925897240638733,
554
+ "learning_rate": 2.800997752026596e-07,
555
+ "loss": 3.9863,
556
+ "step": 770
557
+ },
558
+ {
559
+ "epoch": 0.9152244059841596,
560
+ "grad_norm": 1.7154505252838135,
561
+ "learning_rate": 2.1641587034083756e-07,
562
+ "loss": 3.9431,
563
+ "step": 780
564
+ },
565
+ {
566
+ "epoch": 0.9269580522147257,
567
+ "grad_norm": 1.8487329483032227,
568
+ "learning_rate": 1.6077712659244792e-07,
569
+ "loss": 3.9338,
570
+ "step": 790
571
+ },
572
+ {
573
+ "epoch": 0.9386916984452919,
574
+ "grad_norm": 1.8064842224121094,
575
+ "learning_rate": 1.1327711870091963e-07,
576
+ "loss": 3.9529,
577
+ "step": 800
578
+ },
579
+ {
580
+ "epoch": 0.950425344675858,
581
+ "grad_norm": 1.842482328414917,
582
+ "learning_rate": 7.399573346368871e-08,
583
+ "loss": 3.9651,
584
+ "step": 810
585
+ },
586
+ {
587
+ "epoch": 0.9621589909064242,
588
+ "grad_norm": 1.6884958744049072,
589
+ "learning_rate": 4.299903537641703e-08,
590
+ "loss": 3.9445,
591
+ "step": 820
592
+ },
593
+ {
594
+ "epoch": 0.9738926371369904,
595
+ "grad_norm": 1.7613016366958618,
596
+ "learning_rate": 2.0339155523945164e-08,
597
+ "loss": 3.9624,
598
+ "step": 830
599
+ },
600
+ {
601
+ "epoch": 0.9856262833675564,
602
+ "grad_norm": 1.8088396787643433,
603
+ "learning_rate": 6.054203904817812e-09,
604
+ "loss": 3.9723,
605
+ "step": 840
606
+ },
607
+ {
608
+ "epoch": 0.9973599295981226,
609
+ "grad_norm": 1.7286911010742188,
610
+ "learning_rate": 1.6820533686179308e-10,
611
+ "loss": 3.9213,
612
+ "step": 850
613
+ }
614
+ ],
615
+ "logging_steps": 10,
616
+ "max_steps": 852,
617
+ "num_input_tokens_seen": 0,
618
+ "num_train_epochs": 1,
619
+ "save_steps": 500,
620
+ "stateful_callbacks": {
621
+ "TrainerControl": {
622
+ "args": {
623
+ "should_epoch_stop": false,
624
+ "should_evaluate": false,
625
+ "should_log": false,
626
+ "should_save": true,
627
+ "should_training_stop": true
628
+ },
629
+ "attributes": {}
630
+ }
631
+ },
632
+ "total_flos": 2.4088250058539008e+17,
633
+ "train_batch_size": 1,
634
+ "trial_name": null,
635
+ "trial_params": null
636
+ }
checkpoint-852/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2930fe4ac62a09f64dab3c7a5475ee28cb161e625cedcb525f5c5328c26be104
3
+ size 5496
checkpoint-852/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "DongfuJiang/Qwen2.5-0.5B-Instruct",
3
+ "adapter_hidden_size": null,
4
+ "aggregation_mode": "mlp",
5
+ "architectures": [
6
+ "Qwen2ChunkingForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "chunking_mode": "uniform_with_shared_start",
11
+ "eos_token_id": 151645,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 896,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4864,
16
+ "layers_to_prune": null,
17
+ "max_position_embeddings": 32768,
18
+ "max_window_layers": 21,
19
+ "model_type": "qwen2_chunking",
20
+ "num_attention_heads": 14,
21
+ "num_hidden_layers": 24,
22
+ "num_key_value_heads": 2,
23
+ "num_layers_per_chunk": 8,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_scaling": null,
26
+ "rope_theta": 1000000.0,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": true,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.46.1",
31
+ "use_adapters": false,
32
+ "use_cache": false,
33
+ "use_sliding_window": false,
34
+ "vocab_size": 151936
35
+ }
eval_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9997066588442358,
3
+ "eval_loss": 3.9502358436584473,
4
+ "eval_runtime": 120.5085,
5
+ "eval_samples_per_second": 50.295,
6
+ "eval_steps_per_second": 6.29,
7
+ "perplexity": 51.94761690624261
8
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
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.46.1"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff