terry69 commited on
Commit
f81722c
1 Parent(s): af20151

Model save

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
9
+ model-index:
10
+ - name: tiny-llama-20p
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
+ # tiny-llama-20p
18
+
19
+ This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: nan
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - learning_rate: 0.0002
41
+ - train_batch_size: 14
42
+ - eval_batch_size: 1
43
+ - seed: 42
44
+ - distributed_type: multi-GPU
45
+ - num_devices: 4
46
+ - gradient_accumulation_steps: 4
47
+ - total_train_batch_size: 224
48
+ - total_eval_batch_size: 4
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: cosine
51
+ - lr_scheduler_warmup_ratio: 0.1
52
+ - num_epochs: 1
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss |
57
+ |:-------------:|:-----:|:----:|:---------------:|
58
+ | 1.0275 | 0.99 | 96 | nan |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - PEFT 0.7.1
64
+ - Transformers 4.39.0.dev0
65
+ - Pytorch 2.2.2+cu121
66
+ - Datasets 2.14.6
67
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 16,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 16,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "gate_proj",
23
+ "q_proj",
24
+ "down_proj",
25
+ "v_proj",
26
+ "o_proj",
27
+ "k_proj",
28
+ "up_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0665f8405a2c0e46f09ae327e51110211a09e75e81a3fb24e66c0fbc5223084b
3
+ size 25272360
all_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.99,
3
+ "train_loss": 1.0698106847703457,
4
+ "train_runtime": 2647.5008,
5
+ "train_samples": 21594,
6
+ "train_samples_per_second": 8.156,
7
+ "train_steps_per_second": 0.036
8
+ }
runs/Apr30_03-33-37_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448127.ip-172-31-69-60.ec2.internal.18260.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65fcffe30297aad68c13d6766805736cf4c6938c633ffb9aba1f7550c71341b2
3
+ size 4946
runs/Apr30_03-37-35_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448265.ip-172-31-69-60.ec2.internal.20637.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54463644680f37661e1c263aa663608be8489dd1f485a077624990e3cc8a3677
3
+ size 4738
runs/Apr30_03-38-29_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448315.ip-172-31-69-60.ec2.internal.21254.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:563803193818dd679c56a22761f528a780ecf5a5c5d0719ebd9b73b8cd0a2d94
3
+ size 5359
runs/Apr30_03-40-35_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448440.ip-172-31-69-60.ec2.internal.22451.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b62054282b7bce4fe11e67f7f45b3b8305332d5644e48da62fdbc5ae1497cc
3
+ size 5152
runs/Apr30_03-41-46_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448511.ip-172-31-69-60.ec2.internal.23313.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf96b20f7c179c0b2a127e64fe37989b648c7056c01d605db5c6d964d678e4ef
3
+ size 4945
runs/Apr30_03-42-46_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448572.ip-172-31-69-60.ec2.internal.24076.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f99fc04ede88bae4ed8eba4420425c6f6175c010897ce4ff8180391976fa22cf
3
+ size 4945
runs/Apr30_03-44-15_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448661.ip-172-31-69-60.ec2.internal.25121.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8bed6476f979bb42e126e641a36bddae61482795de45ccbeab286de5a821045
3
+ size 4945
runs/Apr30_03-45-03_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448708.ip-172-31-69-60.ec2.internal.25755.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf43a13e0f5e2871edd767d3841c672487ac88b973920c55457be74968d02eda
3
+ size 4946
runs/Apr30_03-46-24_ip-172-31-69-60.ec2.internal/events.out.tfevents.1714448790.ip-172-31-69-60.ec2.internal.26784.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee4451fa9a22e0277980eb8adce23474827ed8a0602a2b108344a0a174c47a21
3
+ size 9492
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 2048,
36
+ "pad_token": "</s>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.99,
3
+ "train_loss": 1.0698106847703457,
4
+ "train_runtime": 2647.5008,
5
+ "train_samples": 21594,
6
+ "train_samples_per_second": 8.156,
7
+ "train_steps_per_second": 0.036
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9948186528497409,
5
+ "eval_steps": 500,
6
+ "global_step": 96,
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.01,
13
+ "grad_norm": 0.407313588435244,
14
+ "learning_rate": 2e-05,
15
+ "loss": 1.4393,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.05,
20
+ "grad_norm": 0.44021568832651153,
21
+ "learning_rate": 0.0001,
22
+ "loss": 1.4151,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.1,
27
+ "grad_norm": 0.4536750312789675,
28
+ "learning_rate": 0.0002,
29
+ "loss": 1.3352,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.16,
34
+ "grad_norm": 0.18522669739061845,
35
+ "learning_rate": 0.00019833656768294662,
36
+ "loss": 1.1436,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.21,
41
+ "grad_norm": 0.11940000702730413,
42
+ "learning_rate": 0.0001934016108732548,
43
+ "loss": 1.0861,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.26,
48
+ "grad_norm": 0.11067706553060182,
49
+ "learning_rate": 0.00018535930890373466,
50
+ "loss": 1.0546,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.31,
55
+ "grad_norm": 0.08326696985890841,
56
+ "learning_rate": 0.0001744772182743782,
57
+ "loss": 1.0452,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.36,
62
+ "grad_norm": 0.07551662936007832,
63
+ "learning_rate": 0.00016111737140978494,
64
+ "loss": 1.0374,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.41,
69
+ "grad_norm": 0.06940303607219772,
70
+ "learning_rate": 0.00014572423233046386,
71
+ "loss": 1.0203,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.47,
76
+ "grad_norm": 0.0646380507229549,
77
+ "learning_rate": 0.00012880990993652377,
78
+ "loss": 1.0025,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.52,
83
+ "grad_norm": 0.06370005100951007,
84
+ "learning_rate": 0.00011093712083778746,
85
+ "loss": 1.0186,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.57,
90
+ "grad_norm": 0.06034880535670624,
91
+ "learning_rate": 9.270046853390925e-05,
92
+ "loss": 1.0299,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.62,
97
+ "grad_norm": 0.06311665876872108,
98
+ "learning_rate": 7.470666176083192e-05,
99
+ "loss": 1.0156,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.67,
104
+ "grad_norm": 0.06131237795687744,
105
+ "learning_rate": 5.755433011241851e-05,
106
+ "loss": 1.0074,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.73,
111
+ "grad_norm": 0.06522472527006118,
112
+ "learning_rate": 4.181410844420474e-05,
113
+ "loss": 1.0452,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.78,
118
+ "grad_norm": 0.06426335241789467,
119
+ "learning_rate": 2.800965262420043e-05,
120
+ "loss": 1.0238,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.83,
125
+ "grad_norm": 0.06843282189243624,
126
+ "learning_rate": 1.660021821101222e-05,
127
+ "loss": 1.0167,
128
+ "step": 80
129
+ },
130
+ {
131
+ "epoch": 0.88,
132
+ "grad_norm": 0.06475830798907048,
133
+ "learning_rate": 7.96538164308407e-06,
134
+ "loss": 1.0045,
135
+ "step": 85
136
+ },
137
+ {
138
+ "epoch": 0.93,
139
+ "grad_norm": 0.06274448627075681,
140
+ "learning_rate": 2.392412244407294e-06,
141
+ "loss": 1.0133,
142
+ "step": 90
143
+ },
144
+ {
145
+ "epoch": 0.98,
146
+ "grad_norm": 0.06343293325060437,
147
+ "learning_rate": 6.671516297606095e-08,
148
+ "loss": 1.0275,
149
+ "step": 95
150
+ },
151
+ {
152
+ "epoch": 0.99,
153
+ "eval_loss": NaN,
154
+ "eval_runtime": 238.4177,
155
+ "eval_samples_per_second": 9.689,
156
+ "eval_steps_per_second": 2.424,
157
+ "step": 96
158
+ },
159
+ {
160
+ "epoch": 0.99,
161
+ "step": 96,
162
+ "total_flos": 3308484214915072.0,
163
+ "train_loss": 1.0698106847703457,
164
+ "train_runtime": 2647.5008,
165
+ "train_samples_per_second": 8.156,
166
+ "train_steps_per_second": 0.036
167
+ }
168
+ ],
169
+ "logging_steps": 5,
170
+ "max_steps": 96,
171
+ "num_input_tokens_seen": 0,
172
+ "num_train_epochs": 1,
173
+ "save_steps": 100,
174
+ "total_flos": 3308484214915072.0,
175
+ "train_batch_size": 14,
176
+ "trial_name": null,
177
+ "trial_params": null
178
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92f31cebd24882b84aa4fdbdf0cf64186ae6aa3917df1d5758d5063b6fbbc7fc
3
+ size 6072