pkarypis commited on
Commit
5605815
1 Parent(s): 02043d1

Model save

Browse files
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: JackFram/llama-68m
4
+ tags:
5
+ - trl
6
+ - sft
7
+ - generated_from_trainer
8
+ datasets:
9
+ - generator
10
+ model-index:
11
+ - name: gpt2-sft-lima
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # gpt2-sft-lima
19
+
20
+ This model is a fine-tuned version of [JackFram/llama-68m](https://huggingface.co/JackFram/llama-68m) on the generator dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 5.4846
23
+
24
+ ## Model description
25
+
26
+ More information needed
27
+
28
+ ## Intended uses & limitations
29
+
30
+ More information needed
31
+
32
+ ## Training and evaluation data
33
+
34
+ More information needed
35
+
36
+ ## Training procedure
37
+
38
+ ### Training hyperparameters
39
+
40
+ The following hyperparameters were used during training:
41
+ - learning_rate: 2e-05
42
+ - train_batch_size: 32
43
+ - eval_batch_size: 8
44
+ - seed: 42
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: cosine
47
+ - lr_scheduler_warmup_ratio: 0.1
48
+ - num_epochs: 2.0
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 3.4931 | 1.0 | 24 | 5.5962 |
55
+ | 3.4278 | 2.0 | 48 | 5.4846 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.40.1
61
+ - Pytorch 2.1.2
62
+ - Datasets 2.14.6
63
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 394600362541056.0,
4
+ "train_loss": 3.4869212259848914,
5
+ "train_runtime": 14.4504,
6
+ "train_samples": 1030,
7
+ "train_samples_per_second": 102.281,
8
+ "train_steps_per_second": 3.322
9
+ }
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "JackFram/llama-68m",
3
+ "architectures": [
4
+ "LlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 0,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "max_position_embeddings": 2048,
15
+ "model_type": "llama",
16
+ "num_attention_heads": 12,
17
+ "num_hidden_layers": 2,
18
+ "num_key_value_heads": 12,
19
+ "pad_token_id": 1,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_scaling": null,
23
+ "rope_theta": 10000.0,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "bfloat16",
26
+ "transformers_version": "4.40.1",
27
+ "use_cache": false,
28
+ "vocab_size": 32000
29
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.40.1"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8806bf32cff7ec1911f05503bac5b2c0db8784dc06f7b1ec97ab24b7c4851c2
3
+ size 136062744
runs/Apr25_13-08-35_noveens/events.out.tfevents.1714075723.noveens.2735246.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d522c8d2aec3088031ea7be2280b090dd94462a43adb439f7aaff3c819979a6
3
+ size 7762
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": true,
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.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,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": true,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": true,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": true,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '### Human\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 %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 2048,
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": false,
43
+ "use_fast": true
44
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.0,
3
+ "total_flos": 394600362541056.0,
4
+ "train_loss": 3.4869212259848914,
5
+ "train_runtime": 14.4504,
6
+ "train_samples": 1030,
7
+ "train_samples_per_second": 102.281,
8
+ "train_steps_per_second": 3.322
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.0,
5
+ "eval_steps": 500,
6
+ "global_step": 48,
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.041666666666666664,
13
+ "grad_norm": 6.875,
14
+ "learning_rate": 4.000000000000001e-06,
15
+ "loss": 3.886,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.20833333333333334,
20
+ "grad_norm": 5.15625,
21
+ "learning_rate": 2e-05,
22
+ "loss": 3.5195,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.4166666666666667,
27
+ "grad_norm": 3.546875,
28
+ "learning_rate": 1.9340161087325483e-05,
29
+ "loss": 3.6848,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.625,
34
+ "grad_norm": 3.0625,
35
+ "learning_rate": 1.744772182743782e-05,
36
+ "loss": 3.5055,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.8333333333333334,
41
+ "grad_norm": 3.0,
42
+ "learning_rate": 1.4572423233046386e-05,
43
+ "loss": 3.4931,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_loss": 5.596227169036865,
49
+ "eval_runtime": 0.0423,
50
+ "eval_samples_per_second": 283.93,
51
+ "eval_steps_per_second": 47.322,
52
+ "step": 24
53
+ },
54
+ {
55
+ "epoch": 1.0416666666666667,
56
+ "grad_norm": 2.90625,
57
+ "learning_rate": 1.1093712083778748e-05,
58
+ "loss": 3.4722,
59
+ "step": 25
60
+ },
61
+ {
62
+ "epoch": 1.25,
63
+ "grad_norm": 2.828125,
64
+ "learning_rate": 7.470666176083193e-06,
65
+ "loss": 3.4108,
66
+ "step": 30
67
+ },
68
+ {
69
+ "epoch": 1.4583333333333333,
70
+ "grad_norm": 2.5,
71
+ "learning_rate": 4.181410844420473e-06,
72
+ "loss": 3.4187,
73
+ "step": 35
74
+ },
75
+ {
76
+ "epoch": 1.6666666666666665,
77
+ "grad_norm": 2.8125,
78
+ "learning_rate": 1.660021821101222e-06,
79
+ "loss": 3.4852,
80
+ "step": 40
81
+ },
82
+ {
83
+ "epoch": 1.875,
84
+ "grad_norm": 2.484375,
85
+ "learning_rate": 2.392412244407294e-07,
86
+ "loss": 3.4278,
87
+ "step": 45
88
+ },
89
+ {
90
+ "epoch": 2.0,
91
+ "eval_loss": 5.484647274017334,
92
+ "eval_runtime": 0.0423,
93
+ "eval_samples_per_second": 283.999,
94
+ "eval_steps_per_second": 47.333,
95
+ "step": 48
96
+ },
97
+ {
98
+ "epoch": 2.0,
99
+ "step": 48,
100
+ "total_flos": 394600362541056.0,
101
+ "train_loss": 3.4869212259848914,
102
+ "train_runtime": 14.4504,
103
+ "train_samples_per_second": 102.281,
104
+ "train_steps_per_second": 3.322
105
+ }
106
+ ],
107
+ "logging_steps": 5,
108
+ "max_steps": 48,
109
+ "num_input_tokens_seen": 0,
110
+ "num_train_epochs": 2,
111
+ "save_steps": 1000000000,
112
+ "total_flos": 394600362541056.0,
113
+ "train_batch_size": 32,
114
+ "trial_name": null,
115
+ "trial_params": null
116
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2c9ebcd5bf35bdc52b59db2bc7861d16777727aab05faf5f6fe289107775724
3
+ size 5048