loubnabnl HF staff commited on
Commit
0af7504
1 Parent(s): 8eef09f

Model save

Browse files
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: loubnabnl/smollm-1.7b-16k
3
+ tags:
4
+ - trl
5
+ - sft
6
+ - generated_from_trainer
7
+ datasets:
8
+ - generator
9
+ model-index:
10
+ - name: smollm-1.7B-16k-instruct-long-align-v2
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="200" height="32"/>](https://wandb.ai/loubnabnl/huggingface/runs/zmq3qzqx)
18
+ # smollm-1.7B-16k-instruct-long-align-v2
19
+
20
+ This model is a fine-tuned version of [loubnabnl/smollm-1.7b-16k](https://huggingface.co/loubnabnl/smollm-1.7b-16k) on the generator dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 1.0899
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: 0.001
42
+ - train_batch_size: 4
43
+ - eval_batch_size: 4
44
+ - seed: 42
45
+ - distributed_type: multi-GPU
46
+ - num_devices: 8
47
+ - gradient_accumulation_steps: 4
48
+ - total_train_batch_size: 128
49
+ - total_eval_batch_size: 32
50
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
51
+ - lr_scheduler_type: cosine
52
+ - lr_scheduler_warmup_ratio: 0.1
53
+ - num_epochs: 1
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss |
58
+ |:-------------:|:------:|:----:|:---------------:|
59
+ | 0.9527 | 0.9898 | 73 | 1.0899 |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - Transformers 4.42.3
65
+ - Pytorch 2.1.2
66
+ - Datasets 2.20.0
67
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9898305084745763,
3
+ "total_flos": 91862908010496.0,
4
+ "train_loss": 1.0252333144619041,
5
+ "train_runtime": 1907.7952,
6
+ "train_samples": 189674,
7
+ "train_samples_per_second": 4.937,
8
+ "train_steps_per_second": 0.038
9
+ }
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "loubnabnl/smollm-1.7b-16k",
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": 8192,
14
+ "max_position_embeddings": 16384,
15
+ "mlp_bias": false,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 32,
18
+ "num_hidden_layers": 24,
19
+ "num_key_value_heads": 32,
20
+ "pad_token_id": 2,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 273768.0,
25
+ "tie_word_embeddings": true,
26
+ "torch_dtype": "bfloat16",
27
+ "transformers_version": "4.42.3",
28
+ "use_cache": false,
29
+ "vocab_size": 49152
30
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 2,
6
+ "transformers_version": "4.42.3"
7
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf697c02812e9692caed25d73b7d58652792669b323313a76261f8c990d6186d
3
+ size 3422777952
runs/Sep20_14-52-47_ip-26-0-166-36/events.out.tfevents.1726844521.ip-26-0-166-36.350923.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5a61741b13adbad56e421c929ef06d468ecc9e1c8d158fe6d6dfc58ca25f688
3
+ size 8837
special_tokens_map.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ {
4
+ "content": "<|im_start|>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ {
11
+ "content": "<|im_end|>",
12
+ "lstrip": false,
13
+ "normalized": false,
14
+ "rstrip": false,
15
+ "single_word": false
16
+ }
17
+ ],
18
+ "bos_token": "<|im_start|>",
19
+ "eos_token": "<|im_end|>",
20
+ "pad_token": "<|im_end|>",
21
+ "unk_token": {
22
+ "content": "<|endoftext|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ }
28
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<repo_name>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "4": {
37
+ "content": "<reponame>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "5": {
45
+ "content": "<file_sep>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "6": {
53
+ "content": "<filename>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "7": {
61
+ "content": "<gh_stars>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "8": {
69
+ "content": "<issue_start>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "9": {
77
+ "content": "<issue_comment>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "10": {
85
+ "content": "<issue_closed>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "11": {
93
+ "content": "<jupyter_start>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "12": {
101
+ "content": "<jupyter_text>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "13": {
109
+ "content": "<jupyter_code>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "14": {
117
+ "content": "<jupyter_output>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "15": {
125
+ "content": "<jupyter_script>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "16": {
133
+ "content": "<empty_output>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ }
140
+ },
141
+ "additional_special_tokens": [
142
+ "<|im_start|>",
143
+ "<|im_end|>"
144
+ ],
145
+ "bos_token": "<|im_start|>",
146
+ "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
147
+ "clean_up_tokenization_spaces": false,
148
+ "eos_token": "<|im_end|>",
149
+ "model_max_length": 2048,
150
+ "pad_token": "<|im_end|>",
151
+ "tokenizer_class": "GPT2Tokenizer",
152
+ "unk_token": "<|endoftext|>",
153
+ "vocab_size": 49152
154
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.9898305084745763,
3
+ "total_flos": 91862908010496.0,
4
+ "train_loss": 1.0252333144619041,
5
+ "train_runtime": 1907.7952,
6
+ "train_samples": 189674,
7
+ "train_samples_per_second": 4.937,
8
+ "train_steps_per_second": 0.038
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.9898305084745763,
5
+ "eval_steps": 500,
6
+ "global_step": 73,
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.013559322033898305,
13
+ "grad_norm": 5.050205082877998,
14
+ "learning_rate": 0.000125,
15
+ "loss": 1.2623,
16
+ "step": 1
17
+ },
18
+ {
19
+ "epoch": 0.06779661016949153,
20
+ "grad_norm": 2.9389613294125154,
21
+ "learning_rate": 0.000625,
22
+ "loss": 1.2343,
23
+ "step": 5
24
+ },
25
+ {
26
+ "epoch": 0.13559322033898305,
27
+ "grad_norm": 2.7719726396922333,
28
+ "learning_rate": 0.0009976658173588243,
29
+ "loss": 1.2732,
30
+ "step": 10
31
+ },
32
+ {
33
+ "epoch": 0.2033898305084746,
34
+ "grad_norm": 0.5763036252280294,
35
+ "learning_rate": 0.0009716559066288715,
36
+ "loss": 1.1358,
37
+ "step": 15
38
+ },
39
+ {
40
+ "epoch": 0.2711864406779661,
41
+ "grad_norm": 0.24783483942004164,
42
+ "learning_rate": 0.0009182350690051134,
43
+ "loss": 1.0897,
44
+ "step": 20
45
+ },
46
+ {
47
+ "epoch": 0.3389830508474576,
48
+ "grad_norm": 0.13051456050984434,
49
+ "learning_rate": 0.0008405079293933986,
50
+ "loss": 1.0148,
51
+ "step": 25
52
+ },
53
+ {
54
+ "epoch": 0.4067796610169492,
55
+ "grad_norm": 0.16709779185955242,
56
+ "learning_rate": 0.000742991706621303,
57
+ "loss": 1.0134,
58
+ "step": 30
59
+ },
60
+ {
61
+ "epoch": 0.4745762711864407,
62
+ "grad_norm": 0.09299287343519272,
63
+ "learning_rate": 0.0006313536890992934,
64
+ "loss": 1.0077,
65
+ "step": 35
66
+ },
67
+ {
68
+ "epoch": 0.5423728813559322,
69
+ "grad_norm": 0.08379356751538114,
70
+ "learning_rate": 0.0005120818726180662,
71
+ "loss": 0.9777,
72
+ "step": 40
73
+ },
74
+ {
75
+ "epoch": 0.6101694915254238,
76
+ "grad_norm": 0.06580795358809759,
77
+ "learning_rate": 0.000392107901616097,
78
+ "loss": 0.9547,
79
+ "step": 45
80
+ },
81
+ {
82
+ "epoch": 0.6779661016949152,
83
+ "grad_norm": 0.076526418601839,
84
+ "learning_rate": 0.0002784042272003794,
85
+ "loss": 0.9417,
86
+ "step": 50
87
+ },
88
+ {
89
+ "epoch": 0.7457627118644068,
90
+ "grad_norm": 0.08072786402812815,
91
+ "learning_rate": 0.00017757889363191482,
92
+ "loss": 0.9267,
93
+ "step": 55
94
+ },
95
+ {
96
+ "epoch": 0.8135593220338984,
97
+ "grad_norm": 0.08008172204396788,
98
+ "learning_rate": 9.549150281252633e-05,
99
+ "loss": 0.9646,
100
+ "step": 60
101
+ },
102
+ {
103
+ "epoch": 0.8813559322033898,
104
+ "grad_norm": 0.049972195778438866,
105
+ "learning_rate": 3.691267552111183e-05,
106
+ "loss": 0.9495,
107
+ "step": 65
108
+ },
109
+ {
110
+ "epoch": 0.9491525423728814,
111
+ "grad_norm": 0.05054132063952455,
112
+ "learning_rate": 5.2468002744744395e-06,
113
+ "loss": 0.9527,
114
+ "step": 70
115
+ },
116
+ {
117
+ "epoch": 0.9898305084745763,
118
+ "eval_loss": 1.0899375677108765,
119
+ "eval_runtime": 139.4951,
120
+ "eval_samples_per_second": 20.775,
121
+ "eval_steps_per_second": 0.652,
122
+ "step": 73
123
+ },
124
+ {
125
+ "epoch": 0.9898305084745763,
126
+ "step": 73,
127
+ "total_flos": 91862908010496.0,
128
+ "train_loss": 1.0252333144619041,
129
+ "train_runtime": 1907.7952,
130
+ "train_samples_per_second": 4.937,
131
+ "train_steps_per_second": 0.038
132
+ }
133
+ ],
134
+ "logging_steps": 5,
135
+ "max_steps": 73,
136
+ "num_input_tokens_seen": 0,
137
+ "num_train_epochs": 1,
138
+ "save_steps": 500,
139
+ "stateful_callbacks": {
140
+ "TrainerControl": {
141
+ "args": {
142
+ "should_epoch_stop": false,
143
+ "should_evaluate": false,
144
+ "should_log": false,
145
+ "should_save": false,
146
+ "should_training_stop": false
147
+ },
148
+ "attributes": {}
149
+ }
150
+ },
151
+ "total_flos": 91862908010496.0,
152
+ "train_batch_size": 4,
153
+ "trial_name": null,
154
+ "trial_params": null
155
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e05a9fd8d1c579cec81a9779f14a5cc01bd735e63b43be45a12d10c4f55c1643
3
+ size 6456
vocab.json ADDED
The diff for this file is too large to render. See raw diff