andrewbai commited on
Commit
c421636
1 Parent(s): 20358ff

Model save

Browse files
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-small-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-small-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.8264
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.8347 | 0.9936 | 78 | 0.8264 |
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.8476498554914426,
5
+ "train_runtime": 656.6949,
6
+ "train_samples": 10000,
7
+ "train_samples_per_second": 15.228,
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:0f43ccf03d5013b94b83dea058bd3c3a7578cdb6711521e86b611a8a881b3e6b
3
+ size 2200128056
runs/May29_09-36-59_illidan.cs.ucla.edu/events.out.tfevents.1717000695.illidan.cs.ucla.edu.1433104.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80522fc4109cf7c7c607c8cd510cf28fd201db9fa77228769fc1ab38df8a2951
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.8476498554914426,
5
+ "train_runtime": 656.6949,
6
+ "train_samples": 10000,
7
+ "train_samples_per_second": 15.228,
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": 9.419306860000189,
14
+ "learning_rate": 2.5e-06,
15
+ "loss": 1.2082,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.06369426751592357,
20
+ "grad_norm": 11.154561988265748,
21
+ "learning_rate": 1.25e-05,
22
+ "loss": 1.1572,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.12738853503184713,
27
+ "grad_norm": 0.9580718367338527,
28
+ "learning_rate": 1.9959742939952393e-05,
29
+ "loss": 0.926,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.1910828025477707,
34
+ "grad_norm": 0.6962618582606526,
35
+ "learning_rate": 1.9510565162951538e-05,
36
+ "loss": 0.8462,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.25477707006369427,
41
+ "grad_norm": 0.652360226118771,
42
+ "learning_rate": 1.8584487936018663e-05,
43
+ "loss": 0.8207,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.3184713375796178,
48
+ "grad_norm": 0.6036498850889884,
49
+ "learning_rate": 1.7227948638273918e-05,
50
+ "loss": 0.8328,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.3821656050955414,
55
+ "grad_norm": 0.6106437850436714,
56
+ "learning_rate": 1.5508969814521026e-05,
57
+ "loss": 0.8184,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.445859872611465,
62
+ "grad_norm": 0.6112027883233256,
63
+ "learning_rate": 1.3513748240813429e-05,
64
+ "loss": 0.829,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.5095541401273885,
69
+ "grad_norm": 0.5896867860825263,
70
+ "learning_rate": 1.1342332658176556e-05,
71
+ "loss": 0.8223,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.5732484076433121,
76
+ "grad_norm": 0.6019677830367037,
77
+ "learning_rate": 9.103606910965666e-06,
78
+ "loss": 0.7841,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.6369426751592356,
83
+ "grad_norm": 0.5830221008800777,
84
+ "learning_rate": 6.909830056250527e-06,
85
+ "loss": 0.8322,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.7006369426751592,
90
+ "grad_norm": 0.5839501242867685,
91
+ "learning_rate": 4.87100722594094e-06,
92
+ "loss": 0.8069,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.7643312101910829,
97
+ "grad_norm": 0.5957554055545055,
98
+ "learning_rate": 3.089373510131354e-06,
99
+ "loss": 0.7856,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.8280254777070064,
104
+ "grad_norm": 0.5870067617046513,
105
+ "learning_rate": 1.6542674627869738e-06,
106
+ "loss": 0.8141,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.89171974522293,
111
+ "grad_norm": 0.557541376858347,
112
+ "learning_rate": 6.37651293602628e-07,
113
+ "loss": 0.7947,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.9554140127388535,
118
+ "grad_norm": 0.5998913867246424,
119
+ "learning_rate": 9.0502382320653e-08,
120
+ "loss": 0.8347,
121
+ "step": 75
122
+ },
123
+ {
124
+ "epoch": 0.9936305732484076,
125
+ "eval_loss": 0.8263773322105408,
126
+ "eval_runtime": 9.6507,
127
+ "eval_samples_per_second": 51.81,
128
+ "eval_steps_per_second": 1.658,
129
+ "step": 78
130
+ },
131
+ {
132
+ "epoch": 0.9936305732484076,
133
+ "step": 78,
134
+ "total_flos": 11234023833600.0,
135
+ "train_loss": 0.8476498554914426,
136
+ "train_runtime": 656.6949,
137
+ "train_samples_per_second": 15.228,
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:1d9329c075b7a238a0dc7df679763c512d2341681088017ea10a86cdb2be6632
3
+ size 6328