WangXFng commited on
Commit
4c52f0c
·
verified ·
1 Parent(s): f9e7c24

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,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: meta-llama/Llama-3.1-8B
3
+ library_name: peft
4
+ license: llama3.1
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: Instruments-8bit-8B-4Epoch-gcn
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-8bit-8B-4Epoch-gcn
16
+
17
+ This model is a fine-tuned version of [meta-llama/Llama-3.1-8B](https://huggingface.co/meta-llama/Llama-3.1-8B) 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
+ - num_epochs: 4
45
+
46
+ ### Training results
47
+
48
+
49
+
50
+ ### Framework versions
51
+
52
+ - PEFT 0.13.0
53
+ - Transformers 4.45.2
54
+ - Pytorch 2.4.0
55
+ - Tokenizers 0.20.0
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.1-8B",
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
+ "up_proj",
24
+ "k_proj",
25
+ "q_proj",
26
+ "gate_proj",
27
+ "v_proj",
28
+ "o_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:a196278f71574a7652a5d3317e317b6c635f21581df2ad7a0676af948975d4fd
3
+ size 2284219288
config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 128000,
8
+ "eos_token_id": 128001,
9
+ "head_dim": 128,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 4096,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 14336,
14
+ "max_position_embeddings": 131072,
15
+ "mlp_bias": false,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 32,
19
+ "num_key_value_heads": 8,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-05,
22
+ "rope_scaling": {
23
+ "factor": 8.0,
24
+ "high_freq_factor": 4.0,
25
+ "low_freq_factor": 1.0,
26
+ "original_max_position_embeddings": 8192,
27
+ "rope_type": "llama3"
28
+ },
29
+ "rope_theta": 500000.0,
30
+ "tie_word_embeddings": false,
31
+ "torch_dtype": "bfloat16",
32
+ "transformers_version": "4.45.2",
33
+ "use_cache": true,
34
+ "vocab_size": 129174
35
+ }
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": "<|end_of_text|>",
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.147416591644287,
14
+ "learning_rate": 9.696601941747573e-05,
15
+ "loss": 1.1102,
16
+ "step": 250
17
+ },
18
+ {
19
+ "epoch": 0.24271844660194175,
20
+ "grad_norm": 1.0398495197296143,
21
+ "learning_rate": 9.393203883495146e-05,
22
+ "loss": 0.5891,
23
+ "step": 500
24
+ },
25
+ {
26
+ "epoch": 0.3640776699029126,
27
+ "grad_norm": 0.7667867541313171,
28
+ "learning_rate": 9.089805825242718e-05,
29
+ "loss": 0.5176,
30
+ "step": 750
31
+ },
32
+ {
33
+ "epoch": 0.4854368932038835,
34
+ "grad_norm": 0.7023970484733582,
35
+ "learning_rate": 8.786407766990292e-05,
36
+ "loss": 0.4917,
37
+ "step": 1000
38
+ },
39
+ {
40
+ "epoch": 0.6067961165048543,
41
+ "grad_norm": 0.6781546473503113,
42
+ "learning_rate": 8.483009708737865e-05,
43
+ "loss": 0.4822,
44
+ "step": 1250
45
+ },
46
+ {
47
+ "epoch": 0.7281553398058253,
48
+ "grad_norm": 0.7623434066772461,
49
+ "learning_rate": 8.179611650485438e-05,
50
+ "loss": 0.4655,
51
+ "step": 1500
52
+ },
53
+ {
54
+ "epoch": 0.8495145631067961,
55
+ "grad_norm": 0.8142368793487549,
56
+ "learning_rate": 7.87621359223301e-05,
57
+ "loss": 0.45,
58
+ "step": 1750
59
+ },
60
+ {
61
+ "epoch": 0.970873786407767,
62
+ "grad_norm": 0.8743399381637573,
63
+ "learning_rate": 7.572815533980583e-05,
64
+ "loss": 0.4304,
65
+ "step": 2000
66
+ },
67
+ {
68
+ "epoch": 1.0922330097087378,
69
+ "grad_norm": 0.9348050355911255,
70
+ "learning_rate": 7.269417475728155e-05,
71
+ "loss": 0.3979,
72
+ "step": 2250
73
+ },
74
+ {
75
+ "epoch": 1.2135922330097086,
76
+ "grad_norm": 1.0624396800994873,
77
+ "learning_rate": 6.966019417475728e-05,
78
+ "loss": 0.3695,
79
+ "step": 2500
80
+ },
81
+ {
82
+ "epoch": 1.3349514563106797,
83
+ "grad_norm": 1.0327861309051514,
84
+ "learning_rate": 6.662621359223301e-05,
85
+ "loss": 0.3452,
86
+ "step": 2750
87
+ },
88
+ {
89
+ "epoch": 1.4563106796116505,
90
+ "grad_norm": 1.0362504720687866,
91
+ "learning_rate": 6.359223300970875e-05,
92
+ "loss": 0.3194,
93
+ "step": 3000
94
+ },
95
+ {
96
+ "epoch": 1.5776699029126213,
97
+ "grad_norm": 1.1497058868408203,
98
+ "learning_rate": 6.055825242718447e-05,
99
+ "loss": 0.3,
100
+ "step": 3250
101
+ },
102
+ {
103
+ "epoch": 1.6990291262135924,
104
+ "grad_norm": 1.1127945184707642,
105
+ "learning_rate": 5.752427184466019e-05,
106
+ "loss": 0.2829,
107
+ "step": 3500
108
+ },
109
+ {
110
+ "epoch": 1.820388349514563,
111
+ "grad_norm": 1.0874605178833008,
112
+ "learning_rate": 5.4490291262135926e-05,
113
+ "loss": 0.2714,
114
+ "step": 3750
115
+ },
116
+ {
117
+ "epoch": 1.941747572815534,
118
+ "grad_norm": 0.965722382068634,
119
+ "learning_rate": 5.145631067961165e-05,
120
+ "loss": 0.2596,
121
+ "step": 4000
122
+ },
123
+ {
124
+ "epoch": 2.063106796116505,
125
+ "grad_norm": 1.0977766513824463,
126
+ "learning_rate": 4.8422330097087385e-05,
127
+ "loss": 0.2352,
128
+ "step": 4250
129
+ },
130
+ {
131
+ "epoch": 2.1844660194174756,
132
+ "grad_norm": 1.022316813468933,
133
+ "learning_rate": 4.538834951456311e-05,
134
+ "loss": 0.2209,
135
+ "step": 4500
136
+ },
137
+ {
138
+ "epoch": 2.3058252427184467,
139
+ "grad_norm": 0.982537031173706,
140
+ "learning_rate": 4.235436893203884e-05,
141
+ "loss": 0.2171,
142
+ "step": 4750
143
+ },
144
+ {
145
+ "epoch": 2.4271844660194173,
146
+ "grad_norm": 1.093375563621521,
147
+ "learning_rate": 3.9320388349514564e-05,
148
+ "loss": 0.2129,
149
+ "step": 5000
150
+ },
151
+ {
152
+ "epoch": 2.5485436893203883,
153
+ "grad_norm": 0.9269146919250488,
154
+ "learning_rate": 3.62864077669903e-05,
155
+ "loss": 0.2088,
156
+ "step": 5250
157
+ },
158
+ {
159
+ "epoch": 2.6699029126213594,
160
+ "grad_norm": 1.0317578315734863,
161
+ "learning_rate": 3.325242718446602e-05,
162
+ "loss": 0.2032,
163
+ "step": 5500
164
+ },
165
+ {
166
+ "epoch": 2.79126213592233,
167
+ "grad_norm": 0.9504765868186951,
168
+ "learning_rate": 3.0218446601941746e-05,
169
+ "loss": 0.2013,
170
+ "step": 5750
171
+ },
172
+ {
173
+ "epoch": 2.912621359223301,
174
+ "grad_norm": 0.9305168390274048,
175
+ "learning_rate": 2.7184466019417475e-05,
176
+ "loss": 0.1963,
177
+ "step": 6000
178
+ },
179
+ {
180
+ "epoch": 3.033980582524272,
181
+ "grad_norm": 0.830916166305542,
182
+ "learning_rate": 2.4150485436893205e-05,
183
+ "loss": 0.1879,
184
+ "step": 6250
185
+ },
186
+ {
187
+ "epoch": 3.1553398058252426,
188
+ "grad_norm": 0.8673647046089172,
189
+ "learning_rate": 2.111650485436893e-05,
190
+ "loss": 0.1753,
191
+ "step": 6500
192
+ },
193
+ {
194
+ "epoch": 3.2766990291262137,
195
+ "grad_norm": 0.8825583457946777,
196
+ "learning_rate": 1.808252427184466e-05,
197
+ "loss": 0.1739,
198
+ "step": 6750
199
+ },
200
+ {
201
+ "epoch": 3.3980582524271843,
202
+ "grad_norm": 1.0287333726882935,
203
+ "learning_rate": 1.5048543689320387e-05,
204
+ "loss": 0.1729,
205
+ "step": 7000
206
+ },
207
+ {
208
+ "epoch": 3.5194174757281553,
209
+ "grad_norm": 0.809319794178009,
210
+ "learning_rate": 1.2014563106796117e-05,
211
+ "loss": 0.1718,
212
+ "step": 7250
213
+ },
214
+ {
215
+ "epoch": 3.6407766990291264,
216
+ "grad_norm": 0.8941086530685425,
217
+ "learning_rate": 8.980582524271845e-06,
218
+ "loss": 0.1702,
219
+ "step": 7500
220
+ },
221
+ {
222
+ "epoch": 3.762135922330097,
223
+ "grad_norm": 0.9008864760398865,
224
+ "learning_rate": 5.946601941747574e-06,
225
+ "loss": 0.1688,
226
+ "step": 7750
227
+ },
228
+ {
229
+ "epoch": 3.883495145631068,
230
+ "grad_norm": 0.8730018138885498,
231
+ "learning_rate": 2.912621359223301e-06,
232
+ "loss": 0.1689,
233
+ "step": 8000
234
+ },
235
+ {
236
+ "epoch": 4.0,
237
+ "step": 8240,
238
+ "total_flos": 2.943708398017659e+18,
239
+ "train_loss": 0.31335733145186045,
240
+ "train_runtime": 45318.0558,
241
+ "train_samples_per_second": 11.637,
242
+ "train_steps_per_second": 0.182
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": 2.943708398017659e+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:ba374b109f4c0a2d77b4233e602229b02a2e9d7bc4549ea4d4db19694f99db10
3
+ size 5240