wyu1 commited on
Commit
1782736
·
verified ·
1 Parent(s): d1bfd41

End of training

Browse files
20250508_134354.log ADDED
@@ -0,0 +1,275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [2025-05-08 13:49:25] Created output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
2
+ [2025-05-08 13:49:25] Chat mode disabled
3
+ [2025-05-08 13:49:25] Model size is 3B or smaller (1.5 B). Using full fine-tuning.
4
+ [2025-05-08 13:49:25] No QA format data will be used
5
+ [2025-05-08 13:49:25] =======================================
6
+ [2025-05-08 13:49:25] Starting training for model: Qwen/Qwen2.5-1.5B
7
+ [2025-05-08 13:49:25] =======================================
8
+ [2025-05-08 13:49:25] CUDA_VISIBLE_DEVICES: 0,1,2,3,4,5,6,7
9
+ [2025-05-08 13:49:25] WANDB_PROJECT: wikidyk-ar
10
+ [2025-05-08 13:49:25] DATA_PATH: data/wikidyk2022-2025_01082025_gpt-4o_evalv2_pages_formatted_combined_v2.json
11
+ [2025-05-08 13:49:25] Global Batch Size: 256
12
+ [2025-05-08 13:49:25] Data Size: -1
13
+ [2025-05-08 13:49:25] Executing command: torchrun --nproc_per_node "8" --master-port 29503 src/train.py --model_name_or_path "Qwen/Qwen2.5-1.5B" --data_path "data/wikidyk2022-2025_01082025_gpt-4o_evalv2_pages_formatted_combined_v2.json" --output_dir "train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000" --num_upsample "1000" --per_device_train_batch_size "32" --gradient_accumulation_steps "1" --learning_rate "2e-5" --num_train_epochs "1" --model_max_length "4096" --report_to wandb --logging_steps 50 --save_strategy no --bf16 True --use_flash_attention_2 True --qa_data_ratio "-1" --predict_mask "false"
14
+ [2025-05-08 13:49:25] Training started at 2025年 05月 08日 星期四 13:49:25 CST
15
+ W0508 13:49:26.176000 3284428 site-packages/torch/distributed/run.py:792]
16
+ W0508 13:49:26.176000 3284428 site-packages/torch/distributed/run.py:792] *****************************************
17
+ W0508 13:49:26.176000 3284428 site-packages/torch/distributed/run.py:792] Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
18
+ W0508 13:49:26.176000 3284428 site-packages/torch/distributed/run.py:792] *****************************************
19
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
20
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
21
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
22
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
23
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
24
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
25
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
26
+ WARNING:root:Output directory: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
27
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
28
+ [rank5]: Traceback (most recent call last):
29
+ [rank5]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
30
+ [rank5]: train()
31
+ [rank5]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
32
+ [rank5]: model = load_model(
33
+ [rank5]: ^^^^^^^^^^^
34
+ [rank5]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
35
+ [rank5]: return AutoModelForCausalLM.from_pretrained(
36
+ [rank5]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
+ [rank5]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
38
+ [rank5]: return model_class.from_pretrained(
39
+ [rank5]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
+ [rank5]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
41
+ [rank5]: return func(*args, **kwargs)
42
+ [rank5]: ^^^^^^^^^^^^^^^^^^^^^
43
+ [rank5]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
44
+ [rank5]: config = cls._autoset_attn_implementation(
45
+ [rank5]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46
+ [rank5]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
47
+ [rank5]: cls._check_and_enable_flash_attn_2(
48
+ [rank5]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
49
+ [rank5]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
50
+ [rank5]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
51
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
52
+ [rank2]: Traceback (most recent call last):
53
+ [rank2]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
54
+ [rank2]: train()
55
+ [rank2]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
56
+ [rank2]: model = load_model(
57
+ [rank2]: ^^^^^^^^^^^
58
+ [rank2]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
59
+ [rank2]: return AutoModelForCausalLM.from_pretrained(
60
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
61
+ [rank2]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
62
+ [rank2]: return model_class.from_pretrained(
63
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64
+ [rank2]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
65
+ [rank2]: return func(*args, **kwargs)
66
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^
67
+ [rank2]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
68
+ [rank2]: config = cls._autoset_attn_implementation(
69
+ [rank2]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70
+ [rank2]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
71
+ [rank2]: cls._check_and_enable_flash_attn_2(
72
+ [rank2]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
73
+ [rank2]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
74
+ [rank2]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
75
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
76
+ [rank0]: Traceback (most recent call last):
77
+ [rank0]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
78
+ [rank0]: train()
79
+ [rank0]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
80
+ [rank0]: model = load_model(
81
+ [rank0]: ^^^^^^^^^^^
82
+ [rank0]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
83
+ [rank0]: return AutoModelForCausalLM.from_pretrained(
84
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
85
+ [rank0]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
86
+ [rank0]: return model_class.from_pretrained(
87
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
88
+ [rank0]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
89
+ [rank0]: return func(*args, **kwargs)
90
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^
91
+ [rank0]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
92
+ [rank0]: config = cls._autoset_attn_implementation(
93
+ [rank0]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94
+ [rank0]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
95
+ [rank0]: cls._check_and_enable_flash_attn_2(
96
+ [rank0]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
97
+ [rank0]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
98
+ [rank0]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
99
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
100
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
101
+ [rank1]: Traceback (most recent call last):
102
+ [rank1]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
103
+ [rank1]: train()
104
+ [rank1]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
105
+ [rank1]: model = load_model(
106
+ [rank1]: ^^^^^^^^^^^
107
+ [rank1]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
108
+ [rank1]: return AutoModelForCausalLM.from_pretrained(
109
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
110
+ [rank1]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
111
+ [rank1]: return model_class.from_pretrained(
112
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
113
+ [rank1]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
114
+ [rank1]: return func(*args, **kwargs)
115
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^
116
+ [rank1]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
117
+ [rank1]: config = cls._autoset_attn_implementation(
118
+ [rank1]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
119
+ [rank1]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
120
+ [rank1]: cls._check_and_enable_flash_attn_2(
121
+ [rank1]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
122
+ [rank1]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
123
+ [rank1]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
124
+ [rank3]: Traceback (most recent call last):
125
+ [rank3]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
126
+ [rank3]: train()
127
+ [rank3]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
128
+ [rank3]: model = load_model(
129
+ [rank3]: ^^^^^^^^^^^
130
+ [rank3]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
131
+ [rank3]: return AutoModelForCausalLM.from_pretrained(
132
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
133
+ [rank3]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
134
+ [rank3]: return model_class.from_pretrained(
135
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
136
+ [rank3]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
137
+ [rank3]: return func(*args, **kwargs)
138
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^
139
+ [rank3]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
140
+ [rank3]: config = cls._autoset_attn_implementation(
141
+ [rank3]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
+ [rank3]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
143
+ [rank3]: cls._check_and_enable_flash_attn_2(
144
+ [rank3]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
145
+ [rank3]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
146
+ [rank3]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
147
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
148
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
149
+ [rank6]: Traceback (most recent call last):
150
+ [rank6]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
151
+ [rank6]: train()
152
+ [rank6]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
153
+ [rank6]: model = load_model(
154
+ [rank6]: ^^^^^^^^^^^
155
+ [rank6]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
156
+ [rank6]: return AutoModelForCausalLM.from_pretrained(
157
+ [rank6]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
158
+ [rank6]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
159
+ [rank6]: return model_class.from_pretrained(
160
+ [rank6]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
161
+ [rank6]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
162
+ [rank6]: return func(*args, **kwargs)
163
+ [rank6]: ^^^^^^^^^^^^^^^^^^^^^
164
+ [rank6]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
165
+ [rank6]: config = cls._autoset_attn_implementation(
166
+ [rank6]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
167
+ [rank6]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
168
+ [rank6]: cls._check_and_enable_flash_attn_2(
169
+ [rank6]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
170
+ [rank6]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
171
+ [rank6]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
172
+ [rank4]: Traceback (most recent call last):
173
+ [rank4]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
174
+ [rank4]: train()
175
+ [rank4]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
176
+ [rank4]: model = load_model(
177
+ [rank4]: ^^^^^^^^^^^
178
+ [rank4]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
179
+ [rank4]: return AutoModelForCausalLM.from_pretrained(
180
+ [rank4]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
181
+ [rank4]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
182
+ [rank4]: return model_class.from_pretrained(
183
+ [rank4]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184
+ [rank4]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
185
+ [rank4]: return func(*args, **kwargs)
186
+ [rank4]: ^^^^^^^^^^^^^^^^^^^^^
187
+ [rank4]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
188
+ [rank4]: config = cls._autoset_attn_implementation(
189
+ [rank4]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190
+ [rank4]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
191
+ [rank4]: cls._check_and_enable_flash_attn_2(
192
+ [rank4]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
193
+ [rank4]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
194
+ [rank4]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
195
+ The model was loaded with use_flash_attention_2=True, which is deprecated and may be removed in a future release. Please use `attn_implementation="flash_attention_2"` instead.
196
+ [rank7]: Traceback (most recent call last):
197
+ [rank7]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 134, in <module>
198
+ [rank7]: train()
199
+ [rank7]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/train.py", line 81, in train
200
+ [rank7]: model = load_model(
201
+ [rank7]: ^^^^^^^^^^^
202
+ [rank7]: File "/cq_1/share_1603164/user/wenhaowyu/WikiDYKEvalV2/src/utils/tools.py", line 119, in load_model
203
+ [rank7]: return AutoModelForCausalLM.from_pretrained(
204
+ [rank7]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205
+ [rank7]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/models/auto/auto_factory.py", line 571, in from_pretrained
206
+ [rank7]: return model_class.from_pretrained(
207
+ [rank7]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
208
+ [rank7]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 279, in _wrapper
209
+ [rank7]: return func(*args, **kwargs)
210
+ [rank7]: ^^^^^^^^^^^^^^^^^^^^^
211
+ [rank7]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 4336, in from_pretrained
212
+ [rank7]: config = cls._autoset_attn_implementation(
213
+ [rank7]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
214
+ [rank7]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2109, in _autoset_attn_implementation
215
+ [rank7]: cls._check_and_enable_flash_attn_2(
216
+ [rank7]: File "/root/miniconda3/lib/python3.11/site-packages/transformers/modeling_utils.py", line 2252, in _check_and_enable_flash_attn_2
217
+ [rank7]: raise ImportError(f"{preface} the package flash_attn seems to be not installed. {install_message}")
218
+ [rank7]: ImportError: FlashAttention2 has been toggled on, but it cannot be used due to the following error: the package flash_attn seems to be not installed. Please refer to the documentation of https://huggingface.co/docs/transformers/perf_infer_gpu_one#flashattention-2 to install Flash Attention 2.
219
+ [rank0]:[W508 13:51:01.300716482 ProcessGroupNCCL.cpp:1496] Warning: WARNING: destroy_process_group() was not called before program exit, which can leak resources. For more info, please see https://pytorch.org/docs/stable/distributed.html#shutdown (function operator())
220
+ W0508 13:51:02.341000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284495 closing signal SIGTERM
221
+ W0508 13:51:02.341000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284496 closing signal SIGTERM
222
+ W0508 13:51:02.342000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284497 closing signal SIGTERM
223
+ W0508 13:51:02.342000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284498 closing signal SIGTERM
224
+ W0508 13:51:02.342000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284499 closing signal SIGTERM
225
+ W0508 13:51:02.342000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284500 closing signal SIGTERM
226
+ W0508 13:51:02.342000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:897] Sending process 3284501 closing signal SIGTERM
227
+ E0508 13:51:03.887000 3284428 site-packages/torch/distributed/elastic/multiprocessing/api.py:869] failed (exitcode: 1) local_rank: 7 (pid: 3284502) of binary: /root/miniconda3/bin/python
228
+ Traceback (most recent call last):
229
+ File "/root/miniconda3/bin/torchrun", line 8, in <module>
230
+ sys.exit(main())
231
+ ^^^^^^
232
+ File "/root/miniconda3/lib/python3.11/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 355, in wrapper
233
+ return f(*args, **kwargs)
234
+ ^^^^^^^^^^^^^^^^^^
235
+ File "/root/miniconda3/lib/python3.11/site-packages/torch/distributed/run.py", line 918, in main
236
+ run(args)
237
+ File "/root/miniconda3/lib/python3.11/site-packages/torch/distributed/run.py", line 909, in run
238
+ elastic_launch(
239
+ File "/root/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 138, in __call__
240
+ return launch_agent(self._config, self._entrypoint, list(args))
241
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
242
+ File "/root/miniconda3/lib/python3.11/site-packages/torch/distributed/launcher/api.py", line 269, in launch_agent
243
+ raise ChildFailedError(
244
+ torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
245
+ ============================================================
246
+ src/train.py FAILED
247
+ ------------------------------------------------------------
248
+ Failures:
249
+ <NO_OTHER_FAILURES>
250
+ ------------------------------------------------------------
251
+ Root Cause (first observed failure):
252
+ [0]:
253
+ time : 2025-05-08_13:51:02
254
+ host : TENCENT64.site
255
+ rank : 7 (local_rank: 7)
256
+ exitcode : 1 (pid: 3284502)
257
+ error_file: <N/A>
258
+ traceback : To enable traceback see: https://pytorch.org/docs/stable/elastic/errors.html
259
+ ============================================================
260
+ [2025-05-08 13:51:04] ERROR: Training failed for Qwen/Qwen2.5-1.5B with exit code 1
261
+ [2025-05-08 13:51:04] ERROR: Training failed for Qwen/Qwen2.5-1.5B with exit code 1
262
+ [2025-05-08 13:51:04] Check error log for details: train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000/20250508_134354.log
263
+ [2025-05-08 13:51:04] Resource usage after training Qwen/Qwen2.5-1.5B:
264
+ [2025-05-08 13:51:04] GPU memory usage:
265
+ 0 MiB, 97871 MiB
266
+ 0 MiB, 97871 MiB
267
+ 0 MiB, 97871 MiB
268
+ 0 MiB, 97871 MiB
269
+ 0 MiB, 97871 MiB
270
+ 0 MiB, 97871 MiB
271
+ 0 MiB, 97871 MiB
272
+ 0 MiB, 97871 MiB
273
+ [2025-05-08 13:51:04] Disk space usage for model outputs:
274
+ 24K train_results_ar/Qwen_Qwen2.5-1.5B_full_upsample1000
275
+ [2025-05-08 13:51:04]
20250508_141301.log ADDED
The diff for this file is too large to render. See raw diff
 
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: Qwen/Qwen2.5-1.5B
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: Qwen_Qwen2.5-1.5B_full_upsample1000
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # Qwen_Qwen2.5-1.5B_full_upsample1000
16
+
17
+ This model is a fine-tuned version of [Qwen/Qwen2.5-1.5B](https://huggingface.co/Qwen/Qwen2.5-1.5B) on an unknown dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 0.0002
37
+ - train_batch_size: 32
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - distributed_type: multi-GPU
41
+ - num_devices: 8
42
+ - total_train_batch_size: 256
43
+ - total_eval_batch_size: 64
44
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
45
+ - lr_scheduler_type: linear
46
+ - num_epochs: 1.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.51.3
55
+ - Pytorch 2.6.0+cu124
56
+ - Datasets 3.6.0
57
+ - Tokenizers 0.21.1
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
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "eos_token_id": 151643,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 1536,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 8960,
12
+ "max_position_embeddings": 131072,
13
+ "max_window_layers": 28,
14
+ "model_type": "qwen2",
15
+ "num_attention_heads": 12,
16
+ "num_hidden_layers": 28,
17
+ "num_key_value_heads": 2,
18
+ "rms_norm_eps": 1e-06,
19
+ "rope_scaling": null,
20
+ "rope_theta": 1000000.0,
21
+ "sliding_window": 131072,
22
+ "tie_word_embeddings": true,
23
+ "torch_dtype": "bfloat16",
24
+ "transformers_version": "4.51.3",
25
+ "use_cache": true,
26
+ "use_mrope": false,
27
+ "use_sliding_window": false,
28
+ "vocab_size": 151936
29
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_new_tokens": 2048,
5
+ "transformers_version": "4.51.3"
6
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42a9e87f3ae9b7c17cef28f77d005560da7083cf5a73f2522d5b4efcbebb3f6e
3
+ size 3087467144
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": "<|endoftext|>",
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
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 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 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": "<|endoftext|>",
201
+ "errors": "replace",
202
+ "extra_special_tokens": {},
203
+ "model_max_length": 4096,
204
+ "pad_token": "<|endoftext|>",
205
+ "padding_side": "left",
206
+ "split_special_tokens": false,
207
+ "tokenizer_class": "Qwen2Tokenizer",
208
+ "unk_token": null
209
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7790449c76203122c826612e419641f50d39da218b91224da16c5754fbb835b3
3
+ size 5368
vocab.json ADDED
The diff for this file is too large to render. See raw diff