Model save
Browse files- .gitattributes +1 -0
- README.md +56 -0
- adapter_config.json +35 -0
- adapter_model.safetensors +3 -0
- config.json +39 -0
- special_tokens_map.json +17 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
- trainer_state.json +189 -0
- training_args.bin +3 -0
.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-8bit-3B-4Epoch-EmbToken
|
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-3B-4Epoch-EmbToken
|
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: 6
|
38 |
+
- eval_batch_size: 8
|
39 |
+
- seed: 42
|
40 |
+
- gradient_accumulation_steps: 16
|
41 |
+
- total_train_batch_size: 96
|
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.1
|
54 |
+
- Transformers 4.45.2
|
55 |
+
- Pytorch 2.4.1
|
56 |
+
- Tokenizers 0.20.0
|
adapter_config.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 8,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"embed_tokens",
|
24 |
+
"k_proj",
|
25 |
+
"v_proj",
|
26 |
+
"gate_proj",
|
27 |
+
"up_proj",
|
28 |
+
"down_proj",
|
29 |
+
"q_proj",
|
30 |
+
"o_proj"
|
31 |
+
],
|
32 |
+
"task_type": "CAUSAL_LM",
|
33 |
+
"use_dora": false,
|
34 |
+
"use_rslora": false
|
35 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf6847e67fdd1b83c32120770d7367723d4f1b6f62bf197a51009c84c6eb3ae9
|
3 |
+
size 846556736
|
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,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.999089792017476,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 5492,
|
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.18204159650480134,
|
13 |
+
"grad_norm": 3.854499101638794,
|
14 |
+
"learning_rate": 9.548269581056467e-05,
|
15 |
+
"loss": 1.0014,
|
16 |
+
"step": 250
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.3640831930096027,
|
20 |
+
"grad_norm": 3.5418713092803955,
|
21 |
+
"learning_rate": 9.092896174863389e-05,
|
22 |
+
"loss": 0.5401,
|
23 |
+
"step": 500
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.546124789514404,
|
27 |
+
"grad_norm": 3.089492082595825,
|
28 |
+
"learning_rate": 8.63752276867031e-05,
|
29 |
+
"loss": 0.4797,
|
30 |
+
"step": 750
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.7281663860192054,
|
34 |
+
"grad_norm": 3.0062525272369385,
|
35 |
+
"learning_rate": 8.182149362477231e-05,
|
36 |
+
"loss": 0.4598,
|
37 |
+
"step": 1000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.9102079825240067,
|
41 |
+
"grad_norm": 2.703545093536377,
|
42 |
+
"learning_rate": 7.726775956284153e-05,
|
43 |
+
"loss": 0.4454,
|
44 |
+
"step": 1250
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 1.092249579028808,
|
48 |
+
"grad_norm": 2.665408134460449,
|
49 |
+
"learning_rate": 7.271402550091076e-05,
|
50 |
+
"loss": 0.4338,
|
51 |
+
"step": 1500
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 1.2742911755336095,
|
55 |
+
"grad_norm": 2.8605291843414307,
|
56 |
+
"learning_rate": 6.816029143897996e-05,
|
57 |
+
"loss": 0.4224,
|
58 |
+
"step": 1750
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 1.4563327720384107,
|
62 |
+
"grad_norm": 3.0206186771392822,
|
63 |
+
"learning_rate": 6.360655737704918e-05,
|
64 |
+
"loss": 0.4147,
|
65 |
+
"step": 2000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.6383743685432122,
|
69 |
+
"grad_norm": 3.633958578109741,
|
70 |
+
"learning_rate": 5.90528233151184e-05,
|
71 |
+
"loss": 0.3983,
|
72 |
+
"step": 2250
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 1.8204159650480136,
|
76 |
+
"grad_norm": 3.535999059677124,
|
77 |
+
"learning_rate": 5.449908925318762e-05,
|
78 |
+
"loss": 0.3808,
|
79 |
+
"step": 2500
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 2.0024575615528146,
|
83 |
+
"grad_norm": 3.919354200363159,
|
84 |
+
"learning_rate": 4.994535519125683e-05,
|
85 |
+
"loss": 0.3642,
|
86 |
+
"step": 2750
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 2.184499158057616,
|
90 |
+
"grad_norm": 4.2734246253967285,
|
91 |
+
"learning_rate": 4.539162112932605e-05,
|
92 |
+
"loss": 0.3377,
|
93 |
+
"step": 3000
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 2.3665407545624175,
|
97 |
+
"grad_norm": 4.275780200958252,
|
98 |
+
"learning_rate": 4.083788706739526e-05,
|
99 |
+
"loss": 0.3261,
|
100 |
+
"step": 3250
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 2.548582351067219,
|
104 |
+
"grad_norm": 4.408421516418457,
|
105 |
+
"learning_rate": 3.6284153005464486e-05,
|
106 |
+
"loss": 0.31,
|
107 |
+
"step": 3500
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 2.7306239475720204,
|
111 |
+
"grad_norm": 4.726068019866943,
|
112 |
+
"learning_rate": 3.17304189435337e-05,
|
113 |
+
"loss": 0.2998,
|
114 |
+
"step": 3750
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 2.9126655440768214,
|
118 |
+
"grad_norm": 4.753103733062744,
|
119 |
+
"learning_rate": 2.7176684881602916e-05,
|
120 |
+
"loss": 0.2897,
|
121 |
+
"step": 4000
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 3.094707140581623,
|
125 |
+
"grad_norm": 4.001144886016846,
|
126 |
+
"learning_rate": 2.262295081967213e-05,
|
127 |
+
"loss": 0.2744,
|
128 |
+
"step": 4250
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 3.2767487370864243,
|
132 |
+
"grad_norm": 4.412220001220703,
|
133 |
+
"learning_rate": 1.806921675774135e-05,
|
134 |
+
"loss": 0.2619,
|
135 |
+
"step": 4500
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 3.458790333591226,
|
139 |
+
"grad_norm": 4.553833961486816,
|
140 |
+
"learning_rate": 1.3515482695810567e-05,
|
141 |
+
"loss": 0.2578,
|
142 |
+
"step": 4750
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 3.640831930096027,
|
146 |
+
"grad_norm": 4.323617458343506,
|
147 |
+
"learning_rate": 8.961748633879782e-06,
|
148 |
+
"loss": 0.2533,
|
149 |
+
"step": 5000
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 3.8228735266008282,
|
153 |
+
"grad_norm": 4.197403430938721,
|
154 |
+
"learning_rate": 4.408014571948998e-06,
|
155 |
+
"loss": 0.2489,
|
156 |
+
"step": 5250
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 3.999089792017476,
|
160 |
+
"step": 5492,
|
161 |
+
"total_flos": 1.2115246643852867e+18,
|
162 |
+
"train_loss": 0.38415815321442337,
|
163 |
+
"train_runtime": 38374.2384,
|
164 |
+
"train_samples_per_second": 13.742,
|
165 |
+
"train_steps_per_second": 0.143
|
166 |
+
}
|
167 |
+
],
|
168 |
+
"logging_steps": 250,
|
169 |
+
"max_steps": 5492,
|
170 |
+
"num_input_tokens_seen": 0,
|
171 |
+
"num_train_epochs": 4,
|
172 |
+
"save_steps": 500,
|
173 |
+
"stateful_callbacks": {
|
174 |
+
"TrainerControl": {
|
175 |
+
"args": {
|
176 |
+
"should_epoch_stop": false,
|
177 |
+
"should_evaluate": false,
|
178 |
+
"should_log": false,
|
179 |
+
"should_save": false,
|
180 |
+
"should_training_stop": false
|
181 |
+
},
|
182 |
+
"attributes": {}
|
183 |
+
}
|
184 |
+
},
|
185 |
+
"total_flos": 1.2115246643852867e+18,
|
186 |
+
"train_batch_size": 6,
|
187 |
+
"trial_name": null,
|
188 |
+
"trial_params": null
|
189 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:59c8222790fef3f0776422283ef24dd960e466ce88e6130609f3777dd2dcfa8a
|
3 |
+
size 5240
|