Upload folder using huggingface_hub
Browse files- README.md +58 -0
- adapter_config.json +29 -0
- adapter_model.safetensors +3 -0
- added_tokens.json +5 -0
- all_results.json +8 -0
- merges.txt +0 -0
- running_log.txt +162 -0
- special_tokens_map.json +20 -0
- tokenizer.json +0 -0
- tokenizer_config.json +44 -0
- train_results.json +8 -0
- trainer_config.yaml +27 -0
- trainer_log.jsonl +9 -0
- trainer_state.json +86 -0
- training_args.bin +3 -0
- vocab.json +0 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: other
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- llama-factory
|
6 |
+
- lora
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: Qwen/Qwen1.5-0.5B
|
9 |
+
model-index:
|
10 |
+
- name: train_2024-05-10-16-53-38
|
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_2024-05-10-16-53-38
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [Qwen/Qwen1.5-0.5B](https://huggingface.co/Qwen/Qwen1.5-0.5B) on the evy-dataset 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 |
+
- gradient_accumulation_steps: 8
|
43 |
+
- total_train_batch_size: 16
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: cosine
|
46 |
+
- num_epochs: 3.0
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
|
51 |
+
|
52 |
+
### Framework versions
|
53 |
+
|
54 |
+
- PEFT 0.10.0
|
55 |
+
- Transformers 4.40.2
|
56 |
+
- Pytorch 2.3.0
|
57 |
+
- Datasets 2.19.1
|
58 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "Qwen/Qwen1.5-0.5B",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 8,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"q_proj",
|
24 |
+
"v_proj"
|
25 |
+
],
|
26 |
+
"task_type": "CAUSAL_LM",
|
27 |
+
"use_dora": false,
|
28 |
+
"use_rslora": false
|
29 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2365a768b7143e0bf54dd9d8e62f07e885ed00c1d173de27048c93a481fb0b27
|
3 |
+
size 3158328
|
added_tokens.json
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"<|endoftext|>": 151643,
|
3 |
+
"<|im_end|>": 151645,
|
4 |
+
"<|im_start|>": 151644
|
5 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.847457627118644,
|
3 |
+
"total_flos": 285618906316800.0,
|
4 |
+
"train_loss": 2.7561378251938593,
|
5 |
+
"train_runtime": 901.2566,
|
6 |
+
"train_samples_per_second": 0.782,
|
7 |
+
"train_steps_per_second": 0.047
|
8 |
+
}
|
merges.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
running_log.txt
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file vocab.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/vocab.json
|
2 |
+
|
3 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file merges.txt from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/merges.txt
|
4 |
+
|
5 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file tokenizer.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/tokenizer.json
|
6 |
+
|
7 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file added_tokens.json from cache at None
|
8 |
+
|
9 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file special_tokens_map.json from cache at None
|
10 |
+
|
11 |
+
05/10/2024 16:54:21 - INFO - transformers.tokenization_utils_base - loading file tokenizer_config.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/tokenizer_config.json
|
12 |
+
|
13 |
+
05/10/2024 16:54:21 - WARNING - transformers.tokenization_utils_base - Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
|
14 |
+
|
15 |
+
05/10/2024 16:54:21 - INFO - llmtuner.data.loader - Loading dataset joshcarp/evy-dataset...
|
16 |
+
|
17 |
+
05/10/2024 16:54:23 - INFO - transformers.configuration_utils - loading configuration file config.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/config.json
|
18 |
+
|
19 |
+
05/10/2024 16:54:23 - INFO - transformers.configuration_utils - Model config Qwen2Config {
|
20 |
+
"_name_or_path": "Qwen/Qwen1.5-0.5B",
|
21 |
+
"architectures": [
|
22 |
+
"Qwen2ForCausalLM"
|
23 |
+
],
|
24 |
+
"attention_dropout": 0.0,
|
25 |
+
"bos_token_id": 151643,
|
26 |
+
"eos_token_id": 151643,
|
27 |
+
"hidden_act": "silu",
|
28 |
+
"hidden_size": 1024,
|
29 |
+
"initializer_range": 0.02,
|
30 |
+
"intermediate_size": 2816,
|
31 |
+
"max_position_embeddings": 32768,
|
32 |
+
"max_window_layers": 21,
|
33 |
+
"model_type": "qwen2",
|
34 |
+
"num_attention_heads": 16,
|
35 |
+
"num_hidden_layers": 24,
|
36 |
+
"num_key_value_heads": 16,
|
37 |
+
"rms_norm_eps": 1e-06,
|
38 |
+
"rope_theta": 1000000.0,
|
39 |
+
"sliding_window": 32768,
|
40 |
+
"tie_word_embeddings": true,
|
41 |
+
"torch_dtype": "bfloat16",
|
42 |
+
"transformers_version": "4.40.2",
|
43 |
+
"use_cache": true,
|
44 |
+
"use_sliding_window": false,
|
45 |
+
"vocab_size": 151936
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
05/10/2024 16:55:38 - INFO - transformers.modeling_utils - loading weights file model.safetensors from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/model.safetensors
|
50 |
+
|
51 |
+
05/10/2024 16:55:38 - INFO - transformers.modeling_utils - Instantiating Qwen2ForCausalLM model under default dtype torch.float32.
|
52 |
+
|
53 |
+
05/10/2024 16:55:38 - INFO - transformers.generation.configuration_utils - Generate config GenerationConfig {
|
54 |
+
"bos_token_id": 151643,
|
55 |
+
"eos_token_id": 151643,
|
56 |
+
"use_cache": false
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
05/10/2024 16:55:40 - INFO - transformers.modeling_utils - All model checkpoint weights were used when initializing Qwen2ForCausalLM.
|
61 |
+
|
62 |
+
|
63 |
+
05/10/2024 16:55:40 - INFO - transformers.modeling_utils - All the weights of Qwen2ForCausalLM were initialized from the model checkpoint at Qwen/Qwen1.5-0.5B.
|
64 |
+
If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2ForCausalLM for predictions without further training.
|
65 |
+
|
66 |
+
05/10/2024 16:55:40 - INFO - transformers.generation.configuration_utils - loading configuration file generation_config.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/generation_config.json
|
67 |
+
|
68 |
+
05/10/2024 16:55:40 - INFO - transformers.generation.configuration_utils - Generate config GenerationConfig {
|
69 |
+
"bos_token_id": 151643,
|
70 |
+
"eos_token_id": 151643,
|
71 |
+
"max_new_tokens": 2048
|
72 |
+
}
|
73 |
+
|
74 |
+
|
75 |
+
05/10/2024 16:55:40 - INFO - llmtuner.model.utils.checkpointing - Gradient checkpointing enabled.
|
76 |
+
|
77 |
+
05/10/2024 16:55:40 - INFO - llmtuner.model.utils.attention - Using torch SDPA for faster training and inference.
|
78 |
+
|
79 |
+
05/10/2024 16:55:40 - INFO - llmtuner.model.adapter - Fine-tuning method: LoRA
|
80 |
+
|
81 |
+
05/10/2024 16:55:40 - INFO - llmtuner.model.loader - trainable params: 786432 || all params: 464774144 || trainable%: 0.1692
|
82 |
+
|
83 |
+
05/10/2024 16:55:40 - INFO - transformers.trainer - You have loaded a model on multiple GPUs. `is_model_parallel` attribute will be force-set to `True` to avoid any unexpected behavior such as device placement mismatching.
|
84 |
+
|
85 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - ***** Running training *****
|
86 |
+
|
87 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Num examples = 235
|
88 |
+
|
89 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Num Epochs = 3
|
90 |
+
|
91 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Instantaneous batch size per device = 2
|
92 |
+
|
93 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Total train batch size (w. parallel, distributed & accumulation) = 16
|
94 |
+
|
95 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Gradient Accumulation steps = 8
|
96 |
+
|
97 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Total optimization steps = 42
|
98 |
+
|
99 |
+
05/10/2024 16:55:41 - INFO - transformers.trainer - Number of trainable parameters = 786,432
|
100 |
+
|
101 |
+
05/10/2024 16:56:35 - INFO - llmtuner.extras.callbacks - {'loss': 3.1521, 'learning_rate': 4.8272e-05, 'epoch': 0.34}
|
102 |
+
|
103 |
+
05/10/2024 16:58:24 - INFO - llmtuner.extras.callbacks - {'loss': 2.7178, 'learning_rate': 4.3326e-05, 'epoch': 0.68}
|
104 |
+
|
105 |
+
05/10/2024 17:00:15 - INFO - llmtuner.extras.callbacks - {'loss': 2.7124, 'learning_rate': 3.5847e-05, 'epoch': 1.02}
|
106 |
+
|
107 |
+
05/10/2024 17:01:32 - INFO - llmtuner.extras.callbacks - {'loss': 3.0056, 'learning_rate': 2.6868e-05, 'epoch': 1.36}
|
108 |
+
|
109 |
+
05/10/2024 17:03:03 - INFO - llmtuner.extras.callbacks - {'loss': 2.6855, 'learning_rate': 1.7631e-05, 'epoch': 1.69}
|
110 |
+
|
111 |
+
05/10/2024 17:06:33 - INFO - llmtuner.extras.callbacks - {'loss': 2.3657, 'learning_rate': 9.4128e-06, 'epoch': 2.03}
|
112 |
+
|
113 |
+
05/10/2024 17:08:15 - INFO - llmtuner.extras.callbacks - {'loss': 2.5569, 'learning_rate': 3.3494e-06, 'epoch': 2.37}
|
114 |
+
|
115 |
+
05/10/2024 17:10:03 - INFO - llmtuner.extras.callbacks - {'loss': 2.9284, 'learning_rate': 2.7923e-07, 'epoch': 2.71}
|
116 |
+
|
117 |
+
05/10/2024 17:10:42 - INFO - transformers.trainer -
|
118 |
+
|
119 |
+
Training completed. Do not forget to share your model on huggingface.co/models =)
|
120 |
+
|
121 |
+
|
122 |
+
|
123 |
+
05/10/2024 17:10:42 - INFO - transformers.trainer - Saving model checkpoint to saves/Qwen1.5-0.5B/lora/train_2024-05-10-16-53-38
|
124 |
+
|
125 |
+
05/10/2024 17:10:42 - INFO - transformers.configuration_utils - loading configuration file config.json from cache at /Users/joshcarp/.cache/huggingface/hub/models--Qwen--Qwen1.5-0.5B/snapshots/8f445e3628f3500ee69f24e1303c9f10f5342a39/config.json
|
126 |
+
|
127 |
+
05/10/2024 17:10:42 - INFO - transformers.configuration_utils - Model config Qwen2Config {
|
128 |
+
"architectures": [
|
129 |
+
"Qwen2ForCausalLM"
|
130 |
+
],
|
131 |
+
"attention_dropout": 0.0,
|
132 |
+
"bos_token_id": 151643,
|
133 |
+
"eos_token_id": 151643,
|
134 |
+
"hidden_act": "silu",
|
135 |
+
"hidden_size": 1024,
|
136 |
+
"initializer_range": 0.02,
|
137 |
+
"intermediate_size": 2816,
|
138 |
+
"max_position_embeddings": 32768,
|
139 |
+
"max_window_layers": 21,
|
140 |
+
"model_type": "qwen2",
|
141 |
+
"num_attention_heads": 16,
|
142 |
+
"num_hidden_layers": 24,
|
143 |
+
"num_key_value_heads": 16,
|
144 |
+
"rms_norm_eps": 1e-06,
|
145 |
+
"rope_theta": 1000000.0,
|
146 |
+
"sliding_window": 32768,
|
147 |
+
"tie_word_embeddings": true,
|
148 |
+
"torch_dtype": "bfloat16",
|
149 |
+
"transformers_version": "4.40.2",
|
150 |
+
"use_cache": true,
|
151 |
+
"use_sliding_window": false,
|
152 |
+
"vocab_size": 151936
|
153 |
+
}
|
154 |
+
|
155 |
+
|
156 |
+
05/10/2024 17:10:42 - INFO - transformers.tokenization_utils_base - tokenizer config file saved in saves/Qwen1.5-0.5B/lora/train_2024-05-10-16-53-38/tokenizer_config.json
|
157 |
+
|
158 |
+
05/10/2024 17:10:42 - INFO - transformers.tokenization_utils_base - Special tokens file saved in saves/Qwen1.5-0.5B/lora/train_2024-05-10-16-53-38/special_tokens_map.json
|
159 |
+
|
160 |
+
05/10/2024 17:10:42 - INFO - transformers.modelcard - Dropping the following result as it does not have all the necessary fields:
|
161 |
+
{'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
|
162 |
+
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<|im_start|>",
|
4 |
+
"<|im_end|>"
|
5 |
+
],
|
6 |
+
"eos_token": {
|
7 |
+
"content": "<|endoftext|>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"pad_token": {
|
14 |
+
"content": "<|endoftext|>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
}
|
20 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"151643": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": false,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
},
|
12 |
+
"151644": {
|
13 |
+
"content": "<|im_start|>",
|
14 |
+
"lstrip": false,
|
15 |
+
"normalized": false,
|
16 |
+
"rstrip": false,
|
17 |
+
"single_word": false,
|
18 |
+
"special": true
|
19 |
+
},
|
20 |
+
"151645": {
|
21 |
+
"content": "<|im_end|>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false,
|
26 |
+
"special": true
|
27 |
+
}
|
28 |
+
},
|
29 |
+
"additional_special_tokens": [
|
30 |
+
"<|im_start|>",
|
31 |
+
"<|im_end|>"
|
32 |
+
],
|
33 |
+
"bos_token": null,
|
34 |
+
"chat_template": "{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ system_message + '\\n' }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ 'Human: ' + content + '\\nAssistant: ' }}{% elif message['role'] == 'assistant' %}{{ content + '<|endoftext|>' + '\\n' }}{% endif %}{% endfor %}",
|
35 |
+
"clean_up_tokenization_spaces": false,
|
36 |
+
"eos_token": "<|endoftext|>",
|
37 |
+
"errors": "replace",
|
38 |
+
"model_max_length": 32768,
|
39 |
+
"pad_token": "<|endoftext|>",
|
40 |
+
"padding_side": "right",
|
41 |
+
"split_special_tokens": false,
|
42 |
+
"tokenizer_class": "Qwen2Tokenizer",
|
43 |
+
"unk_token": null
|
44 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 2.847457627118644,
|
3 |
+
"total_flos": 285618906316800.0,
|
4 |
+
"train_loss": 2.7561378251938593,
|
5 |
+
"train_runtime": 901.2566,
|
6 |
+
"train_samples_per_second": 0.782,
|
7 |
+
"train_steps_per_second": 0.047
|
8 |
+
}
|
trainer_config.yaml
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cutoff_len: 1024
|
2 |
+
dataset: evy-dataset
|
3 |
+
dataset_dir: data
|
4 |
+
do_train: true
|
5 |
+
finetuning_type: lora
|
6 |
+
flash_attn: auto
|
7 |
+
gradient_accumulation_steps: 8
|
8 |
+
learning_rate: 5.0e-05
|
9 |
+
logging_steps: 5
|
10 |
+
lora_alpha: 16
|
11 |
+
lora_dropout: 0
|
12 |
+
lora_rank: 8
|
13 |
+
lora_target: q_proj,v_proj
|
14 |
+
lr_scheduler_type: cosine
|
15 |
+
max_grad_norm: 1.0
|
16 |
+
max_samples: 100000
|
17 |
+
model_name_or_path: Qwen/Qwen1.5-0.5B
|
18 |
+
num_train_epochs: 3.0
|
19 |
+
optim: adamw_torch
|
20 |
+
output_dir: saves/Qwen1.5-0.5B/lora/train_2024-05-10-16-53-38
|
21 |
+
packing: false
|
22 |
+
per_device_train_batch_size: 2
|
23 |
+
report_to: none
|
24 |
+
save_steps: 100
|
25 |
+
stage: sft
|
26 |
+
template: default
|
27 |
+
warmup_steps: 0
|
trainer_log.jsonl
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"current_steps": 5, "total_steps": 42, "loss": 3.1521, "learning_rate": 4.827184371610511e-05, "epoch": 0.3389830508474576, "percentage": 11.9, "elapsed_time": "0:00:54", "remaining_time": "0:06:41"}
|
2 |
+
{"current_steps": 10, "total_steps": 42, "loss": 2.7178, "learning_rate": 4.332629679574566e-05, "epoch": 0.6779661016949152, "percentage": 23.81, "elapsed_time": "0:02:43", "remaining_time": "0:08:42"}
|
3 |
+
{"current_steps": 15, "total_steps": 42, "loss": 2.7124, "learning_rate": 3.5847093477938956e-05, "epoch": 1.0169491525423728, "percentage": 35.71, "elapsed_time": "0:04:34", "remaining_time": "0:08:13"}
|
4 |
+
{"current_steps": 20, "total_steps": 42, "loss": 3.0056, "learning_rate": 2.686825233966061e-05, "epoch": 1.3559322033898304, "percentage": 47.62, "elapsed_time": "0:05:51", "remaining_time": "0:06:26"}
|
5 |
+
{"current_steps": 25, "total_steps": 42, "loss": 2.6855, "learning_rate": 1.7631120639727393e-05, "epoch": 1.694915254237288, "percentage": 59.52, "elapsed_time": "0:07:22", "remaining_time": "0:05:00"}
|
6 |
+
{"current_steps": 30, "total_steps": 42, "loss": 2.3657, "learning_rate": 9.412754953531663e-06, "epoch": 2.0338983050847457, "percentage": 71.43, "elapsed_time": "0:10:52", "remaining_time": "0:04:21"}
|
7 |
+
{"current_steps": 35, "total_steps": 42, "loss": 2.5569, "learning_rate": 3.3493649053890326e-06, "epoch": 2.3728813559322033, "percentage": 83.33, "elapsed_time": "0:12:34", "remaining_time": "0:02:30"}
|
8 |
+
{"current_steps": 40, "total_steps": 42, "loss": 2.9284, "learning_rate": 2.7922934437178695e-07, "epoch": 2.711864406779661, "percentage": 95.24, "elapsed_time": "0:14:22", "remaining_time": "0:00:43"}
|
9 |
+
{"current_steps": 42, "total_steps": 42, "epoch": 2.847457627118644, "percentage": 100.0, "elapsed_time": "0:15:01", "remaining_time": "0:00:00"}
|
trainer_state.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 2.847457627118644,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 42,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.3389830508474576,
|
13 |
+
"grad_norm": 1.8727585077285767,
|
14 |
+
"learning_rate": 4.827184371610511e-05,
|
15 |
+
"loss": 3.1521,
|
16 |
+
"step": 5
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.6779661016949152,
|
20 |
+
"grad_norm": 1.4997955560684204,
|
21 |
+
"learning_rate": 4.332629679574566e-05,
|
22 |
+
"loss": 2.7178,
|
23 |
+
"step": 10
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 1.0169491525423728,
|
27 |
+
"grad_norm": 1.1865301132202148,
|
28 |
+
"learning_rate": 3.5847093477938956e-05,
|
29 |
+
"loss": 2.7124,
|
30 |
+
"step": 15
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 1.3559322033898304,
|
34 |
+
"grad_norm": 1.8665063381195068,
|
35 |
+
"learning_rate": 2.686825233966061e-05,
|
36 |
+
"loss": 3.0056,
|
37 |
+
"step": 20
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 1.694915254237288,
|
41 |
+
"grad_norm": 1.1309840679168701,
|
42 |
+
"learning_rate": 1.7631120639727393e-05,
|
43 |
+
"loss": 2.6855,
|
44 |
+
"step": 25
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 2.0338983050847457,
|
48 |
+
"grad_norm": 0.8969791531562805,
|
49 |
+
"learning_rate": 9.412754953531663e-06,
|
50 |
+
"loss": 2.3657,
|
51 |
+
"step": 30
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 2.3728813559322033,
|
55 |
+
"grad_norm": 1.163950800895691,
|
56 |
+
"learning_rate": 3.3493649053890326e-06,
|
57 |
+
"loss": 2.5569,
|
58 |
+
"step": 35
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 2.711864406779661,
|
62 |
+
"grad_norm": 2.0787620544433594,
|
63 |
+
"learning_rate": 2.7922934437178695e-07,
|
64 |
+
"loss": 2.9284,
|
65 |
+
"step": 40
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 2.847457627118644,
|
69 |
+
"step": 42,
|
70 |
+
"total_flos": 285618906316800.0,
|
71 |
+
"train_loss": 2.7561378251938593,
|
72 |
+
"train_runtime": 901.2566,
|
73 |
+
"train_samples_per_second": 0.782,
|
74 |
+
"train_steps_per_second": 0.047
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"logging_steps": 5,
|
78 |
+
"max_steps": 42,
|
79 |
+
"num_input_tokens_seen": 0,
|
80 |
+
"num_train_epochs": 3,
|
81 |
+
"save_steps": 100,
|
82 |
+
"total_flos": 285618906316800.0,
|
83 |
+
"train_batch_size": 2,
|
84 |
+
"trial_name": null,
|
85 |
+
"trial_params": null
|
86 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:727b71cc8ae77598a66fb72b785a6060cac8a4554eefb1cb6b50b070e332e56b
|
3 |
+
size 5176
|
vocab.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|