zjrwtxtechstudio commited on
Commit
1054bca
·
verified ·
1 Parent(s): 0984cad

Upload folder using huggingface_hub

Browse files
Files changed (44) hide show
  1. .gitattributes +2 -0
  2. .ipynb_checkpoints/README-checkpoint.md +61 -0
  3. .ipynb_checkpoints/llamaboard_config-checkpoint.yaml +78 -0
  4. .ipynb_checkpoints/merges-checkpoint.txt +0 -0
  5. .ipynb_checkpoints/running_log-checkpoint.txt +296 -0
  6. .ipynb_checkpoints/special_tokens_map-checkpoint.json +31 -0
  7. .ipynb_checkpoints/tokenizer_config-checkpoint.json +241 -0
  8. .ipynb_checkpoints/train_results-checkpoint.json +9 -0
  9. .ipynb_checkpoints/training_args-checkpoint.yaml +36 -0
  10. .ipynb_checkpoints/training_loss-checkpoint.png +0 -0
  11. README.md +61 -0
  12. adapter_config.json +39 -0
  13. adapter_model.safetensors +3 -0
  14. added_tokens.json +28 -0
  15. all_results.json +9 -0
  16. checkpoint-93/README.md +202 -0
  17. checkpoint-93/adapter_config.json +39 -0
  18. checkpoint-93/adapter_model.safetensors +3 -0
  19. checkpoint-93/added_tokens.json +28 -0
  20. checkpoint-93/merges.txt +0 -0
  21. checkpoint-93/optimizer.pt +3 -0
  22. checkpoint-93/rng_state_0.pth +3 -0
  23. checkpoint-93/rng_state_1.pth +3 -0
  24. checkpoint-93/scheduler.pt +3 -0
  25. checkpoint-93/special_tokens_map.json +31 -0
  26. checkpoint-93/tokenizer.json +3 -0
  27. checkpoint-93/tokenizer_config.json +241 -0
  28. checkpoint-93/trainer_state.json +178 -0
  29. checkpoint-93/training_args.bin +3 -0
  30. checkpoint-93/vocab.json +0 -0
  31. llamaboard_config.yaml +78 -0
  32. merges.txt +0 -0
  33. running_log.txt +296 -0
  34. special_tokens_map.json +31 -0
  35. swanlab_public_config.json +13 -0
  36. tokenizer.json +3 -0
  37. tokenizer_config.json +241 -0
  38. train_results.json +9 -0
  39. trainer_log.jsonl +19 -0
  40. trainer_state.json +188 -0
  41. training_args.bin +3 -0
  42. training_args.yaml +36 -0
  43. training_loss.png +0 -0
  44. vocab.json +0 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoint-93/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: other
4
+ base_model: Qwen/Qwen3-4B
5
+ tags:
6
+ - llama-factory
7
+ - lora
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: train_2025-05-18-16-33-56
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
+ # train_2025-05-18-16-33-56
18
+
19
+ This model is a fine-tuned version of [Qwen/Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B) on the alpaca_zh_demo dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - distributed_type: multi-GPU
43
+ - num_devices: 2
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 32
46
+ - total_eval_batch_size: 16
47
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: cosine
49
+ - num_epochs: 3.0
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - PEFT 0.15.1
58
+ - Transformers 4.51.3
59
+ - Pytorch 2.1.0+cu118
60
+ - Datasets 3.2.0
61
+ - Tokenizers 0.21.1
.ipynb_checkpoints/llamaboard_config-checkpoint.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ top.booster: auto
2
+ top.checkpoint_path: []
3
+ top.finetuning_type: lora
4
+ top.model_name: Qwen3-4B-Instruct
5
+ top.quantization_bit: none
6
+ top.quantization_method: bnb
7
+ top.rope_scaling: none
8
+ top.template: qwen3
9
+ train.additional_target: ''
10
+ train.apollo_rank: 16
11
+ train.apollo_scale: 32
12
+ train.apollo_target: all
13
+ train.apollo_update_interval: 200
14
+ train.badam_mode: layer
15
+ train.badam_switch_interval: 50
16
+ train.badam_switch_mode: ascending
17
+ train.badam_update_ratio: 0.05
18
+ train.batch_size: 2
19
+ train.compute_type: bf16
20
+ train.create_new_adapter: false
21
+ train.cutoff_len: 2048
22
+ train.dataset:
23
+ - alpaca_zh_demo
24
+ train.dataset_dir: LLaMA-Factory/data/
25
+ train.ds_offload: false
26
+ train.ds_stage: none
27
+ train.extra_args: '{"optim": "adamw_torch"}'
28
+ train.freeze_extra_modules: ''
29
+ train.freeze_trainable_layers: 2
30
+ train.freeze_trainable_modules: all
31
+ train.galore_rank: 16
32
+ train.galore_scale: 2
33
+ train.galore_target: all
34
+ train.galore_update_interval: 200
35
+ train.gradient_accumulation_steps: 8
36
+ train.learning_rate: 5e-5
37
+ train.logging_steps: 5
38
+ train.lora_alpha: 16
39
+ train.lora_dropout: 0
40
+ train.lora_rank: 8
41
+ train.lora_target: ''
42
+ train.loraplus_lr_ratio: 0
43
+ train.lr_scheduler_type: cosine
44
+ train.mask_history: false
45
+ train.max_grad_norm: '1.0'
46
+ train.max_samples: '100000'
47
+ train.neat_packing: false
48
+ train.neftune_alpha: 0
49
+ train.num_train_epochs: '3.0'
50
+ train.packing: false
51
+ train.ppo_score_norm: false
52
+ train.ppo_whiten_rewards: false
53
+ train.pref_beta: 0.1
54
+ train.pref_ftx: 0
55
+ train.pref_loss: sigmoid
56
+ train.report_to:
57
+ - none
58
+ train.resize_vocab: false
59
+ train.reward_model: []
60
+ train.save_steps: 100
61
+ train.swanlab_api_key: ''
62
+ train.swanlab_link: ''
63
+ train.swanlab_mode: cloud
64
+ train.swanlab_project: llamafactory
65
+ train.swanlab_run_name: ''
66
+ train.swanlab_workspace: ''
67
+ train.train_on_prompt: false
68
+ train.training_stage: Supervised Fine-Tuning
69
+ train.use_apollo: false
70
+ train.use_badam: false
71
+ train.use_dora: false
72
+ train.use_galore: false
73
+ train.use_llama_pro: false
74
+ train.use_pissa: false
75
+ train.use_rslora: false
76
+ train.use_swanlab: true
77
+ train.val_size: 0
78
+ train.warmup_steps: 0
.ipynb_checkpoints/merges-checkpoint.txt ADDED
The diff for this file is too large to render. See raw diff
 
