Model save
Browse files- README.md +65 -0
- added_tokens.json +3 -0
- all_results.json +9 -0
- config.json +28 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
- runs/May28_21-52-14_illidan.cs.ucla.edu/events.out.tfevents.1716958409.illidan.cs.ucla.edu.1390992.0 +3 -0
- special_tokens_map.json +30 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +50 -0
- train_results.json +9 -0
- trainer_state.json +150 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
base_model: TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- sft
|
7 |
+
- generated_from_trainer
|
8 |
+
model-index:
|
9 |
+
- name: tinyllama-sft-vicuna-10k-large-user-length
|
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 |
+
# tinyllama-sft-vicuna-10k-large-user-length
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T](https://huggingface.co/TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T) on an unknown dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.8284
|
21 |
+
|
22 |
+
## Model description
|
23 |
+
|
24 |
+
More information needed
|
25 |
+
|
26 |
+
## Intended uses & limitations
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Training and evaluation data
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training procedure
|
35 |
+
|
36 |
+
### Training hyperparameters
|
37 |
+
|
38 |
+
The following hyperparameters were used during training:
|
39 |
+
- learning_rate: 2e-05
|
40 |
+
- train_batch_size: 16
|
41 |
+
- eval_batch_size: 8
|
42 |
+
- seed: 42
|
43 |
+
- distributed_type: multi-GPU
|
44 |
+
- num_devices: 4
|
45 |
+
- gradient_accumulation_steps: 2
|
46 |
+
- total_train_batch_size: 128
|
47 |
+
- total_eval_batch_size: 32
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: cosine
|
50 |
+
- lr_scheduler_warmup_ratio: 0.1
|
51 |
+
- num_epochs: 1
|
52 |
+
|
53 |
+
### Training results
|
54 |
+
|
55 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
56 |
+
|:-------------:|:------:|:----:|:---------------:|
|
57 |
+
| 0.8019 | 0.9936 | 78 | 0.8284 |
|
58 |
+
|
59 |
+
|
60 |
+
### Framework versions
|
61 |
+
|
62 |
+
- Transformers 4.40.2
|
63 |
+
- Pytorch 2.3.0+cu121
|
64 |
+
- Datasets 2.19.1
|
65 |
+
- Tokenizers 0.19.1
|
added_tokens.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"[PAD]": 32000
|
3 |
+
}
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9936305732484076,
|
3 |
+
"total_flos": 11234023833600.0,
|
4 |
+
"train_loss": 0.8443797582235092,
|
5 |
+
"train_runtime": 656.715,
|
6 |
+
"train_samples": 10000,
|
7 |
+
"train_samples_per_second": 15.227,
|
8 |
+
"train_steps_per_second": 0.119
|
9 |
+
}
|
config.json
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "TinyLlama/TinyLlama-1.1B-intermediate-step-1431k-3T",
|
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 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 2048,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5632,
|
14 |
+
"max_position_embeddings": 2048,
|
15 |
+
"model_type": "llama",
|
16 |
+
"num_attention_heads": 32,
|
17 |
+
"num_hidden_layers": 22,
|
18 |
+
"num_key_value_heads": 4,
|
19 |
+
"pretraining_tp": 1,
|
20 |
+
"rms_norm_eps": 1e-05,
|
21 |
+
"rope_scaling": null,
|
22 |
+
"rope_theta": 10000.0,
|
23 |
+
"tie_word_embeddings": false,
|
24 |
+
"torch_dtype": "bfloat16",
|
25 |
+
"transformers_version": "4.40.2",
|
26 |
+
"use_cache": false,
|
27 |
+
"vocab_size": 32001
|
28 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 1,
|
3 |
+
"eos_token_id": 2,
|
4 |
+
"max_length": 2048,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.40.2"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ab2cf05cda2f3d5f802919e206fb080e0bf28506b20848e426e29095568f02c0
|
3 |
+
size 2200128056
|
runs/May28_21-52-14_illidan.cs.ucla.edu/events.out.tfevents.1716958409.illidan.cs.ucla.edu.1390992.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5ba78c3a0347d09dab59da3e6c2acd84a68ea4bd54976d34e1b42309bba90bd6
|
3 |
+
size 8936
|
special_tokens_map.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": {
|
17 |
+
"content": "[PAD]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<unk>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
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:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"32000": {
|
30 |
+
"content": "[PAD]",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
}
|
37 |
+
},
|
38 |
+
"bos_token": "<s>",
|
39 |
+
"chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
|
40 |
+
"clean_up_tokenization_spaces": false,
|
41 |
+
"eos_token": "</s>",
|
42 |
+
"legacy": false,
|
43 |
+
"model_max_length": 2048,
|
44 |
+
"pad_token": "[PAD]",
|
45 |
+
"padding_side": "right",
|
46 |
+
"sp_model_kwargs": {},
|
47 |
+
"tokenizer_class": "LlamaTokenizer",
|
48 |
+
"unk_token": "<unk>",
|
49 |
+
"use_default_system_prompt": false
|
50 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 0.9936305732484076,
|
3 |
+
"total_flos": 11234023833600.0,
|
4 |
+
"train_loss": 0.8443797582235092,
|
5 |
+
"train_runtime": 656.715,
|
6 |
+
"train_samples": 10000,
|
7 |
+
"train_samples_per_second": 15.227,
|
8 |
+
"train_steps_per_second": 0.119
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 0.9936305732484076,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 78,
|
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.012738853503184714,
|
13 |
+
"grad_norm": 7.021888236025707,
|
14 |
+
"learning_rate": 2.5e-06,
|
15 |
+
"loss": 1.1226,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.06369426751592357,
|
20 |
+
"grad_norm": 8.657087918321864,
|
21 |
+
"learning_rate": 1.25e-05,
|
22 |
+
"loss": 1.1459,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.12738853503184713,
|
27 |
+
"grad_norm": 1.0650511236817741,
|
28 |
+
"learning_rate": 1.9959742939952393e-05,
|
29 |
+
"loss": 0.9058,
|
30 |
+
"step": 10
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.1910828025477707,
|
34 |
+
"grad_norm": 0.6764320700876563,
|
35 |
+
"learning_rate": 1.9510565162951538e-05,
|
36 |
+
"loss": 0.8611,
|
37 |
+
"step": 15
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.25477707006369427,
|
41 |
+
"grad_norm": 0.6246578199704307,
|
42 |
+
"learning_rate": 1.8584487936018663e-05,
|
43 |
+
"loss": 0.8437,
|
44 |
+
"step": 20
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.3184713375796178,
|
48 |
+
"grad_norm": 0.6107481502237895,
|
49 |
+
"learning_rate": 1.7227948638273918e-05,
|
50 |
+
"loss": 0.837,
|
51 |
+
"step": 25
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.3821656050955414,
|
55 |
+
"grad_norm": 0.569359163431419,
|
56 |
+
"learning_rate": 1.5508969814521026e-05,
|
57 |
+
"loss": 0.8131,
|
58 |
+
"step": 30
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.445859872611465,
|
62 |
+
"grad_norm": 0.6306438149635343,
|
63 |
+
"learning_rate": 1.3513748240813429e-05,
|
64 |
+
"loss": 0.8169,
|
65 |
+
"step": 35
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.5095541401273885,
|
69 |
+
"grad_norm": 0.5969805073752579,
|
70 |
+
"learning_rate": 1.1342332658176556e-05,
|
71 |
+
"loss": 0.7991,
|
72 |
+
"step": 40
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.5732484076433121,
|
76 |
+
"grad_norm": 0.5842201624755365,
|
77 |
+
"learning_rate": 9.103606910965666e-06,
|
78 |
+
"loss": 0.8228,
|
79 |
+
"step": 45
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.6369426751592356,
|
83 |
+
"grad_norm": 0.5539821078021181,
|
84 |
+
"learning_rate": 6.909830056250527e-06,
|
85 |
+
"loss": 0.8094,
|
86 |
+
"step": 50
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.7006369426751592,
|
90 |
+
"grad_norm": 0.6841832868254093,
|
91 |
+
"learning_rate": 4.87100722594094e-06,
|
92 |
+
"loss": 0.8048,
|
93 |
+
"step": 55
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.7643312101910829,
|
97 |
+
"grad_norm": 0.5435122880502232,
|
98 |
+
"learning_rate": 3.089373510131354e-06,
|
99 |
+
"loss": 0.7957,
|
100 |
+
"step": 60
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.8280254777070064,
|
104 |
+
"grad_norm": 0.5461217619161284,
|
105 |
+
"learning_rate": 1.6542674627869738e-06,
|
106 |
+
"loss": 0.8107,
|
107 |
+
"step": 65
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.89171974522293,
|
111 |
+
"grad_norm": 0.5714446690787659,
|
112 |
+
"learning_rate": 6.37651293602628e-07,
|
113 |
+
"loss": 0.8012,
|
114 |
+
"step": 70
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.9554140127388535,
|
118 |
+
"grad_norm": 0.5789472224989608,
|
119 |
+
"learning_rate": 9.0502382320653e-08,
|
120 |
+
"loss": 0.8019,
|
121 |
+
"step": 75
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.9936305732484076,
|
125 |
+
"eval_loss": 0.8284274339675903,
|
126 |
+
"eval_runtime": 9.6304,
|
127 |
+
"eval_samples_per_second": 51.919,
|
128 |
+
"eval_steps_per_second": 1.661,
|
129 |
+
"step": 78
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.9936305732484076,
|
133 |
+
"step": 78,
|
134 |
+
"total_flos": 11234023833600.0,
|
135 |
+
"train_loss": 0.8443797582235092,
|
136 |
+
"train_runtime": 656.715,
|
137 |
+
"train_samples_per_second": 15.227,
|
138 |
+
"train_steps_per_second": 0.119
|
139 |
+
}
|
140 |
+
],
|
141 |
+
"logging_steps": 5,
|
142 |
+
"max_steps": 78,
|
143 |
+
"num_input_tokens_seen": 0,
|
144 |
+
"num_train_epochs": 1,
|
145 |
+
"save_steps": 100,
|
146 |
+
"total_flos": 11234023833600.0,
|
147 |
+
"train_batch_size": 16,
|
148 |
+
"trial_name": null,
|
149 |
+
"trial_params": null
|
150 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dff7c72dc550056943521e7fb4e81bca238bd8a77959937ee3936619f9d9fcf3
|
3 |
+
size 6328
|