Aratako commited on
Commit
98ccc5c
1 Parent(s): c473417

End of training

Browse files
README.md ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: other
4
+ base_model: sbintuitions/sarashina2.1-1b
5
+ tags:
6
+ - axolotl
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: sarashina2.1-1b-sft
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ [<img src="https://raw.githubusercontent.com/axolotl-ai-cloud/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/axolotl-ai-cloud/axolotl)
17
+ <details><summary>See axolotl config</summary>
18
+
19
+ axolotl version: `0.5.2`
20
+ ```yaml
21
+ base_model: sbintuitions/sarashina2.1-1b
22
+ model_type: AutoModelForCausalLM
23
+ tokenizer_type: AutoTokenizer
24
+
25
+ hub_model_id: Aratako/sarashina2.1-1b-sft
26
+ hub_strategy: "end"
27
+ push_dataset_to_hub:
28
+ hf_use_auth_token: true
29
+
30
+ plugins:
31
+ - axolotl.integrations.liger.LigerPlugin
32
+ liger_cross_entropy: false
33
+ liger_rope: true
34
+ liger_rms_norm: true
35
+ liger_swiglu: true
36
+ liger_fused_linear_cross_entropy: true
37
+
38
+ load_in_8bit: false
39
+ load_in_4bit: false
40
+ strict: false
41
+
42
+ chat_template: chatml
43
+
44
+ datasets:
45
+ - path: Aratako/Magpie-Tanuki-Qwen2.5-72B-Answered
46
+ type: chat_template
47
+ field_messages: messages
48
+ message_field_role: role
49
+ message_field_content: content
50
+ - path: Aratako/magpie-qwen2.5-32b-reasoning-100k-formatted
51
+ type: chat_template
52
+ field_messages: conversations
53
+ message_field_role: role
54
+ message_field_content: content
55
+ - path: Aratako/Open-Platypus-Japanese-masked-formatted
56
+ type: chat_template
57
+ field_messages: conversations
58
+ message_field_role: role
59
+ message_field_content: content
60
+ - path: kanhatakeyama/wizardlm8x22b-logical-math-coding-sft_additional-ja
61
+ type: chat_template
62
+ field_messages: messages
63
+ message_field_role: role
64
+ message_field_content: content
65
+ - path: kanhatakeyama/ramdom-to-fixed-multiturn-Calm3
66
+ split: 20240806filtered
67
+ type: chat_template
68
+ field_messages: messages
69
+ message_field_role: role
70
+ message_field_content: content
71
+ - path: llm-jp/magpie-sft-v1.0
72
+ type: chat_template
73
+ field_messages: conversations
74
+ message_field_role: role
75
+ message_field_content: content
76
+ - path: Aratako/aya-ja-evol-instruct-calm3-dpo-masked-sft
77
+ type: chat_template
78
+ field_messages: messages
79
+ message_field_role: role
80
+ message_field_content: content
81
+ - path: Aratako/aya-ja-nemotron-dpo-masked-sft
82
+ type: chat_template
83
+ field_messages: messages
84
+ message_field_role: role
85
+ message_field_content: content
86
+ - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k
87
+ split: "train[0:50000]"
88
+ type: chat_template
89
+ field_messages: messages
90
+ message_field_role: role
91
+ message_field_content: content
92
+ - path: Aratako/orca-agentinstruct-1M-v1-selected-2
93
+ type: chat_template
94
+ field_messages: messages
95
+ message_field_role: role
96
+ message_field_content: content
97
+ - path: Aratako/Synthetic-JP-EN-Coding-Dataset-801k-50k
98
+ type: chat_template
99
+ field_messages: messages
100
+ message_field_role: role
101
+ message_field_content: content
102
+
103
+ shuffle_merged_datasets: true
104
+ dataset_prepared_path: /workspace/data/fft-data-sarashina
105
+ val_set_size: 0.002
106
+ output_dir: /workspace/data/1b-fft-out
107
+
108
+ sequence_len: 4096
109
+ sample_packing: true
110
+ eval_sample_packing: false
111
+ pad_to_sequence_len: true
112
+
113
+ adapter:
114
+ lora_model_dir:
115
+ lora_r:
116
+ lora_alpha:
117
+ lora_dropout:
118
+ lora_target_linear:
119
+ lora_fan_in_fan_out:
120
+
121
+ wandb_project: 1b-fft
122
+ wandb_entity: aratako-lm
123
+ wandb_watch:
124
+ wandb_name: fft-attempt-1
125
+ wandb_log_model:
126
+
127
+ gradient_accumulation_steps: 4
128
+ micro_batch_size: 8
129
+ num_epochs: 2
130
+ optimizer: adamw_torch
131
+ lr_scheduler: cosine
132
+ cosine_min_lr_ratio: 0.1
133
+ learning_rate: 0.00002
134
+
135
+ train_on_inputs: false
136
+ group_by_length: false
137
+ bf16: auto
138
+ fp16:
139
+ tf32: false
140
+
141
+ gradient_checkpointing: false
142
+ early_stopping_patience:
143
+ auto_resume_from_checkpoints: true
144
+ local_rank:
145
+ logging_steps: 1
146
+ xformers_attention:
147
+ flash_attention: true
148
+
149
+ save_strategy: steps
150
+ save_steps: 100
151
+ save_total_limit: 1
152
+
153
+ warmup_steps: 20
154
+ eval_steps: 100
155
+ eval_batch_size: 1
156
+ eval_table_size:
157
+ eval_max_new_tokens:
158
+ debug:
159
+ deepspeed: /workspace/axolotl/deepspeed_configs/zero1.json
160
+ weight_decay: 0.01
161
+ fsdp:
162
+ fsdp_config:
163
+ special_tokens:
164
+ pad_token: <pad>
165
+
166
+ tokens:
167
+ - "<|im_start|>"
168
+ - "<|im_end|>"
169
+
170
+ ```
171
+
172
+ </details><br>
173
+
174
+ # sarashina2.1-1b-sft
175
+
176
+ This model is a fine-tuned version of [sbintuitions/sarashina2.1-1b](https://huggingface.co/sbintuitions/sarashina2.1-1b) on the None dataset.
177
+ It achieves the following results on the evaluation set:
178
+ - Loss: 0.9366
179
+
180
+ ## Model description
181
+
182
+ More information needed
183
+
184
+ ## Intended uses & limitations
185
+
186
+ More information needed
187
+
188
+ ## Training and evaluation data
189
+
190
+ More information needed
191
+
192
+ ## Training procedure
193
+
194
+ ### Training hyperparameters
195
+
196
+ The following hyperparameters were used during training:
197
+ - learning_rate: 2e-05
198
+ - train_batch_size: 8
199
+ - eval_batch_size: 1
200
+ - seed: 42
201
+ - distributed_type: multi-GPU
202
+ - num_devices: 8
203
+ - gradient_accumulation_steps: 4
204
+ - total_train_batch_size: 256
205
+ - total_eval_batch_size: 8
206
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
207
+ - lr_scheduler_type: cosine
208
+ - lr_scheduler_warmup_steps: 20
209
+ - num_epochs: 2
210
+
211
+ ### Training results
212
+
213
+ | Training Loss | Epoch | Step | Validation Loss |
214
+ |:-------------:|:------:|:----:|:---------------:|
215
+ | 1.2935 | 0.0015 | 1 | 1.4733 |
216
+ | 0.985 | 0.1515 | 100 | 1.0491 |
217
+ | 0.9131 | 0.3029 | 200 | 1.0156 |
218
+ | 0.9174 | 0.4544 | 300 | 0.9935 |
219
+ | 0.9257 | 0.6058 | 400 | 0.9806 |
220
+ | 0.869 | 0.7573 | 500 | 0.9694 |
221
+ | 0.8874 | 0.9087 | 600 | 0.9608 |
222
+ | 0.8041 | 1.0594 | 700 | 0.9557 |
223
+ | 0.8348 | 1.2109 | 800 | 0.9512 |
224
+ | 0.8353 | 1.3624 | 900 | 0.9466 |
225
+ | 0.8145 | 1.5138 | 1000 | 0.9432 |
226
+ | 0.8057 | 1.6653 | 1100 | 0.9400 |
227
+ | 0.838 | 1.8167 | 1200 | 0.9381 |
228
+ | 0.8446 | 1.9682 | 1300 | 0.9366 |
229
+
230
+
231
+ ### Framework versions
232
+
233
+ - Transformers 4.46.3
234
+ - Pytorch 2.3.1+cu121
235
+ - Datasets 3.1.0
236
+ - Tokenizers 0.20.3
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 102401,
3
+ "<|im_start|>": 102400
4
+ }
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sbintuitions/sarashina2.1-1b",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "head_dim": 112,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 1792,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 6272,
15
+ "max_position_embeddings": 8192,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 16,
19
+ "num_hidden_layers": 24,
20
+ "num_key_value_heads": 8,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 500000,
25
+ "tie_word_embeddings": false,
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.46.3",
28
+ "use_cache": false,
29
+ "vocab_size": 102402
30
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "do_sample": true,
5
+ "eos_token_id": 2,
6
+ "transformers_version": "4.46.3"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89f6b2fd14403f6eade689340379a88dac517785b60b616bf7543f385594b872
3
+ size 2815117504
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aff9f2c8e35db130a0113609e1d2fb9f1febfd8059457d05bd59fd9d02374e1c
3
+ size 2815122106
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<cls>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "<sep>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
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:008293028e1a9d9a1038d9b63d989a2319797dfeaa03f171093a57b33a3a8277
3
+ size 1831879
tokenizer_config.json ADDED
@@ -0,0 +1,187 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_dummy_prefix_space": false,
4
+ "add_eos_token": false,
5
+ "add_prefix_space": false,
6
+ "added_tokens_decoder": {
7
+ "0": {
8
+ "content": "<unk>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false,
13
+ "special": true
14
+ },
15
+ "1": {
16
+ "content": "<s>",
17
+ "lstrip": false,
18
+ "normalized": false,
19
+ "rstrip": false,
20
+ "single_word": false,
21
+ "special": true
22
+ },
23
+ "2": {
24
+ "content": "</s>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false,
29
+ "special": true
30
+ },
31
+ "3": {
32
+ "content": "<pad>",
33
+ "lstrip": false,
34
+ "normalized": false,
35
+ "rstrip": false,
36
+ "single_word": false,
37
+ "special": true
38
+ },
39
+ "4": {
40
+ "content": "<sep>",
41
+ "lstrip": false,
42
+ "normalized": false,
43
+ "rstrip": false,
44
+ "single_word": false,
45
+ "special": true
46
+ },
47
+ "5": {
48
+ "content": "<mask>",
49
+ "lstrip": false,
50
+ "normalized": false,
51
+ "rstrip": false,
52
+ "single_word": false,
53
+ "special": true
54
+ },
55
+ "6": {
56
+ "content": "<cls>",
57
+ "lstrip": false,
58
+ "normalized": false,
59
+ "rstrip": false,
60
+ "single_word": false,
61
+ "special": true
62
+ },
63
+ "7": {
64
+ "content": "<|system|>",
65
+ "lstrip": false,
66
+ "normalized": false,
67
+ "rstrip": false,
68
+ "single_word": false,
69
+ "special": false
70
+ },
71
+ "8": {
72
+ "content": "<|assistant|>",
73
+ "lstrip": false,
74
+ "normalized": false,
75
+ "rstrip": false,
76
+ "single_word": false,
77
+ "special": false
78
+ },
79
+ "9": {
80
+ "content": "<|user|>",
81
+ "lstrip": false,
82
+ "normalized": false,
83
+ "rstrip": false,
84
+ "single_word": false,
85
+ "special": false
86
+ },
87
+ "10": {
88
+ "content": "<|available_tools|>",
89
+ "lstrip": false,
90
+ "normalized": false,
91
+ "rstrip": false,
92
+ "single_word": false,
93
+ "special": false
94
+ },
95
+ "11": {
96
+ "content": "<|tool_calls|>",
97
+ "lstrip": false,
98
+ "normalized": false,
99
+ "rstrip": false,
100
+ "single_word": false,
101
+ "special": false
102
+ },
103
+ "12": {
104
+ "content": "<|tool_results|>",
105
+ "lstrip": false,
106
+ "normalized": false,
107
+ "rstrip": false,
108
+ "single_word": false,
109
+ "special": false
110
+ },
111
+ "13": {
112
+ "content": "<|code|>",
113
+ "lstrip": false,
114
+ "normalized": false,
115
+ "rstrip": false,
116
+ "single_word": false,
117
+ "special": false
118
+ },
119
+ "14": {
120
+ "content": "<|file|>",
121
+ "lstrip": false,
122
+ "normalized": false,
123
+ "rstrip": false,
124
+ "single_word": false,
125
+ "special": false
126
+ },
127
+ "102397": {
128
+ "content": "<|prefix|>",
129
+ "lstrip": false,
130
+ "normalized": false,
131
+ "rstrip": false,
132
+ "single_word": false,
133
+ "special": false
134
+ },
135
+ "102398": {
136
+ "content": "<|suffix|>",
137
+ "lstrip": false,
138
+ "normalized": false,
139
+ "rstrip": false,
140
+ "single_word": false,
141
+ "special": false
142
+ },
143
+ "102399": {
144
+ "content": "<|middle|>",
145
+ "lstrip": false,
146
+ "normalized": false,
147
+ "rstrip": false,
148
+ "single_word": false,
149
+ "special": false
150
+ },
151
+ "102400": {
152
+ "content": "<|im_start|>",
153
+ "lstrip": false,
154
+ "normalized": false,
155
+ "rstrip": false,
156
+ "single_word": false,
157
+ "special": false
158
+ },
159
+ "102401": {
160
+ "content": "<|im_end|>",
161
+ "lstrip": false,
162
+ "normalized": false,
163
+ "rstrip": false,
164
+ "single_word": false,
165
+ "special": false
166
+ }
167
+ },
168
+ "bos_token": "<s>",
169
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
170
+ "clean_up_tokenization_spaces": false,
171
+ "cls_token": "<cls>",
172
+ "do_lower_case": false,
173
+ "eos_token": "</s>",
174
+ "extra_ids": 0,
175
+ "keep_accents": true,
176
+ "legacy": false,
177
+ "mask_token": "<mask>",
178
+ "model_max_length": 1000000000000000019884624838656,
179
+ "pad_token": "<pad>",
180
+ "padding_side": "left",
181
+ "sep_token": "<sep>",
182
+ "sp_model_kwargs": {},
183
+ "spaces_between_special_tokens": false,
184
+ "tokenizer_class": "LlamaTokenizer",
185
+ "unk_token": "<unk>",
186
+ "use_default_system_prompt": false
187
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:511211b07bb545451edb5d7ca9e8de45751900bf6d05f5a6b371bd2f198c291e
3
+ size 8120