.ipynb_checkpoints/running_log-checkpoint.txt ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/vocab.json
2
+
3
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/merges.txt
4
+
5
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer.json
6
+
7
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file added_tokens.json from cache at None
8
+
9
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file special_tokens_map.json from cache at None
10
+
11
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer_config.json
12
+
13
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file chat_template.jinja from cache at None
14
+
15
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2323 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
16
+
17
+ [INFO|2025-05-18 16:53:57] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
18
+
19
+ [INFO|2025-05-18 16:53:57] configuration_utils.py:765 >> Model config Qwen3Config {
20
+ "architectures": [
21
+ "Qwen3ForCausalLM"
22
+ ],
23
+ "attention_bias": false,
24
+ "attention_dropout": 0.0,
25
+ "bos_token_id": 151643,
26
+ "eos_token_id": 151645,
27
+ "head_dim": 128,
28
+ "hidden_act": "silu",
29
+ "hidden_size": 2560,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 9728,
32
+ "max_position_embeddings": 40960,
33
+ "max_window_layers": 36,
34
+ "model_type": "qwen3",
35
+ "num_attention_heads": 32,
36
+ "num_hidden_layers": 36,
37
+ "num_key_value_heads": 8,
38
+ "rms_norm_eps": 1e-06,
39
+ "rope_scaling": null,
40
+ "rope_theta": 1000000,
41
+ "sliding_window": null,
42
+ "tie_word_embeddings": true,
43
+ "torch_dtype": "bfloat16",
44
+ "transformers_version": "4.51.3",
45
+ "use_cache": true,
46
+ "use_sliding_window": false,
47
+ "vocab_size": 151936
48
+ }
49
+
50
+
51
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/vocab.json
52
+
53
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/merges.txt
54
+
55
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer.json
56
+
57
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file added_tokens.json from cache at None
58
+
59
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file special_tokens_map.json from cache at None
60
+
61
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer_config.json
62
+
63
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file chat_template.jinja from cache at None
64
+
65
+ [INFO|2025-05-18 16:53:58] tokenization_utils_base.py:2323 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
66
+
67
+ [INFO|2025-05-18 16:53:58] logging.py:143 >> Loading dataset alpaca_zh_demo.json...
68
+
69
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
70
+
71
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:765 >> Model config Qwen3Config {
72
+ "architectures": [
73
+ "Qwen3ForCausalLM"
74
+ ],
75
+ "attention_bias": false,
76
+ "attention_dropout": 0.0,
77
+ "bos_token_id": 151643,
78
+ "eos_token_id": 151645,
79
+ "head_dim": 128,
80
+ "hidden_act": "silu",
81
+ "hidden_size": 2560,
82
+ "initializer_range": 0.02,
83
+ "intermediate_size": 9728,
84
+ "max_position_embeddings": 40960,
85
+ "max_window_layers": 36,
86
+ "model_type": "qwen3",
87
+ "num_attention_heads": 32,
88
+ "num_hidden_layers": 36,
89
+ "num_key_value_heads": 8,
90
+ "rms_norm_eps": 1e-06,
91
+ "rope_scaling": null,
92
+ "rope_theta": 1000000,
93
+ "sliding_window": null,
94
+ "tie_word_embeddings": true,
95
+ "torch_dtype": "bfloat16",
96
+ "transformers_version": "4.51.3",
97
+ "use_cache": true,
98
+ "use_sliding_window": false,
99
+ "vocab_size": 151936
100
+ }
101
+
102
+
103
+ [INFO|2025-05-18 16:53:59] logging.py:143 >> KV cache is disabled during training.
104
+
105
+ [INFO|2025-05-18 16:53:59] modeling_utils.py:1124 >> loading weights file model.safetensors from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/model.safetensors.index.json
106
+
107
+ [INFO|2025-05-18 16:53:59] modeling_utils.py:2167 >> Instantiating Qwen3ForCausalLM model under default dtype torch.bfloat16.
108
+
109
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:1142 >> Generate config GenerationConfig {
110
+ "bos_token_id": 151643,
111
+ "eos_token_id": 151645,
112
+ "use_cache": false
113
+ }
114
+
115
+
116
+ [INFO|2025-05-18 16:54:01] modeling_utils.py:4930 >> All model checkpoint weights were used when initializing Qwen3ForCausalLM.
117
+
118
+
119
+ [INFO|2025-05-18 16:54:01] modeling_utils.py:4938 >> All the weights of Qwen3ForCausalLM were initialized from the model checkpoint at Qwen/Qwen3-4B.
120
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen3ForCausalLM for predictions without further training.
121
+
122
+ [INFO|2025-05-18 16:54:01] configuration_utils.py:1097 >> loading configuration file generation_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/generation_config.json
123
+
124
+ [INFO|2025-05-18 16:54:01] configuration_utils.py:1142 >> Generate config GenerationConfig {
125
+ "bos_token_id": 151643,
126
+ "do_sample": true,
127
+ "eos_token_id": [
128
+ 151645,
129
+ 151643
130
+ ],
131
+ "pad_token_id": 151643,
132
+ "temperature": 0.6,
133
+ "top_k": 20,
134
+ "top_p": 0.95
135
+ }
136
+
137
+
138
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Gradient checkpointing enabled.
139
+
140
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Using vanilla attention implementation.
141
+
142
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Upcasting trainable params to float32.
143
+
144
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Fine-tuning method: LoRA
145
+
146
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Found linear modules: k_proj,o_proj,q_proj,up_proj,v_proj,gate_proj,down_proj
147
+
148
+ [INFO|2025-05-18 16:54:02] logging.py:143 >> trainable params: 16,515,072 || all params: 4,038,983,168 || trainable%: 0.4089
149
+
150
+ [INFO|2025-05-18 16:54:02] trainer.py:748 >> Using auto half precision backend
151
+
152
+ [INFO|2025-05-18 16:54:02] trainer.py:2414 >> ***** Running training *****
153
+
154
+ [INFO|2025-05-18 16:54:02] trainer.py:2415 >> Num examples = 1,000
155
+
156
+ [INFO|2025-05-18 16:54:02] trainer.py:2416 >> Num Epochs = 3
157
+
158
+ [INFO|2025-05-18 16:54:02] trainer.py:2417 >> Instantaneous batch size per device = 2
159
+
160
+ [INFO|2025-05-18 16:54:02] trainer.py:2420 >> Total train batch size (w. parallel, distributed & accumulation) = 32
161
+
162
+ [INFO|2025-05-18 16:54:02] trainer.py:2421 >> Gradient Accumulation steps = 8
163
+
164
+ [INFO|2025-05-18 16:54:02] trainer.py:2422 >> Total optimization steps = 93
165
+
166
+ [INFO|2025-05-18 16:54:02] trainer.py:2423 >> Number of trainable parameters = 16,515,072
167
+
168
+ [INFO|2025-05-18 16:54:38] logging.py:143 >> {'loss': 2.5834, 'learning_rate': 4.9772e-05, 'epoch': 0.16, 'throughput': 843.60}
169
+
170
+ [INFO|2025-05-18 16:54:52] logging.py:143 >> {'loss': 2.0249, 'learning_rate': 4.8853e-05, 'epoch': 0.32, 'throughput': 1214.74}
171
+
172
+ [INFO|2025-05-18 16:55:08] logging.py:143 >> {'loss': 1.6448, 'learning_rate': 4.7256e-05, 'epoch': 0.48, 'throughput': 1395.41}
173
+
174
+ [INFO|2025-05-18 16:55:22] logging.py:143 >> {'loss': 1.5754, 'learning_rate': 4.5025e-05, 'epoch': 0.64, 'throughput': 1525.57}
175
+
176
+ [INFO|2025-05-18 16:55:36] logging.py:143 >> {'loss': 1.5325, 'learning_rate': 4.2224e-05, 'epoch': 0.80, 'throughput': 1608.49}
177
+
178
+ [INFO|2025-05-18 16:55:49] logging.py:143 >> {'loss': 1.5399, 'learning_rate': 3.8933e-05, 'epoch': 0.96, 'throughput': 1681.17}
179
+
180
+ [INFO|2025-05-18 16:56:01] logging.py:143 >> {'loss': 1.4496, 'learning_rate': 3.5246e-05, 'epoch': 1.10, 'throughput': 1726.10}
181
+
182
+ [INFO|2025-05-18 16:56:15] logging.py:143 >> {'loss': 1.4453, 'learning_rate': 3.1266e-05, 'epoch': 1.26, 'throughput': 1763.43}
183
+
184
+ [INFO|2025-05-18 16:56:30] logging.py:143 >> {'loss': 1.5063, 'learning_rate': 2.7109e-05, 'epoch': 1.42, 'throughput': 1802.17}
185
+
186
+ [INFO|2025-05-18 16:56:44] logging.py:143 >> {'loss': 1.5230, 'learning_rate': 2.2891e-05, 'epoch': 1.58, 'throughput': 1835.87}
187
+
188
+ [INFO|2025-05-18 16:56:58] logging.py:143 >> {'loss': 1.4390, 'learning_rate': 1.8734e-05, 'epoch': 1.74, 'throughput': 1861.70}
189
+
190
+ [INFO|2025-05-18 16:57:12] logging.py:143 >> {'loss': 1.4884, 'learning_rate': 1.4754e-05, 'epoch': 1.90, 'throughput': 1880.88}
191
+
192
+ [INFO|2025-05-18 16:57:23] logging.py:143 >> {'loss': 1.5448, 'learning_rate': 1.1067e-05, 'epoch': 2.03, 'throughput': 1886.27}
193
+
194
+ [INFO|2025-05-18 16:57:39] logging.py:143 >> {'loss': 1.4931, 'learning_rate': 7.7758e-06, 'epoch': 2.19, 'throughput': 1903.44}
195
+
196
+ [INFO|2025-05-18 16:57:52] logging.py:143 >> {'loss': 1.4863, 'learning_rate': 4.9750e-06, 'epoch': 2.35, 'throughput': 1913.31}
197
+
198
+ [INFO|2025-05-18 16:58:06] logging.py:143 >> {'loss': 1.4528, 'learning_rate': 2.7440e-06, 'epoch': 2.51, 'throughput': 1926.75}
199
+
200
+ [INFO|2025-05-18 16:58:21] logging.py:143 >> {'loss': 1.3916, 'learning_rate': 1.1465e-06, 'epoch': 2.67, 'throughput': 1933.94}
201
+
202
+ [INFO|2025-05-18 16:58:35] logging.py:143 >> {'loss': 1.4927, 'learning_rate': 2.2788e-07, 'epoch': 2.83, 'throughput': 1947.73}
203
+
204
+ [INFO|2025-05-18 16:58:43] trainer.py:3984 >> Saving model checkpoint to saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93
205
+
206
+ [INFO|2025-05-18 16:58:43] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
207
+
208
+ [INFO|2025-05-18 16:58:43] configuration_utils.py:765 >> Model config Qwen3Config {
209
+ "architectures": [
210
+ "Qwen3ForCausalLM"
211
+ ],
212
+ "attention_bias": false,
213
+ "attention_dropout": 0.0,
214
+ "bos_token_id": 151643,
215
+ "eos_token_id": 151645,
216
+ "head_dim": 128,
217
+ "hidden_act": "silu",
218
+ "hidden_size": 2560,
219
+ "initializer_range": 0.02,
220
+ "intermediate_size": 9728,
221
+ "max_position_embeddings": 40960,
222
+ "max_window_layers": 36,
223
+ "model_type": "qwen3",
224
+ "num_attention_heads": 32,
225
+ "num_hidden_layers": 36,
226
+ "num_key_value_heads": 8,
227
+ "rms_norm_eps": 1e-06,
228
+ "rope_scaling": null,
229
+ "rope_theta": 1000000,
230
+ "sliding_window": null,
231
+ "tie_word_embeddings": true,
232
+ "torch_dtype": "bfloat16",
233
+ "transformers_version": "4.51.3",
234
+ "use_cache": true,
235
+ "use_sliding_window": false,
236
+ "vocab_size": 151936
237
+ }
238
+
239
+
240
+ [INFO|2025-05-18 16:58:44] tokenization_utils_base.py:2510 >> tokenizer config file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93/tokenizer_config.json
241
+
242
+ [INFO|2025-05-18 16:58:44] tokenization_utils_base.py:2519 >> Special tokens file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93/special_tokens_map.json
243
+
244
+ [INFO|2025-05-18 16:58:45] trainer.py:2681 >>
245
+
246
+ Training completed. Do not forget to share your model on huggingface.co/models =)
247
+
248
+
249
+
250
+ [INFO|2025-05-18 16:58:45] trainer.py:3984 >> Saving model checkpoint to saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56
251
+
252
+ [INFO|2025-05-18 16:58:45] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
253
+
254
+ [INFO|2025-05-18 16:58:45] configuration_utils.py:765 >> Model config Qwen3Config {
255
+ "architectures": [
256
+ "Qwen3ForCausalLM"
257
+ ],
258
+ "attention_bias": false,
259
+ "attention_dropout": 0.0,
260
+ "bos_token_id": 151643,
261
+ "eos_token_id": 151645,
262
+ "head_dim": 128,
263
+ "hidden_act": "silu",
264
+ "hidden_size": 2560,
265
+ "initializer_range": 0.02,
266
+ "intermediate_size": 9728,
267
+ "max_position_embeddings": 40960,
268
+ "max_window_layers": 36,
269
+ "model_type": "qwen3",
270
+ "num_attention_heads": 32,
271
+ "num_hidden_layers": 36,
272
+ "num_key_value_heads": 8,
273
+ "rms_norm_eps": 1e-06,
274
+ "rope_scaling": null,
275
+ "rope_theta": 1000000,
276
+ "sliding_window": null,
277
+ "tie_word_embeddings": true,
278
+ "torch_dtype": "bfloat16",
279
+ "transformers_version": "4.51.3",
280
+ "use_cache": true,
281
+ "use_sliding_window": false,
282
+ "vocab_size": 151936
283
+ }
284
+
285
+
286
+ [INFO|2025-05-18 16:58:46] tokenization_utils_base.py:2510 >> tokenizer config file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/tokenizer_config.json
287
+
288
+ [INFO|2025-05-18 16:58:46] tokenization_utils_base.py:2519 >> Special tokens file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/special_tokens_map.json
289
+
290
+ [WARNING|2025-05-18 16:58:46] logging.py:148 >> No metric eval_loss to plot.
291
+
292
+ [WARNING|2025-05-18 16:58:46] logging.py:148 >> No metric eval_accuracy to plot.
293
+
294
+ [INFO|2025-05-18 16:58:46] modelcard.py:450 >> Dropping the following result as it does not have all the necessary fields:
295
+ {'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
296
+
.ipynb_checkpoints/special_tokens_map-checkpoint.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
+ }
.ipynb_checkpoints/tokenizer_config-checkpoint.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\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 {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first 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 {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "extra_special_tokens": {},
235
+ "model_max_length": 131072,
236
+ "pad_token": "<|endoftext|>",
237
+ "padding_side": "right",
238
+ "split_special_tokens": false,
239
+ "tokenizer_class": "Qwen2Tokenizer",
240
+ "unk_token": null
241
+ }
.ipynb_checkpoints/train_results-checkpoint.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.928,
3
+ "num_input_tokens_seen": 547088,
4
+ "total_flos": 1.1981315796631552e+16,
5
+ "train_loss": 1.5843523497222571,
6
+ "train_runtime": 282.8295,
7
+ "train_samples_per_second": 10.607,
8
+ "train_steps_per_second": 0.329
9
+ }
.ipynb_checkpoints/training_args-checkpoint.yaml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bf16: true
2
+ cutoff_len: 2048
3
+ dataset: alpaca_zh_demo
4
+ dataset_dir: LLaMA-Factory/data/
5
+ ddp_timeout: 180000000
6
+ do_train: true
7
+ finetuning_type: lora
8
+ flash_attn: auto
9
+ gradient_accumulation_steps: 8
10
+ include_num_input_tokens_seen: true
11
+ learning_rate: 5.0e-05
12
+ logging_steps: 5
13
+ lora_alpha: 16
14
+ lora_dropout: 0
15
+ lora_rank: 8
16
+ lora_target: all
17
+ lr_scheduler_type: cosine
18
+ max_grad_norm: 1.0
19
+ max_samples: 100000
20
+ model_name_or_path: Qwen/Qwen3-4B
21
+ num_train_epochs: 3.0
22
+ optim: adamw_torch
23
+ output_dir: saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56
24
+ packing: false
25
+ per_device_train_batch_size: 2
26
+ plot_loss: true
27
+ preprocessing_num_workers: 16
28
+ report_to: none
29
+ save_steps: 100
30
+ stage: sft
31
+ swanlab_mode: cloud
32
+ swanlab_project: llamafactory
33
+ template: qwen3
34
+ trust_remote_code: true
35
+ use_swanlab: true
36
+ warmup_steps: 0
.ipynb_checkpoints/training_loss-checkpoint.png ADDED
README.md ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ license: other
4
+ base_model: Qwen/Qwen3-4B
5
+ tags:
6
+ - llama-factory
7
+ - lora
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: train_2025-05-18-16-33-56
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
+ # train_2025-05-18-16-33-56
18
+
19
+ This model is a fine-tuned version of [Qwen/Qwen3-4B](https://huggingface.co/Qwen/Qwen3-4B) on the alpaca_zh_demo dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - distributed_type: multi-GPU
43
+ - num_devices: 2
44
+ - gradient_accumulation_steps: 8
45
+ - total_train_batch_size: 32
46
+ - total_eval_batch_size: 16
47
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
48
+ - lr_scheduler_type: cosine
49
+ - num_epochs: 3.0
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - PEFT 0.15.1
58
+ - Transformers 4.51.3
59
+ - Pytorch 2.1.0+cu118
60
+ - Datasets 3.2.0
61
+ - Tokenizers 0.21.1
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen3-4B",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 8,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "k_proj",
28
+ "o_proj",
29
+ "q_proj",
30
+ "up_proj",
31
+ "v_proj",
32
+ "gate_proj",
33
+ "down_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": false
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:459642fa53d4f0b543db682e7bb1866adc2cfd833f52c3dc83492947b8180ca1
3
+ size 66126768
added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.928,
3
+ "num_input_tokens_seen": 547088,
4
+ "total_flos": 1.1981315796631552e+16,
5
+ "train_loss": 1.5843523497222571,
6
+ "train_runtime": 282.8295,
7
+ "train_samples_per_second": 10.607,
8
+ "train_steps_per_second": 0.329
9
+ }
checkpoint-93/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen3-4B
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.15.1
checkpoint-93/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen3-4B",
5
+ "bias": "none",
6
+ "corda_config": null,
7
+ "eva_config": null,
8
+ "exclude_modules": null,
9
+ "fan_in_fan_out": false,
10
+ "inference_mode": true,
11
+ "init_lora_weights": true,
12
+ "layer_replication": null,
13
+ "layers_pattern": null,
14
+ "layers_to_transform": null,
15
+ "loftq_config": {},
16
+ "lora_alpha": 16,
17
+ "lora_bias": false,
18
+ "lora_dropout": 0,
19
+ "megatron_config": null,
20
+ "megatron_core": "megatron.core",
21
+ "modules_to_save": null,
22
+ "peft_type": "LORA",
23
+ "r": 8,
24
+ "rank_pattern": {},
25
+ "revision": null,
26
+ "target_modules": [
27
+ "k_proj",
28
+ "o_proj",
29
+ "q_proj",
30
+ "up_proj",
31
+ "v_proj",
32
+ "gate_proj",
33
+ "down_proj"
34
+ ],
35
+ "task_type": "CAUSAL_LM",
36
+ "trainable_token_indices": null,
37
+ "use_dora": false,
38
+ "use_rslora": false
39
+ }
checkpoint-93/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:459642fa53d4f0b543db682e7bb1866adc2cfd833f52c3dc83492947b8180ca1
3
+ size 66126768
checkpoint-93/added_tokens.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</think>": 151668,
3
+ "</tool_call>": 151658,
4
+ "</tool_response>": 151666,
5
+ "<think>": 151667,
6
+ "<tool_call>": 151657,
7
+ "<tool_response>": 151665,
8
+ "<|box_end|>": 151649,
9
+ "<|box_start|>": 151648,
10
+ "<|endoftext|>": 151643,
11
+ "<|file_sep|>": 151664,
12
+ "<|fim_middle|>": 151660,
13
+ "<|fim_pad|>": 151662,
14
+ "<|fim_prefix|>": 151659,
15
+ "<|fim_suffix|>": 151661,
16
+ "<|im_end|>": 151645,
17
+ "<|im_start|>": 151644,
18
+ "<|image_pad|>": 151655,
19
+ "<|object_ref_end|>": 151647,
20
+ "<|object_ref_start|>": 151646,
21
+ "<|quad_end|>": 151651,
22
+ "<|quad_start|>": 151650,
23
+ "<|repo_name|>": 151663,
24
+ "<|video_pad|>": 151656,
25
+ "<|vision_end|>": 151653,
26
+ "<|vision_pad|>": 151654,
27
+ "<|vision_start|>": 151652
28
+ }
checkpoint-93/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-93/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0db6036def3da432143952f14cdbfe7493465808b68336455af0f47ea7cc7711
3
+ size 132544890
checkpoint-93/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3971cc9e300ddfc20a1d825fdca90e3722b77abcc43ede089645d312e7e069cc
3
+ size 14512
checkpoint-93/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d05dc84075e8f7dd1191c36f3be9dda12073208e12f7d2cef433c38d6336774a
3
+ size 14512
checkpoint-93/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cae7b003796dc8f4400a4d098d5ca8afcb88f9c9aa5b0378e0df743bfdf493e
3
+ size 1064
checkpoint-93/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-93/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
checkpoint-93/tokenizer_config.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\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 {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first 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 {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "extra_special_tokens": {},
235
+ "model_max_length": 131072,
236
+ "pad_token": "<|endoftext|>",
237
+ "padding_side": "right",
238
+ "split_special_tokens": false,
239
+ "tokenizer_class": "Qwen2Tokenizer",
240
+ "unk_token": null
241
+ }
checkpoint-93/trainer_state.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.928,
6
+ "eval_steps": 500,
7
+ "global_step": 93,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.16,
14
+ "grad_norm": 3.637537956237793,
15
+ "learning_rate": 4.977212170395598e-05,
16
+ "loss": 2.5834,
17
+ "num_input_tokens_seen": 29984,
18
+ "step": 5
19
+ },
20
+ {
21
+ "epoch": 0.32,
22
+ "grad_norm": 1.3269447088241577,
23
+ "learning_rate": 4.885348141000122e-05,
24
+ "loss": 2.0249,
25
+ "num_input_tokens_seen": 60896,
26
+ "step": 10
27
+ },
28
+ {
29
+ "epoch": 0.48,
30
+ "grad_norm": 0.684715211391449,
31
+ "learning_rate": 4.725596127020879e-05,
32
+ "loss": 1.6448,
33
+ "num_input_tokens_seen": 91008,
34
+ "step": 15
35
+ },
36
+ {
37
+ "epoch": 0.64,
38
+ "grad_norm": 0.44713008403778076,
39
+ "learning_rate": 4.502502736173462e-05,
40
+ "loss": 1.5754,
41
+ "num_input_tokens_seen": 121056,
42
+ "step": 20
43
+ },
44
+ {
45
+ "epoch": 0.8,
46
+ "grad_norm": 0.31067565083503723,
47
+ "learning_rate": 4.222417297689217e-05,
48
+ "loss": 1.5325,
49
+ "num_input_tokens_seen": 150608,
50
+ "step": 25
51
+ },
52
+ {
53
+ "epoch": 0.96,
54
+ "grad_norm": 0.2663392126560211,
55
+ "learning_rate": 3.893311157806091e-05,
56
+ "loss": 1.5399,
57
+ "num_input_tokens_seen": 179936,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 1.096,
62
+ "grad_norm": 0.29055070877075195,
63
+ "learning_rate": 3.5245508119914687e-05,
64
+ "loss": 1.4496,
65
+ "num_input_tokens_seen": 204992,
66
+ "step": 35
67
+ },
68
+ {
69
+ "epoch": 1.256,
70
+ "grad_norm": 0.2754141688346863,
71
+ "learning_rate": 3.126631330646802e-05,
72
+ "loss": 1.4453,
73
+ "num_input_tokens_seen": 234704,
74
+ "step": 40
75
+ },
76
+ {
77
+ "epoch": 1.416,
78
+ "grad_norm": 0.23875507712364197,
79
+ "learning_rate": 2.7108776651076118e-05,
80
+ "loss": 1.5063,
81
+ "num_input_tokens_seen": 265392,
82
+ "step": 45
83
+ },
84
+ {
85
+ "epoch": 1.576,
86
+ "grad_norm": 0.2538706660270691,
87
+ "learning_rate": 2.2891223348923884e-05,
88
+ "loss": 1.523,
89
+ "num_input_tokens_seen": 296416,
90
+ "step": 50
91
+ },
92
+ {
93
+ "epoch": 1.736,
94
+ "grad_norm": 0.25537464022636414,
95
+ "learning_rate": 1.8733686693531985e-05,
96
+ "loss": 1.439,
97
+ "num_input_tokens_seen": 327520,
98
+ "step": 55
99
+ },
100
+ {
101
+ "epoch": 1.896,
102
+ "grad_norm": 0.27788516879081726,
103
+ "learning_rate": 1.475449188008532e-05,
104
+ "loss": 1.4884,
105
+ "num_input_tokens_seen": 357648,
106
+ "step": 60
107
+ },
108
+ {
109
+ "epoch": 2.032,
110
+ "grad_norm": 0.2592379152774811,
111
+ "learning_rate": 1.1066888421939093e-05,
112
+ "loss": 1.5448,
113
+ "num_input_tokens_seen": 379152,
114
+ "step": 65
115
+ },
116
+ {
117
+ "epoch": 2.192,
118
+ "grad_norm": 0.23788605630397797,
119
+ "learning_rate": 7.775827023107835e-06,
120
+ "loss": 1.4931,
121
+ "num_input_tokens_seen": 412208,
122
+ "step": 70
123
+ },
124
+ {
125
+ "epoch": 2.352,
126
+ "grad_norm": 0.28915899991989136,
127
+ "learning_rate": 4.9749726382653905e-06,
128
+ "loss": 1.4863,
129
+ "num_input_tokens_seen": 439808,
130
+ "step": 75
131
+ },
132
+ {
133
+ "epoch": 2.512,
134
+ "grad_norm": 0.2782565951347351,
135
+ "learning_rate": 2.7440387297912123e-06,
136
+ "loss": 1.4528,
137
+ "num_input_tokens_seen": 470048,
138
+ "step": 80
139
+ },
140
+ {
141
+ "epoch": 2.672,
142
+ "grad_norm": 0.3000349700450897,
143
+ "learning_rate": 1.1465185899987797e-06,
144
+ "loss": 1.3916,
145
+ "num_input_tokens_seen": 499456,
146
+ "step": 85
147
+ },
148
+ {
149
+ "epoch": 2.832,
150
+ "grad_norm": 0.24277131259441376,
151
+ "learning_rate": 2.27878296044029e-07,
152
+ "loss": 1.4927,
153
+ "num_input_tokens_seen": 531136,
154
+ "step": 90
155
+ }
156
+ ],
157
+ "logging_steps": 5,
158
+ "max_steps": 93,
159
+ "num_input_tokens_seen": 547088,
160
+ "num_train_epochs": 3,
161
+ "save_steps": 100,
162
+ "stateful_callbacks": {
163
+ "TrainerControl": {
164
+ "args": {
165
+ "should_epoch_stop": false,
166
+ "should_evaluate": false,
167
+ "should_log": false,
168
+ "should_save": true,
169
+ "should_training_stop": true
170
+ },
171
+ "attributes": {}
172
+ }
173
+ },
174
+ "total_flos": 1.1981315796631552e+16,
175
+ "train_batch_size": 2,
176
+ "trial_name": null,
177
+ "trial_params": null
178
+ }
checkpoint-93/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1eea7c59190af26a5b0784b7e06faa36ec1a790afd67a8f8488ad0b50262870b
3
+ size 5752
checkpoint-93/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
llamaboard_config.yaml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ top.booster: auto
2
+ top.checkpoint_path: []
3
+ top.finetuning_type: lora
4
+ top.model_name: Qwen3-4B-Instruct
5
+ top.quantization_bit: none
6
+ top.quantization_method: bnb
7
+ top.rope_scaling: none
8
+ top.template: qwen3
9
+ train.additional_target: ''
10
+ train.apollo_rank: 16
11
+ train.apollo_scale: 32
12
+ train.apollo_target: all
13
+ train.apollo_update_interval: 200
14
+ train.badam_mode: layer
15
+ train.badam_switch_interval: 50
16
+ train.badam_switch_mode: ascending
17
+ train.badam_update_ratio: 0.05
18
+ train.batch_size: 2
19
+ train.compute_type: bf16
20
+ train.create_new_adapter: false
21
+ train.cutoff_len: 2048
22
+ train.dataset:
23
+ - alpaca_zh_demo
24
+ train.dataset_dir: LLaMA-Factory/data/
25
+ train.ds_offload: false
26
+ train.ds_stage: none
27
+ train.extra_args: '{"optim": "adamw_torch"}'
28
+ train.freeze_extra_modules: ''
29
+ train.freeze_trainable_layers: 2
30
+ train.freeze_trainable_modules: all
31
+ train.galore_rank: 16
32
+ train.galore_scale: 2
33
+ train.galore_target: all
34
+ train.galore_update_interval: 200
35
+ train.gradient_accumulation_steps: 8
36
+ train.learning_rate: 5e-5
37
+ train.logging_steps: 5
38
+ train.lora_alpha: 16
39
+ train.lora_dropout: 0
40
+ train.lora_rank: 8
41
+ train.lora_target: ''
42
+ train.loraplus_lr_ratio: 0
43
+ train.lr_scheduler_type: cosine
44
+ train.mask_history: false
45
+ train.max_grad_norm: '1.0'
46
+ train.max_samples: '100000'
47
+ train.neat_packing: false
48
+ train.neftune_alpha: 0
49
+ train.num_train_epochs: '3.0'
50
+ train.packing: false
51
+ train.ppo_score_norm: false
52
+ train.ppo_whiten_rewards: false
53
+ train.pref_beta: 0.1
54
+ train.pref_ftx: 0
55
+ train.pref_loss: sigmoid
56
+ train.report_to:
57
+ - none
58
+ train.resize_vocab: false
59
+ train.reward_model: []
60
+ train.save_steps: 100
61
+ train.swanlab_api_key: ''
62
+ train.swanlab_link: ''
63
+ train.swanlab_mode: cloud
64
+ train.swanlab_project: llamafactory
65
+ train.swanlab_run_name: ''
66
+ train.swanlab_workspace: ''
67
+ train.train_on_prompt: false
68
+ train.training_stage: Supervised Fine-Tuning
69
+ train.use_apollo: false
70
+ train.use_badam: false
71
+ train.use_dora: false
72
+ train.use_galore: false
73
+ train.use_llama_pro: false
74
+ train.use_pissa: false
75
+ train.use_rslora: false
76
+ train.use_swanlab: true
77
+ train.val_size: 0
78
+ train.warmup_steps: 0
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
running_log.txt ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/vocab.json
2
+
3
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/merges.txt
4
+
5
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer.json
6
+
7
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file added_tokens.json from cache at None
8
+
9
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file special_tokens_map.json from cache at None
10
+
11
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer_config.json
12
+
13
+ [INFO|2025-05-18 16:53:56] tokenization_utils_base.py:2060 >> loading file chat_template.jinja from cache at None
14
+
15
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2323 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
16
+
17
+ [INFO|2025-05-18 16:53:57] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
18
+
19
+ [INFO|2025-05-18 16:53:57] configuration_utils.py:765 >> Model config Qwen3Config {
20
+ "architectures": [
21
+ "Qwen3ForCausalLM"
22
+ ],
23
+ "attention_bias": false,
24
+ "attention_dropout": 0.0,
25
+ "bos_token_id": 151643,
26
+ "eos_token_id": 151645,
27
+ "head_dim": 128,
28
+ "hidden_act": "silu",
29
+ "hidden_size": 2560,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 9728,
32
+ "max_position_embeddings": 40960,
33
+ "max_window_layers": 36,
34
+ "model_type": "qwen3",
35
+ "num_attention_heads": 32,
36
+ "num_hidden_layers": 36,
37
+ "num_key_value_heads": 8,
38
+ "rms_norm_eps": 1e-06,
39
+ "rope_scaling": null,
40
+ "rope_theta": 1000000,
41
+ "sliding_window": null,
42
+ "tie_word_embeddings": true,
43
+ "torch_dtype": "bfloat16",
44
+ "transformers_version": "4.51.3",
45
+ "use_cache": true,
46
+ "use_sliding_window": false,
47
+ "vocab_size": 151936
48
+ }
49
+
50
+
51
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/vocab.json
52
+
53
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/merges.txt
54
+
55
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer.json
56
+
57
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file added_tokens.json from cache at None
58
+
59
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file special_tokens_map.json from cache at None
60
+
61
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/tokenizer_config.json
62
+
63
+ [INFO|2025-05-18 16:53:57] tokenization_utils_base.py:2060 >> loading file chat_template.jinja from cache at None
64
+
65
+ [INFO|2025-05-18 16:53:58] tokenization_utils_base.py:2323 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
66
+
67
+ [INFO|2025-05-18 16:53:58] logging.py:143 >> Loading dataset alpaca_zh_demo.json...
68
+
69
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
70
+
71
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:765 >> Model config Qwen3Config {
72
+ "architectures": [
73
+ "Qwen3ForCausalLM"
74
+ ],
75
+ "attention_bias": false,
76
+ "attention_dropout": 0.0,
77
+ "bos_token_id": 151643,
78
+ "eos_token_id": 151645,
79
+ "head_dim": 128,
80
+ "hidden_act": "silu",
81
+ "hidden_size": 2560,
82
+ "initializer_range": 0.02,
83
+ "intermediate_size": 9728,
84
+ "max_position_embeddings": 40960,
85
+ "max_window_layers": 36,
86
+ "model_type": "qwen3",
87
+ "num_attention_heads": 32,
88
+ "num_hidden_layers": 36,
89
+ "num_key_value_heads": 8,
90
+ "rms_norm_eps": 1e-06,
91
+ "rope_scaling": null,
92
+ "rope_theta": 1000000,
93
+ "sliding_window": null,
94
+ "tie_word_embeddings": true,
95
+ "torch_dtype": "bfloat16",
96
+ "transformers_version": "4.51.3",
97
+ "use_cache": true,
98
+ "use_sliding_window": false,
99
+ "vocab_size": 151936
100
+ }
101
+
102
+
103
+ [INFO|2025-05-18 16:53:59] logging.py:143 >> KV cache is disabled during training.
104
+
105
+ [INFO|2025-05-18 16:53:59] modeling_utils.py:1124 >> loading weights file model.safetensors from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/model.safetensors.index.json
106
+
107
+ [INFO|2025-05-18 16:53:59] modeling_utils.py:2167 >> Instantiating Qwen3ForCausalLM model under default dtype torch.bfloat16.
108
+
109
+ [INFO|2025-05-18 16:53:59] configuration_utils.py:1142 >> Generate config GenerationConfig {
110
+ "bos_token_id": 151643,
111
+ "eos_token_id": 151645,
112
+ "use_cache": false
113
+ }
114
+
115
+
116
+ [INFO|2025-05-18 16:54:01] modeling_utils.py:4930 >> All model checkpoint weights were used when initializing Qwen3ForCausalLM.
117
+
118
+
119
+ [INFO|2025-05-18 16:54:01] modeling_utils.py:4938 >> All the weights of Qwen3ForCausalLM were initialized from the model checkpoint at Qwen/Qwen3-4B.
120
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen3ForCausalLM for predictions without further training.
121
+
122
+ [INFO|2025-05-18 16:54:01] configuration_utils.py:1097 >> loading configuration file generation_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/generation_config.json
123
+
124
+ [INFO|2025-05-18 16:54:01] configuration_utils.py:1142 >> Generate config GenerationConfig {
125
+ "bos_token_id": 151643,
126
+ "do_sample": true,
127
+ "eos_token_id": [
128
+ 151645,
129
+ 151643
130
+ ],
131
+ "pad_token_id": 151643,
132
+ "temperature": 0.6,
133
+ "top_k": 20,
134
+ "top_p": 0.95
135
+ }
136
+
137
+
138
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Gradient checkpointing enabled.
139
+
140
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Using vanilla attention implementation.
141
+
142
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Upcasting trainable params to float32.
143
+
144
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Fine-tuning method: LoRA
145
+
146
+ [INFO|2025-05-18 16:54:01] logging.py:143 >> Found linear modules: k_proj,o_proj,q_proj,up_proj,v_proj,gate_proj,down_proj
147
+
148
+ [INFO|2025-05-18 16:54:02] logging.py:143 >> trainable params: 16,515,072 || all params: 4,038,983,168 || trainable%: 0.4089
149
+
150
+ [INFO|2025-05-18 16:54:02] trainer.py:748 >> Using auto half precision backend
151
+
152
+ [INFO|2025-05-18 16:54:02] trainer.py:2414 >> ***** Running training *****
153
+
154
+ [INFO|2025-05-18 16:54:02] trainer.py:2415 >> Num examples = 1,000
155
+
156
+ [INFO|2025-05-18 16:54:02] trainer.py:2416 >> Num Epochs = 3
157
+
158
+ [INFO|2025-05-18 16:54:02] trainer.py:2417 >> Instantaneous batch size per device = 2
159
+
160
+ [INFO|2025-05-18 16:54:02] trainer.py:2420 >> Total train batch size (w. parallel, distributed & accumulation) = 32
161
+
162
+ [INFO|2025-05-18 16:54:02] trainer.py:2421 >> Gradient Accumulation steps = 8
163
+
164
+ [INFO|2025-05-18 16:54:02] trainer.py:2422 >> Total optimization steps = 93
165
+
166
+ [INFO|2025-05-18 16:54:02] trainer.py:2423 >> Number of trainable parameters = 16,515,072
167
+
168
+ [INFO|2025-05-18 16:54:38] logging.py:143 >> {'loss': 2.5834, 'learning_rate': 4.9772e-05, 'epoch': 0.16, 'throughput': 843.60}
169
+
170
+ [INFO|2025-05-18 16:54:52] logging.py:143 >> {'loss': 2.0249, 'learning_rate': 4.8853e-05, 'epoch': 0.32, 'throughput': 1214.74}
171
+
172
+ [INFO|2025-05-18 16:55:08] logging.py:143 >> {'loss': 1.6448, 'learning_rate': 4.7256e-05, 'epoch': 0.48, 'throughput': 1395.41}
173
+
174
+ [INFO|2025-05-18 16:55:22] logging.py:143 >> {'loss': 1.5754, 'learning_rate': 4.5025e-05, 'epoch': 0.64, 'throughput': 1525.57}
175
+
176
+ [INFO|2025-05-18 16:55:36] logging.py:143 >> {'loss': 1.5325, 'learning_rate': 4.2224e-05, 'epoch': 0.80, 'throughput': 1608.49}
177
+
178
+ [INFO|2025-05-18 16:55:49] logging.py:143 >> {'loss': 1.5399, 'learning_rate': 3.8933e-05, 'epoch': 0.96, 'throughput': 1681.17}
179
+
180
+ [INFO|2025-05-18 16:56:01] logging.py:143 >> {'loss': 1.4496, 'learning_rate': 3.5246e-05, 'epoch': 1.10, 'throughput': 1726.10}
181
+
182
+ [INFO|2025-05-18 16:56:15] logging.py:143 >> {'loss': 1.4453, 'learning_rate': 3.1266e-05, 'epoch': 1.26, 'throughput': 1763.43}
183
+
184
+ [INFO|2025-05-18 16:56:30] logging.py:143 >> {'loss': 1.5063, 'learning_rate': 2.7109e-05, 'epoch': 1.42, 'throughput': 1802.17}
185
+
186
+ [INFO|2025-05-18 16:56:44] logging.py:143 >> {'loss': 1.5230, 'learning_rate': 2.2891e-05, 'epoch': 1.58, 'throughput': 1835.87}
187
+
188
+ [INFO|2025-05-18 16:56:58] logging.py:143 >> {'loss': 1.4390, 'learning_rate': 1.8734e-05, 'epoch': 1.74, 'throughput': 1861.70}
189
+
190
+ [INFO|2025-05-18 16:57:12] logging.py:143 >> {'loss': 1.4884, 'learning_rate': 1.4754e-05, 'epoch': 1.90, 'throughput': 1880.88}
191
+
192
+ [INFO|2025-05-18 16:57:23] logging.py:143 >> {'loss': 1.5448, 'learning_rate': 1.1067e-05, 'epoch': 2.03, 'throughput': 1886.27}
193
+
194
+ [INFO|2025-05-18 16:57:39] logging.py:143 >> {'loss': 1.4931, 'learning_rate': 7.7758e-06, 'epoch': 2.19, 'throughput': 1903.44}
195
+
196
+ [INFO|2025-05-18 16:57:52] logging.py:143 >> {'loss': 1.4863, 'learning_rate': 4.9750e-06, 'epoch': 2.35, 'throughput': 1913.31}
197
+
198
+ [INFO|2025-05-18 16:58:06] logging.py:143 >> {'loss': 1.4528, 'learning_rate': 2.7440e-06, 'epoch': 2.51, 'throughput': 1926.75}
199
+
200
+ [INFO|2025-05-18 16:58:21] logging.py:143 >> {'loss': 1.3916, 'learning_rate': 1.1465e-06, 'epoch': 2.67, 'throughput': 1933.94}
201
+
202
+ [INFO|2025-05-18 16:58:35] logging.py:143 >> {'loss': 1.4927, 'learning_rate': 2.2788e-07, 'epoch': 2.83, 'throughput': 1947.73}
203
+
204
+ [INFO|2025-05-18 16:58:43] trainer.py:3984 >> Saving model checkpoint to saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93
205
+
206
+ [INFO|2025-05-18 16:58:43] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
207
+
208
+ [INFO|2025-05-18 16:58:43] configuration_utils.py:765 >> Model config Qwen3Config {
209
+ "architectures": [
210
+ "Qwen3ForCausalLM"
211
+ ],
212
+ "attention_bias": false,
213
+ "attention_dropout": 0.0,
214
+ "bos_token_id": 151643,
215
+ "eos_token_id": 151645,
216
+ "head_dim": 128,
217
+ "hidden_act": "silu",
218
+ "hidden_size": 2560,
219
+ "initializer_range": 0.02,
220
+ "intermediate_size": 9728,
221
+ "max_position_embeddings": 40960,
222
+ "max_window_layers": 36,
223
+ "model_type": "qwen3",
224
+ "num_attention_heads": 32,
225
+ "num_hidden_layers": 36,
226
+ "num_key_value_heads": 8,
227
+ "rms_norm_eps": 1e-06,
228
+ "rope_scaling": null,
229
+ "rope_theta": 1000000,
230
+ "sliding_window": null,
231
+ "tie_word_embeddings": true,
232
+ "torch_dtype": "bfloat16",
233
+ "transformers_version": "4.51.3",
234
+ "use_cache": true,
235
+ "use_sliding_window": false,
236
+ "vocab_size": 151936
237
+ }
238
+
239
+
240
+ [INFO|2025-05-18 16:58:44] tokenization_utils_base.py:2510 >> tokenizer config file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93/tokenizer_config.json
241
+
242
+ [INFO|2025-05-18 16:58:44] tokenization_utils_base.py:2519 >> Special tokens file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/checkpoint-93/special_tokens_map.json
243
+
244
+ [INFO|2025-05-18 16:58:45] trainer.py:2681 >>
245
+
246
+ Training completed. Do not forget to share your model on huggingface.co/models =)
247
+
248
+
249
+
250
+ [INFO|2025-05-18 16:58:45] trainer.py:3984 >> Saving model checkpoint to saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56
251
+
252
+ [INFO|2025-05-18 16:58:45] configuration_utils.py:693 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen3-4B/snapshots/82d62bb073771e7a1ea59435f548908540217d1f/config.json
253
+
254
+ [INFO|2025-05-18 16:58:45] configuration_utils.py:765 >> Model config Qwen3Config {
255
+ "architectures": [
256
+ "Qwen3ForCausalLM"
257
+ ],
258
+ "attention_bias": false,
259
+ "attention_dropout": 0.0,
260
+ "bos_token_id": 151643,
261
+ "eos_token_id": 151645,
262
+ "head_dim": 128,
263
+ "hidden_act": "silu",
264
+ "hidden_size": 2560,
265
+ "initializer_range": 0.02,
266
+ "intermediate_size": 9728,
267
+ "max_position_embeddings": 40960,
268
+ "max_window_layers": 36,
269
+ "model_type": "qwen3",
270
+ "num_attention_heads": 32,
271
+ "num_hidden_layers": 36,
272
+ "num_key_value_heads": 8,
273
+ "rms_norm_eps": 1e-06,
274
+ "rope_scaling": null,
275
+ "rope_theta": 1000000,
276
+ "sliding_window": null,
277
+ "tie_word_embeddings": true,
278
+ "torch_dtype": "bfloat16",
279
+ "transformers_version": "4.51.3",
280
+ "use_cache": true,
281
+ "use_sliding_window": false,
282
+ "vocab_size": 151936
283
+ }
284
+
285
+
286
+ [INFO|2025-05-18 16:58:46] tokenization_utils_base.py:2510 >> tokenizer config file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/tokenizer_config.json
287
+
288
+ [INFO|2025-05-18 16:58:46] tokenization_utils_base.py:2519 >> Special tokens file saved in saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56/special_tokens_map.json
289
+
290
+ [WARNING|2025-05-18 16:58:46] logging.py:148 >> No metric eval_loss to plot.
291
+
292
+ [WARNING|2025-05-18 16:58:46] logging.py:148 >> No metric eval_accuracy to plot.
293
+
294
+ [INFO|2025-05-18 16:58:46] modelcard.py:450 >> Dropping the following result as it does not have all the necessary fields:
295
+ {'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
296
+
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
+ }
swanlab_public_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "project_name": "llamafactory",
3
+ "version": "0.5.8",
4
+ "run_id": "run-20250518_165421-a3b1799d",
5
+ "swanlog_dir": "/workspace/swanlog",
6
+ "run_dir": "/workspace/swanlog/run-20250518_165421-a3b1799d",
7
+ "cloud": {
8
+ "project_name": "llamafactory",
9
+ "project_url": "https://swanlab.cn/@testchat/llamafactory",
10
+ "experiment_name": "swan-1",
11
+ "experiment_url": "https://swanlab.cn/@testchat/llamafactory/runs/152cf90opcdah8j8cm7ne"
12
+ }
13
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
3
+ size 11422654
tokenizer_config.json ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ }
213
+ },
214
+ "additional_special_tokens": [
215
+ "<|im_start|>",
216
+ "<|im_end|>",
217
+ "<|object_ref_start|>",
218
+ "<|object_ref_end|>",
219
+ "<|box_start|>",
220
+ "<|box_end|>",
221
+ "<|quad_start|>",
222
+ "<|quad_end|>",
223
+ "<|vision_start|>",
224
+ "<|vision_end|>",
225
+ "<|vision_pad|>",
226
+ "<|image_pad|>",
227
+ "<|video_pad|>"
228
+ ],
229
+ "bos_token": null,
230
+ "chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0].role == 'system' %}\n {{- messages[0].content + '\\n\\n' }}\n {%- endif %}\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 {%- endif %}\n{%- endif %}\n{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}\n{%- for message in messages[::-1] %}\n {%- set index = (messages|length - 1) - loop.index0 %}\n {%- if ns.multi_step_tool and message.role == \"user\" and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %}\n {%- set ns.multi_step_tool = false %}\n {%- set ns.last_query_index = index %}\n {%- endif %}\n{%- endfor %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {%- set content = message.content %}\n {%- set reasoning_content = '' %}\n {%- if message.reasoning_content is defined and message.reasoning_content is not none %}\n {%- set reasoning_content = message.reasoning_content %}\n {%- else %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>')[-1].lstrip('\\n') %}\n {%- set reasoning_content = message.content.split('</think>')[0].rstrip('\\n').split('<think>')[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n {%- if loop.index0 > ns.last_query_index %}\n {%- if loop.last or (not loop.last and reasoning_content) %}\n {{- '<|im_start|>' + message.role + '\\n<think>\\n' + reasoning_content.strip('\\n') + '\\n</think>\\n\\n' + content.lstrip('\\n') }}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- else %}\n {{- '<|im_start|>' + message.role + '\\n' + content }}\n {%- endif %}\n {%- if message.tool_calls %}\n {%- for tool_call in message.tool_calls %}\n {%- if (loop.first and content) or (not loop.first) %}\n {{- '\\n' }}\n {%- endif %}\n {%- if tool_call.function %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {%- if tool_call.arguments is string %}\n {{- tool_call.arguments }}\n {%- else %}\n {{- tool_call.arguments | tojson }}\n {%- endif %}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if loop.first 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 {%- if enable_thinking is defined and enable_thinking is false %}\n {{- '<think>\\n\\n</think>\\n\\n' }}\n {%- endif %}\n{%- endif %}",
231
+ "clean_up_tokenization_spaces": false,
232
+ "eos_token": "<|im_end|>",
233
+ "errors": "replace",
234
+ "extra_special_tokens": {},
235
+ "model_max_length": 131072,
236
+ "pad_token": "<|endoftext|>",
237
+ "padding_side": "right",
238
+ "split_special_tokens": false,
239
+ "tokenizer_class": "Qwen2Tokenizer",
240
+ "unk_token": null
241
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.928,
3
+ "num_input_tokens_seen": 547088,
4
+ "total_flos": 1.1981315796631552e+16,
5
+ "train_loss": 1.5843523497222571,
6
+ "train_runtime": 282.8295,
7
+ "train_samples_per_second": 10.607,
8
+ "train_steps_per_second": 0.329
9
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 93, "loss": 2.5834, "lr": 4.977212170395598e-05, "epoch": 0.16, "percentage": 5.38, "elapsed_time": "0:00:35", "remaining_time": "0:10:25", "throughput": 843.6, "total_tokens": 29984}
2
+ {"current_steps": 10, "total_steps": 93, "loss": 2.0249, "lr": 4.885348141000122e-05, "epoch": 0.32, "percentage": 10.75, "elapsed_time": "0:00:50", "remaining_time": "0:06:56", "throughput": 1214.74, "total_tokens": 60896}
3
+ {"current_steps": 15, "total_steps": 93, "loss": 1.6448, "lr": 4.725596127020879e-05, "epoch": 0.48, "percentage": 16.13, "elapsed_time": "0:01:05", "remaining_time": "0:05:39", "throughput": 1395.41, "total_tokens": 91008}
4
+ {"current_steps": 20, "total_steps": 93, "loss": 1.5754, "lr": 4.502502736173462e-05, "epoch": 0.64, "percentage": 21.51, "elapsed_time": "0:01:19", "remaining_time": "0:04:49", "throughput": 1525.57, "total_tokens": 121056}
5
+ {"current_steps": 25, "total_steps": 93, "loss": 1.5325, "lr": 4.222417297689217e-05, "epoch": 0.8, "percentage": 26.88, "elapsed_time": "0:01:33", "remaining_time": "0:04:14", "throughput": 1608.49, "total_tokens": 150608}
6
+ {"current_steps": 30, "total_steps": 93, "loss": 1.5399, "lr": 3.893311157806091e-05, "epoch": 0.96, "percentage": 32.26, "elapsed_time": "0:01:47", "remaining_time": "0:03:44", "throughput": 1681.17, "total_tokens": 179936}
7
+ {"current_steps": 35, "total_steps": 93, "loss": 1.4496, "lr": 3.5245508119914687e-05, "epoch": 1.096, "percentage": 37.63, "elapsed_time": "0:01:58", "remaining_time": "0:03:16", "throughput": 1726.1, "total_tokens": 204992}
8
+ {"current_steps": 40, "total_steps": 93, "loss": 1.4453, "lr": 3.126631330646802e-05, "epoch": 1.256, "percentage": 43.01, "elapsed_time": "0:02:13", "remaining_time": "0:02:56", "throughput": 1763.43, "total_tokens": 234704}
9
+ {"current_steps": 45, "total_steps": 93, "loss": 1.5063, "lr": 2.7108776651076118e-05, "epoch": 1.416, "percentage": 48.39, "elapsed_time": "0:02:27", "remaining_time": "0:02:37", "throughput": 1802.17, "total_tokens": 265392}
10
+ {"current_steps": 50, "total_steps": 93, "loss": 1.523, "lr": 2.2891223348923884e-05, "epoch": 1.576, "percentage": 53.76, "elapsed_time": "0:02:41", "remaining_time": "0:02:18", "throughput": 1835.87, "total_tokens": 296416}
11
+ {"current_steps": 55, "total_steps": 93, "loss": 1.439, "lr": 1.8733686693531985e-05, "epoch": 1.736, "percentage": 59.14, "elapsed_time": "0:02:55", "remaining_time": "0:02:01", "throughput": 1861.7, "total_tokens": 327520}
12
+ {"current_steps": 60, "total_steps": 93, "loss": 1.4884, "lr": 1.475449188008532e-05, "epoch": 1.896, "percentage": 64.52, "elapsed_time": "0:03:10", "remaining_time": "0:01:44", "throughput": 1880.88, "total_tokens": 357648}
13
+ {"current_steps": 65, "total_steps": 93, "loss": 1.5448, "lr": 1.1066888421939093e-05, "epoch": 2.032, "percentage": 69.89, "elapsed_time": "0:03:21", "remaining_time": "0:01:26", "throughput": 1886.27, "total_tokens": 379152}
14
+ {"current_steps": 70, "total_steps": 93, "loss": 1.4931, "lr": 7.775827023107835e-06, "epoch": 2.192, "percentage": 75.27, "elapsed_time": "0:03:36", "remaining_time": "0:01:11", "throughput": 1903.44, "total_tokens": 412208}
15
+ {"current_steps": 75, "total_steps": 93, "loss": 1.4863, "lr": 4.9749726382653905e-06, "epoch": 2.352, "percentage": 80.65, "elapsed_time": "0:03:49", "remaining_time": "0:00:55", "throughput": 1913.31, "total_tokens": 439808}
16
+ {"current_steps": 80, "total_steps": 93, "loss": 1.4528, "lr": 2.7440387297912123e-06, "epoch": 2.512, "percentage": 86.02, "elapsed_time": "0:04:03", "remaining_time": "0:00:39", "throughput": 1926.75, "total_tokens": 470048}
17
+ {"current_steps": 85, "total_steps": 93, "loss": 1.3916, "lr": 1.1465185899987797e-06, "epoch": 2.672, "percentage": 91.4, "elapsed_time": "0:04:18", "remaining_time": "0:00:24", "throughput": 1933.94, "total_tokens": 499456}
18
+ {"current_steps": 90, "total_steps": 93, "loss": 1.4927, "lr": 2.27878296044029e-07, "epoch": 2.832, "percentage": 96.77, "elapsed_time": "0:04:32", "remaining_time": "0:00:09", "throughput": 1947.73, "total_tokens": 531136}
19
+ {"current_steps": 93, "total_steps": 93, "epoch": 2.928, "percentage": 100.0, "elapsed_time": "0:04:42", "remaining_time": "0:00:00", "throughput": 1936.54, "total_tokens": 547088}
trainer_state.json ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.928,
6
+ "eval_steps": 500,
7
+ "global_step": 93,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "epoch": 0.16,
14
+ "grad_norm": 3.637537956237793,
15
+ "learning_rate": 4.977212170395598e-05,
16
+ "loss": 2.5834,
17
+ "num_input_tokens_seen": 29984,
18
+ "step": 5
19
+ },
20
+ {
21
+ "epoch": 0.32,
22
+ "grad_norm": 1.3269447088241577,
23
+ "learning_rate": 4.885348141000122e-05,
24
+ "loss": 2.0249,
25
+ "num_input_tokens_seen": 60896,
26
+ "step": 10
27
+ },
28
+ {
29
+ "epoch": 0.48,
30
+ "grad_norm": 0.684715211391449,
31
+ "learning_rate": 4.725596127020879e-05,
32
+ "loss": 1.6448,
33
+ "num_input_tokens_seen": 91008,
34
+ "step": 15
35
+ },
36
+ {
37
+ "epoch": 0.64,
38
+ "grad_norm": 0.44713008403778076,
39
+ "learning_rate": 4.502502736173462e-05,
40
+ "loss": 1.5754,
41
+ "num_input_tokens_seen": 121056,
42
+ "step": 20
43
+ },
44
+ {
45
+ "epoch": 0.8,
46
+ "grad_norm": 0.31067565083503723,
47
+ "learning_rate": 4.222417297689217e-05,
48
+ "loss": 1.5325,
49
+ "num_input_tokens_seen": 150608,
50
+ "step": 25
51
+ },
52
+ {
53
+ "epoch": 0.96,
54
+ "grad_norm": 0.2663392126560211,
55
+ "learning_rate": 3.893311157806091e-05,
56
+ "loss": 1.5399,
57
+ "num_input_tokens_seen": 179936,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 1.096,
62
+ "grad_norm": 0.29055070877075195,
63
+ "learning_rate": 3.5245508119914687e-05,
64
+ "loss": 1.4496,
65
+ "num_input_tokens_seen": 204992,
66
+ "step": 35
67
+ },
68
+ {
69
+ "epoch": 1.256,
70
+ "grad_norm": 0.2754141688346863,
71
+ "learning_rate": 3.126631330646802e-05,
72
+ "loss": 1.4453,
73
+ "num_input_tokens_seen": 234704,
74
+ "step": 40
75
+ },
76
+ {
77
+ "epoch": 1.416,
78
+ "grad_norm": 0.23875507712364197,
79
+ "learning_rate": 2.7108776651076118e-05,
80
+ "loss": 1.5063,
81
+ "num_input_tokens_seen": 265392,
82
+ "step": 45
83
+ },
84
+ {
85
+ "epoch": 1.576,
86
+ "grad_norm": 0.2538706660270691,
87
+ "learning_rate": 2.2891223348923884e-05,
88
+ "loss": 1.523,
89
+ "num_input_tokens_seen": 296416,
90
+ "step": 50
91
+ },
92
+ {
93
+ "epoch": 1.736,
94
+ "grad_norm": 0.25537464022636414,
95
+ "learning_rate": 1.8733686693531985e-05,
96
+ "loss": 1.439,
97
+ "num_input_tokens_seen": 327520,
98
+ "step": 55
99
+ },
100
+ {
101
+ "epoch": 1.896,
102
+ "grad_norm": 0.27788516879081726,
103
+ "learning_rate": 1.475449188008532e-05,
104
+ "loss": 1.4884,
105
+ "num_input_tokens_seen": 357648,
106
+ "step": 60
107
+ },
108
+ {
109
+ "epoch": 2.032,
110
+ "grad_norm": 0.2592379152774811,
111
+ "learning_rate": 1.1066888421939093e-05,
112
+ "loss": 1.5448,
113
+ "num_input_tokens_seen": 379152,
114
+ "step": 65
115
+ },
116
+ {
117
+ "epoch": 2.192,
118
+ "grad_norm": 0.23788605630397797,
119
+ "learning_rate": 7.775827023107835e-06,
120
+ "loss": 1.4931,
121
+ "num_input_tokens_seen": 412208,
122
+ "step": 70
123
+ },
124
+ {
125
+ "epoch": 2.352,
126
+ "grad_norm": 0.28915899991989136,
127
+ "learning_rate": 4.9749726382653905e-06,
128
+ "loss": 1.4863,
129
+ "num_input_tokens_seen": 439808,
130
+ "step": 75
131
+ },
132
+ {
133
+ "epoch": 2.512,
134
+ "grad_norm": 0.2782565951347351,
135
+ "learning_rate": 2.7440387297912123e-06,
136
+ "loss": 1.4528,
137
+ "num_input_tokens_seen": 470048,
138
+ "step": 80
139
+ },
140
+ {
141
+ "epoch": 2.672,
142
+ "grad_norm": 0.3000349700450897,
143
+ "learning_rate": 1.1465185899987797e-06,
144
+ "loss": 1.3916,
145
+ "num_input_tokens_seen": 499456,
146
+ "step": 85
147
+ },
148
+ {
149
+ "epoch": 2.832,
150
+ "grad_norm": 0.24277131259441376,
151
+ "learning_rate": 2.27878296044029e-07,
152
+ "loss": 1.4927,
153
+ "num_input_tokens_seen": 531136,
154
+ "step": 90
155
+ },
156
+ {
157
+ "epoch": 2.928,
158
+ "num_input_tokens_seen": 547088,
159
+ "step": 93,
160
+ "total_flos": 1.1981315796631552e+16,
161
+ "train_loss": 1.5843523497222571,
162
+ "train_runtime": 282.8295,
163
+ "train_samples_per_second": 10.607,
164
+ "train_steps_per_second": 0.329
165
+ }
166
+ ],
167
+ "logging_steps": 5,
168
+ "max_steps": 93,
169
+ "num_input_tokens_seen": 547088,
170
+ "num_train_epochs": 3,
171
+ "save_steps": 100,
172
+ "stateful_callbacks": {
173
+ "TrainerControl": {
174
+ "args": {
175
+ "should_epoch_stop": false,
176
+ "should_evaluate": false,
177
+ "should_log": false,
178
+ "should_save": true,
179
+ "should_training_stop": true
180
+ },
181
+ "attributes": {}
182
+ }
183
+ },
184
+ "total_flos": 1.1981315796631552e+16,
185
+ "train_batch_size": 2,
186
+ "trial_name": null,
187
+ "trial_params": null
188
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1eea7c59190af26a5b0784b7e06faa36ec1a790afd67a8f8488ad0b50262870b
3
+ size 5752
training_args.yaml ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bf16: true
2
+ cutoff_len: 2048
3
+ dataset: alpaca_zh_demo
4
+ dataset_dir: LLaMA-Factory/data/
5
+ ddp_timeout: 180000000
6
+ do_train: true
7
+ finetuning_type: lora
8
+ flash_attn: auto
9
+ gradient_accumulation_steps: 8
10
+ include_num_input_tokens_seen: true
11
+ learning_rate: 5.0e-05
12
+ logging_steps: 5
13
+ lora_alpha: 16
14
+ lora_dropout: 0
15
+ lora_rank: 8
16
+ lora_target: all
17
+ lr_scheduler_type: cosine
18
+ max_grad_norm: 1.0
19
+ max_samples: 100000
20
+ model_name_or_path: Qwen/Qwen3-4B
21
+ num_train_epochs: 3.0
22
+ optim: adamw_torch
23
+ output_dir: saves/Qwen3-4B-Instruct/lora/train_2025-05-18-16-33-56
24
+ packing: false
25
+ per_device_train_batch_size: 2
26
+ plot_loss: true
27
+ preprocessing_num_workers: 16
28
+ report_to: none
29
+ save_steps: 100
30
+ stage: sft
31
+ swanlab_mode: cloud
32
+ swanlab_project: llamafactory
33
+ template: qwen3
34
+ trust_remote_code: true
35
+ use_swanlab: true
36
+ warmup_steps: 0
training_loss.png ADDED
vocab.json ADDED
The diff for this file is too large to render. See raw diff