WangXFng commited on
Commit
8417383
1 Parent(s): 1ccbb1d

Model save

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.2-3B-Instruct
3
+ library_name: peft
4
+ license: llama3.2
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: Instruments-16bit-3B-4Epoch
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # Instruments-16bit-3B-4Epoch
16
+
17
+ This model is a fine-tuned version of [meta-llama/Llama-3.2-3B-Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct) on an unknown dataset.
18
+
19
+ ## Model description
20
+
21
+ More information needed
22
+
23
+ ## Intended uses & limitations
24
+
25
+ More information needed
26
+
27
+ ## Training and evaluation data
28
+
29
+ More information needed
30
+
31
+ ## Training procedure
32
+
33
+ ### Training hyperparameters
34
+
35
+ The following hyperparameters were used during training:
36
+ - learning_rate: 0.0001
37
+ - train_batch_size: 4
38
+ - eval_batch_size: 8
39
+ - seed: 42
40
+ - gradient_accumulation_steps: 16
41
+ - total_train_batch_size: 64
42
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
43
+ - lr_scheduler_type: linear
44
+ - lr_scheduler_warmup_steps: 2
45
+ - num_epochs: 4
46
+
47
+ ### Training results
48
+
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - PEFT 0.13.2
54
+ - Transformers 4.45.2
55
+ - Pytorch 2.4.1
56
+ - Tokenizers 0.20.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "meta-llama/Llama-3.2-3B-Instruct",
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": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "q_proj",
24
+ "o_proj",
25
+ "v_proj",
26
+ "gate_proj",
27
+ "up_proj",
28
+ "k_proj",
29
+ "down_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ffedf39ab0597bf940bb98f1009ed114ebfc7b401e0c2d440df3c5d27932e69
3
+ size 1684597880
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "eos_token_id": [
9
+ 128001,
10
+ 128008,
11
+ 128009
12
+ ],
13
+ "head_dim": 128,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 3072,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 8192,
18
+ "max_position_embeddings": 131072,
19
+ "mlp_bias": false,
20
+ "model_type": "llama",
21
+ "num_attention_heads": 24,
22
+ "num_hidden_layers": 28,
23
+ "num_key_value_heads": 8,
24
+ "pretraining_tp": 1,
25
+ "rms_norm_eps": 1e-05,
26
+ "rope_scaling": {
27
+ "factor": 32.0,
28
+ "high_freq_factor": 4.0,
29
+ "low_freq_factor": 1.0,
30
+ "original_max_position_embeddings": 8192,
31
+ "rope_type": "llama3"
32
+ },
33
+ "rope_theta": 500000.0,
34
+ "tie_word_embeddings": true,
35
+ "torch_dtype": "bfloat16",
36
+ "transformers_version": "4.45.2",
37
+ "use_cache": true,
38
+ "vocab_size": 129174
39
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|begin_of_text|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|eot_id|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "!"
17
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cdb5a41c4ff365aaf322d31b46b6ce2c9f8493fa398bd5ad4fbe6179ebfa53e
3
+ size 17378691
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
trainer_state.json ADDED
@@ -0,0 +1,266 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 4.0,
5
+ "eval_steps": 500,
6
+ "global_step": 8240,
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.12135922330097088,
13
+ "grad_norm": 1.0393857955932617,
14
+ "learning_rate": 9.698956057295461e-05,
15
+ "loss": 1.1954,
16
+ "step": 250
17
+ },
18
+ {
19
+ "epoch": 0.24271844660194175,
20
+ "grad_norm": 0.9956526756286621,
21
+ "learning_rate": 9.395484340859432e-05,
22
+ "loss": 0.6506,
23
+ "step": 500
24
+ },
25
+ {
26
+ "epoch": 0.3640776699029126,
27
+ "grad_norm": 0.8538560271263123,
28
+ "learning_rate": 9.092012624423404e-05,
29
+ "loss": 0.551,
30
+ "step": 750
31
+ },
32
+ {
33
+ "epoch": 0.4854368932038835,
34
+ "grad_norm": 0.7631779909133911,
35
+ "learning_rate": 8.788540907987377e-05,
36
+ "loss": 0.5112,
37
+ "step": 1000
38
+ },
39
+ {
40
+ "epoch": 0.6067961165048543,
41
+ "grad_norm": 0.6782851219177246,
42
+ "learning_rate": 8.485069191551348e-05,
43
+ "loss": 0.4978,
44
+ "step": 1250
45
+ },
46
+ {
47
+ "epoch": 0.7281553398058253,
48
+ "grad_norm": 0.6814644932746887,
49
+ "learning_rate": 8.181597475115321e-05,
50
+ "loss": 0.4818,
51
+ "step": 1500
52
+ },
53
+ {
54
+ "epoch": 0.8495145631067961,
55
+ "grad_norm": 0.6583015322685242,
56
+ "learning_rate": 7.878125758679291e-05,
57
+ "loss": 0.4743,
58
+ "step": 1750
59
+ },
60
+ {
61
+ "epoch": 0.970873786407767,
62
+ "grad_norm": 0.5943029522895813,
63
+ "learning_rate": 7.574654042243264e-05,
64
+ "loss": 0.4671,
65
+ "step": 2000
66
+ },
67
+ {
68
+ "epoch": 1.0922330097087378,
69
+ "grad_norm": 0.6358692646026611,
70
+ "learning_rate": 7.271182325807235e-05,
71
+ "loss": 0.4576,
72
+ "step": 2250
73
+ },
74
+ {
75
+ "epoch": 1.2135922330097086,
76
+ "grad_norm": 0.6650794148445129,
77
+ "learning_rate": 6.967710609371208e-05,
78
+ "loss": 0.4466,
79
+ "step": 2500
80
+ },
81
+ {
82
+ "epoch": 1.3349514563106797,
83
+ "grad_norm": 0.6177652478218079,
84
+ "learning_rate": 6.664238892935178e-05,
85
+ "loss": 0.4414,
86
+ "step": 2750
87
+ },
88
+ {
89
+ "epoch": 1.4563106796116505,
90
+ "grad_norm": 0.7465215921401978,
91
+ "learning_rate": 6.360767176499151e-05,
92
+ "loss": 0.4272,
93
+ "step": 3000
94
+ },
95
+ {
96
+ "epoch": 1.5776699029126213,
97
+ "grad_norm": 0.8073906302452087,
98
+ "learning_rate": 6.0572954600631224e-05,
99
+ "loss": 0.4104,
100
+ "step": 3250
101
+ },
102
+ {
103
+ "epoch": 1.6990291262135924,
104
+ "grad_norm": 0.8686108589172363,
105
+ "learning_rate": 5.7538237436270945e-05,
106
+ "loss": 0.3943,
107
+ "step": 3500
108
+ },
109
+ {
110
+ "epoch": 1.820388349514563,
111
+ "grad_norm": 0.7997599840164185,
112
+ "learning_rate": 5.450352027191066e-05,
113
+ "loss": 0.3759,
114
+ "step": 3750
115
+ },
116
+ {
117
+ "epoch": 1.941747572815534,
118
+ "grad_norm": 0.8568466305732727,
119
+ "learning_rate": 5.146880310755038e-05,
120
+ "loss": 0.3588,
121
+ "step": 4000
122
+ },
123
+ {
124
+ "epoch": 2.063106796116505,
125
+ "grad_norm": 0.9695954322814941,
126
+ "learning_rate": 4.84340859431901e-05,
127
+ "loss": 0.3308,
128
+ "step": 4250
129
+ },
130
+ {
131
+ "epoch": 2.1844660194174756,
132
+ "grad_norm": 0.9294792413711548,
133
+ "learning_rate": 4.539936877882982e-05,
134
+ "loss": 0.3118,
135
+ "step": 4500
136
+ },
137
+ {
138
+ "epoch": 2.3058252427184467,
139
+ "grad_norm": 0.9838653206825256,
140
+ "learning_rate": 4.236465161446954e-05,
141
+ "loss": 0.3022,
142
+ "step": 4750
143
+ },
144
+ {
145
+ "epoch": 2.4271844660194173,
146
+ "grad_norm": 1.043236255645752,
147
+ "learning_rate": 3.932993445010925e-05,
148
+ "loss": 0.2916,
149
+ "step": 5000
150
+ },
151
+ {
152
+ "epoch": 2.5485436893203883,
153
+ "grad_norm": 0.9233840703964233,
154
+ "learning_rate": 3.6295217285748975e-05,
155
+ "loss": 0.2817,
156
+ "step": 5250
157
+ },
158
+ {
159
+ "epoch": 2.6699029126213594,
160
+ "grad_norm": 1.0206633806228638,
161
+ "learning_rate": 3.326050012138869e-05,
162
+ "loss": 0.2717,
163
+ "step": 5500
164
+ },
165
+ {
166
+ "epoch": 2.79126213592233,
167
+ "grad_norm": 1.0079368352890015,
168
+ "learning_rate": 3.022578295702841e-05,
169
+ "loss": 0.268,
170
+ "step": 5750
171
+ },
172
+ {
173
+ "epoch": 2.912621359223301,
174
+ "grad_norm": 0.9239732623100281,
175
+ "learning_rate": 2.7191065792668125e-05,
176
+ "loss": 0.2594,
177
+ "step": 6000
178
+ },
179
+ {
180
+ "epoch": 3.033980582524272,
181
+ "grad_norm": 0.9461367726325989,
182
+ "learning_rate": 2.4156348628307843e-05,
183
+ "loss": 0.2478,
184
+ "step": 6250
185
+ },
186
+ {
187
+ "epoch": 3.1553398058252426,
188
+ "grad_norm": 0.9437795877456665,
189
+ "learning_rate": 2.112163146394756e-05,
190
+ "loss": 0.2338,
191
+ "step": 6500
192
+ },
193
+ {
194
+ "epoch": 3.2766990291262137,
195
+ "grad_norm": 0.9600566625595093,
196
+ "learning_rate": 1.808691429958728e-05,
197
+ "loss": 0.2303,
198
+ "step": 6750
199
+ },
200
+ {
201
+ "epoch": 3.3980582524271843,
202
+ "grad_norm": 1.0476354360580444,
203
+ "learning_rate": 1.5052197135226997e-05,
204
+ "loss": 0.2274,
205
+ "step": 7000
206
+ },
207
+ {
208
+ "epoch": 3.5194174757281553,
209
+ "grad_norm": 0.9463278651237488,
210
+ "learning_rate": 1.2017479970866715e-05,
211
+ "loss": 0.2254,
212
+ "step": 7250
213
+ },
214
+ {
215
+ "epoch": 3.6407766990291264,
216
+ "grad_norm": 0.9192850589752197,
217
+ "learning_rate": 8.982762806506435e-06,
218
+ "loss": 0.2232,
219
+ "step": 7500
220
+ },
221
+ {
222
+ "epoch": 3.762135922330097,
223
+ "grad_norm": 0.9748009443283081,
224
+ "learning_rate": 5.948045642146152e-06,
225
+ "loss": 0.2199,
226
+ "step": 7750
227
+ },
228
+ {
229
+ "epoch": 3.883495145631068,
230
+ "grad_norm": 0.9270649552345276,
231
+ "learning_rate": 2.9133284777858704e-06,
232
+ "loss": 0.2201,
233
+ "step": 8000
234
+ },
235
+ {
236
+ "epoch": 4.0,
237
+ "step": 8240,
238
+ "total_flos": 1.1079720316327956e+18,
239
+ "train_loss": 0.3791189865001197,
240
+ "train_runtime": 14726.9623,
241
+ "train_samples_per_second": 35.808,
242
+ "train_steps_per_second": 0.56
243
+ }
244
+ ],
245
+ "logging_steps": 250,
246
+ "max_steps": 8240,
247
+ "num_input_tokens_seen": 0,
248
+ "num_train_epochs": 4,
249
+ "save_steps": 500,
250
+ "stateful_callbacks": {
251
+ "TrainerControl": {
252
+ "args": {
253
+ "should_epoch_stop": false,
254
+ "should_evaluate": false,
255
+ "should_log": false,
256
+ "should_save": false,
257
+ "should_training_stop": false
258
+ },
259
+ "attributes": {}
260
+ }
261
+ },
262
+ "total_flos": 1.1079720316327956e+18,
263
+ "train_batch_size": 4,
264
+ "trial_name": null,
265
+ "trial_params": null
266
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac98a665fe707fe94a20db3f47d62ea7c31846737e65457326b6b755afe26e04
3
+ size 5240