local_model_directory
Browse files- README.md +72 -0
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer_config.json +43 -0
- trainer_state.json +201 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: scb10x/typhoon-7b
|
3 |
+
library_name: peft
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
model-index:
|
8 |
+
- name: local_model_directory
|
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 |
+
# local_model_directory
|
16 |
+
|
17 |
+
This model is a fine-tuned version of [scb10x/typhoon-7b](https://huggingface.co/scb10x/typhoon-7b) on the None dataset.
|
18 |
+
It achieves the following results on the evaluation set:
|
19 |
+
- Loss: 0.4505
|
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: 0.0002
|
39 |
+
- train_batch_size: 8
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- gradient_accumulation_steps: 4
|
43 |
+
- total_train_batch_size: 32
|
44 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
45 |
+
- lr_scheduler_type: linear
|
46 |
+
- lr_scheduler_warmup_steps: 2
|
47 |
+
- num_epochs: 100
|
48 |
+
- mixed_precision_training: Native AMP
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
53 |
+
|:-------------:|:------:|:----:|:---------------:|
|
54 |
+
| 5.0407 | 0.9524 | 5 | 4.8168 |
|
55 |
+
| 3.5268 | 1.9048 | 10 | 2.1234 |
|
56 |
+
| 1.9397 | 2.8571 | 15 | 1.2800 |
|
57 |
+
| 1.0223 | 4.0 | 21 | 0.7717 |
|
58 |
+
| 0.8135 | 4.9524 | 26 | 0.5757 |
|
59 |
+
| 0.6574 | 5.9048 | 31 | 0.5178 |
|
60 |
+
| 0.5833 | 6.8571 | 36 | 0.4854 |
|
61 |
+
| 0.4549 | 8.0 | 42 | 0.4494 |
|
62 |
+
| 0.5012 | 8.9524 | 47 | 0.4294 |
|
63 |
+
| 0.514 | 9.9048 | 52 | 0.4505 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- PEFT 0.11.1
|
69 |
+
- Transformers 4.42.3
|
70 |
+
- Pytorch 2.3.1+cu121
|
71 |
+
- Datasets 2.20.0
|
72 |
+
- Tokenizers 0.19.1
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "scb10x/typhoon-7b",
|
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 |
+
"q_proj",
|
24 |
+
"up_proj",
|
25 |
+
"v_proj",
|
26 |
+
"k_proj",
|
27 |
+
"gate_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:d6d4599048c51779fc5a921ee791b149c963880a71b0e8782553e905fa61c5c4
|
3 |
+
size 83945296
|
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_config.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"additional_special_tokens": [],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"clean_up_tokenization_spaces": false,
|
34 |
+
"eos_token": "</s>",
|
35 |
+
"legacy": true,
|
36 |
+
"model_max_length": 1000000000000000019884624838656,
|
37 |
+
"pad_token": "</s>",
|
38 |
+
"sp_model_kwargs": {},
|
39 |
+
"spaces_between_special_tokens": false,
|
40 |
+
"tokenizer_class": "LlamaTokenizer",
|
41 |
+
"unk_token": "<unk>",
|
42 |
+
"use_default_system_prompt": true
|
43 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 0.42944997549057007,
|
3 |
+
"best_model_checkpoint": "local_model_directory/checkpoint-47",
|
4 |
+
"epoch": 9.904761904761905,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 52,
|
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.9523809523809523,
|
13 |
+
"grad_norm": NaN,
|
14 |
+
"learning_rate": 0.0001,
|
15 |
+
"loss": 5.0407,
|
16 |
+
"step": 5
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.9523809523809523,
|
20 |
+
"eval_loss": 4.816819190979004,
|
21 |
+
"eval_runtime": 4.4668,
|
22 |
+
"eval_samples_per_second": 37.61,
|
23 |
+
"eval_steps_per_second": 4.701,
|
24 |
+
"step": 5
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 1.9047619047619047,
|
28 |
+
"grad_norm": 8.692849159240723,
|
29 |
+
"learning_rate": 0.00019839357429718877,
|
30 |
+
"loss": 3.5268,
|
31 |
+
"step": 10
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 1.9047619047619047,
|
35 |
+
"eval_loss": 2.1233882904052734,
|
36 |
+
"eval_runtime": 4.4662,
|
37 |
+
"eval_samples_per_second": 37.616,
|
38 |
+
"eval_steps_per_second": 4.702,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.857142857142857,
|
43 |
+
"grad_norm": 7.133273601531982,
|
44 |
+
"learning_rate": 0.0001963855421686747,
|
45 |
+
"loss": 1.9397,
|
46 |
+
"step": 15
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 2.857142857142857,
|
50 |
+
"eval_loss": 1.2800443172454834,
|
51 |
+
"eval_runtime": 4.4631,
|
52 |
+
"eval_samples_per_second": 37.642,
|
53 |
+
"eval_steps_per_second": 4.705,
|
54 |
+
"step": 15
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 4.0,
|
58 |
+
"grad_norm": 6.404087066650391,
|
59 |
+
"learning_rate": 0.00019397590361445782,
|
60 |
+
"loss": 1.0223,
|
61 |
+
"step": 21
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 4.0,
|
65 |
+
"eval_loss": 0.7716784477233887,
|
66 |
+
"eval_runtime": 4.4654,
|
67 |
+
"eval_samples_per_second": 37.622,
|
68 |
+
"eval_steps_per_second": 4.703,
|
69 |
+
"step": 21
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 4.9523809523809526,
|
73 |
+
"grad_norm": 8.276748657226562,
|
74 |
+
"learning_rate": 0.00019196787148594377,
|
75 |
+
"loss": 0.8135,
|
76 |
+
"step": 26
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 4.9523809523809526,
|
80 |
+
"eval_loss": 0.5757163763046265,
|
81 |
+
"eval_runtime": 4.4645,
|
82 |
+
"eval_samples_per_second": 37.63,
|
83 |
+
"eval_steps_per_second": 4.704,
|
84 |
+
"step": 26
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 5.904761904761905,
|
88 |
+
"grad_norm": 3.8597450256347656,
|
89 |
+
"learning_rate": 0.00018995983935742974,
|
90 |
+
"loss": 0.6574,
|
91 |
+
"step": 31
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"epoch": 5.904761904761905,
|
95 |
+
"eval_loss": 0.5177809596061707,
|
96 |
+
"eval_runtime": 4.4665,
|
97 |
+
"eval_samples_per_second": 37.613,
|
98 |
+
"eval_steps_per_second": 4.702,
|
99 |
+
"step": 31
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 6.857142857142857,
|
103 |
+
"grad_norm": 4.316291332244873,
|
104 |
+
"learning_rate": 0.00018795180722891569,
|
105 |
+
"loss": 0.5833,
|
106 |
+
"step": 36
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"epoch": 6.857142857142857,
|
110 |
+
"eval_loss": 0.4853830933570862,
|
111 |
+
"eval_runtime": 4.465,
|
112 |
+
"eval_samples_per_second": 37.626,
|
113 |
+
"eval_steps_per_second": 4.703,
|
114 |
+
"step": 36
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 8.0,
|
118 |
+
"grad_norm": 3.386613607406616,
|
119 |
+
"learning_rate": 0.0001855421686746988,
|
120 |
+
"loss": 0.4549,
|
121 |
+
"step": 42
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 8.0,
|
125 |
+
"eval_loss": 0.4494071304798126,
|
126 |
+
"eval_runtime": 4.4635,
|
127 |
+
"eval_samples_per_second": 37.638,
|
128 |
+
"eval_steps_per_second": 4.705,
|
129 |
+
"step": 42
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 8.952380952380953,
|
133 |
+
"grad_norm": 2.4768359661102295,
|
134 |
+
"learning_rate": 0.00018353413654618474,
|
135 |
+
"loss": 0.5012,
|
136 |
+
"step": 47
|
137 |
+
},
|
138 |
+
{
|
139 |
+
"epoch": 8.952380952380953,
|
140 |
+
"eval_loss": 0.42944997549057007,
|
141 |
+
"eval_runtime": 4.465,
|
142 |
+
"eval_samples_per_second": 37.626,
|
143 |
+
"eval_steps_per_second": 4.703,
|
144 |
+
"step": 47
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 9.904761904761905,
|
148 |
+
"grad_norm": 3.0964863300323486,
|
149 |
+
"learning_rate": 0.0001815261044176707,
|
150 |
+
"loss": 0.514,
|
151 |
+
"step": 52
|
152 |
+
},
|
153 |
+
{
|
154 |
+
"epoch": 9.904761904761905,
|
155 |
+
"eval_loss": 0.45047804713249207,
|
156 |
+
"eval_runtime": 4.4637,
|
157 |
+
"eval_samples_per_second": 37.637,
|
158 |
+
"eval_steps_per_second": 4.705,
|
159 |
+
"step": 52
|
160 |
+
},
|
161 |
+
{
|
162 |
+
"epoch": 9.904761904761905,
|
163 |
+
"step": 52,
|
164 |
+
"total_flos": 1735676016721920.0,
|
165 |
+
"train_loss": 1.4758788301394536,
|
166 |
+
"train_runtime": 173.2572,
|
167 |
+
"train_samples_per_second": 96.966,
|
168 |
+
"train_steps_per_second": 2.886
|
169 |
+
}
|
170 |
+
],
|
171 |
+
"logging_steps": 500,
|
172 |
+
"max_steps": 500,
|
173 |
+
"num_input_tokens_seen": 0,
|
174 |
+
"num_train_epochs": 100,
|
175 |
+
"save_steps": 500,
|
176 |
+
"stateful_callbacks": {
|
177 |
+
"EarlyStoppingCallback": {
|
178 |
+
"args": {
|
179 |
+
"early_stopping_patience": 5,
|
180 |
+
"early_stopping_threshold": 0.1
|
181 |
+
},
|
182 |
+
"attributes": {
|
183 |
+
"early_stopping_patience_counter": 0
|
184 |
+
}
|
185 |
+
},
|
186 |
+
"TrainerControl": {
|
187 |
+
"args": {
|
188 |
+
"should_epoch_stop": false,
|
189 |
+
"should_evaluate": false,
|
190 |
+
"should_log": false,
|
191 |
+
"should_save": true,
|
192 |
+
"should_training_stop": true
|
193 |
+
},
|
194 |
+
"attributes": {}
|
195 |
+
}
|
196 |
+
},
|
197 |
+
"total_flos": 1735676016721920.0,
|
198 |
+
"train_batch_size": 8,
|
199 |
+
"trial_name": null,
|
200 |
+
"trial_params": null
|
201 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e45e1106a4d07081a7fe4603a0e418c4422a7a2d94da7a304427f1c7e425d6fb
|
3 |
+
size 5112
|