loubnabnl HF staff commited on
Commit
57147fd
1 Parent(s): 753360f

Model save

Browse files
README.md ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: HuggingFaceTB/cosmo2-350M-webinst-sc2
3
+ tags:
4
+ - trl
5
+ - dpo
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: cosmo2-350M-webinst-sc2-dpo-argilla-ep1
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ [<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/z5gb262b)
16
+ # cosmo2-350M-webinst-sc2-dpo-argilla-ep1
17
+
18
+ This model is a fine-tuned version of [HuggingFaceTB/cosmo2-350M-webinst-sc2](https://huggingface.co/HuggingFaceTB/cosmo2-350M-webinst-sc2) on an unknown dataset.
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-06
38
+ - train_batch_size: 2
39
+ - eval_batch_size: 4
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 8
43
+ - gradient_accumulation_steps: 8
44
+ - total_train_batch_size: 128
45
+ - total_eval_batch_size: 32
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: cosine
48
+ - lr_scheduler_warmup_ratio: 0.1
49
+ - num_epochs: 1
50
+
51
+ ### Training results
52
+
53
+
54
+
55
+ ### Framework versions
56
+
57
+ - Transformers 4.42.3
58
+ - Pytorch 2.1.2
59
+ - Datasets 2.20.0
60
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 0.985781990521327,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.6860739244864538,
5
+ "train_runtime": 316.322,
6
+ "train_samples": 6750,
7
+ "train_samples_per_second": 21.339,
8
+ "train_steps_per_second": 0.164
9
+ }
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "HuggingFaceTB/cosmo2-350M-webinst-sc2",
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": 960,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 2560,
14
+ "max_position_embeddings": 2048,
15
+ "mlp_bias": false,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 15,
18
+ "num_hidden_layers": 32,
19
+ "num_key_value_heads": 5,
20
+ "pad_token_id": 2,
21
+ "pretraining_tp": 1,
22
+ "rms_norm_eps": 1e-05,
23
+ "rope_scaling": null,
24
+ "rope_theta": 10000.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:0c109192ffddcfc2be1ba4ae52a01e5713a98de94e98d90167e218aeebf919cc
3
+ size 723674912
runs/Jul15_21-49-55_ip-26-0-167-245/events.out.tfevents.1721080291.ip-26-0-167-245.4053728.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f5dce01aa2e28781812105dc503156ef6f8285cc8c15e77a4b2f17cbfb8eb53
3
+ size 9608
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<|im_start|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|im_end|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
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.985781990521327,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.6860739244864538,
5
+ "train_runtime": 316.322,
6
+ "train_samples": 6750,
7
+ "train_samples_per_second": 21.339,
8
+ "train_steps_per_second": 0.164
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 0.985781990521327,
5
+ "eval_steps": 100,
6
+ "global_step": 52,
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.018957345971563982,
13
+ "grad_norm": 3.021558692298453,
14
+ "learning_rate": 8.333333333333333e-07,
15
+ "logits/chosen": -0.5616407990455627,
16
+ "logits/rejected": -0.42516714334487915,
17
+ "logps/chosen": -373.83282470703125,
18
+ "logps/rejected": -493.9554748535156,
19
+ "loss": 0.6931,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/chosen": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/rejected": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.1895734597156398,
28
+ "grad_norm": 3.23447571449701,
29
+ "learning_rate": 4.907293218369499e-06,
30
+ "logits/chosen": -0.1685400903224945,
31
+ "logits/rejected": -0.19170813262462616,
32
+ "logps/chosen": -464.29693603515625,
33
+ "logps/rejected": -501.8587341308594,
34
+ "loss": 0.6936,
35
+ "rewards/accuracies": 0.4097222089767456,
36
+ "rewards/chosen": 0.0008683237829245627,
37
+ "rewards/margins": 0.0007554867188446224,
38
+ "rewards/rejected": 0.00011283738422207534,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.3791469194312796,
43
+ "grad_norm": 3.9389946840001264,
44
+ "learning_rate": 3.941700805287169e-06,
45
+ "logits/chosen": -0.27595698833465576,
46
+ "logits/rejected": -0.21783480048179626,
47
+ "logps/chosen": -438.6907653808594,
48
+ "logps/rejected": -475.0658264160156,
49
+ "loss": 0.6894,
50
+ "rewards/accuracies": 0.4937500059604645,
51
+ "rewards/chosen": -0.003008360043168068,
52
+ "rewards/margins": 0.0011918289819732308,
53
+ "rewards/rejected": -0.00420018844306469,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.5687203791469194,
58
+ "grad_norm": 3.2779169381175386,
59
+ "learning_rate": 2.3293939665883233e-06,
60
+ "logits/chosen": -0.012437907047569752,
61
+ "logits/rejected": -0.20707044005393982,
62
+ "logps/chosen": -476.6265563964844,
63
+ "logps/rejected": -474.9481506347656,
64
+ "loss": 0.6873,
65
+ "rewards/accuracies": 0.53125,
66
+ "rewards/chosen": -0.01446505170315504,
67
+ "rewards/margins": 0.007696834392845631,
68
+ "rewards/rejected": -0.02216188609600067,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.7582938388625592,
73
+ "grad_norm": 2.8592366061141954,
74
+ "learning_rate": 7.936171419533653e-07,
75
+ "logits/chosen": -0.4586310386657715,
76
+ "logits/rejected": -0.5929983854293823,
77
+ "logps/chosen": -422.44293212890625,
78
+ "logps/rejected": -402.6429748535156,
79
+ "loss": 0.6827,
80
+ "rewards/accuracies": 0.574999988079071,
81
+ "rewards/chosen": -0.018473980948328972,
82
+ "rewards/margins": 0.014362658374011517,
83
+ "rewards/rejected": -0.03283664211630821,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 0.9478672985781991,
88
+ "grad_norm": 3.296382116125289,
89
+ "learning_rate": 2.3285134909173113e-08,
90
+ "logits/chosen": 0.08067023754119873,
91
+ "logits/rejected": 0.19673587381839752,
92
+ "logps/chosen": -483.49212646484375,
93
+ "logps/rejected": -536.2080688476562,
94
+ "loss": 0.679,
95
+ "rewards/accuracies": 0.5874999761581421,
96
+ "rewards/chosen": -0.017066333442926407,
97
+ "rewards/margins": 0.01992700807750225,
98
+ "rewards/rejected": -0.03699334338307381,
99
+ "step": 50
100
+ },
101
+ {
102
+ "epoch": 0.985781990521327,
103
+ "step": 52,
104
+ "total_flos": 0.0,
105
+ "train_loss": 0.6860739244864538,
106
+ "train_runtime": 316.322,
107
+ "train_samples_per_second": 21.339,
108
+ "train_steps_per_second": 0.164
109
+ }
110
+ ],
111
+ "logging_steps": 10,
112
+ "max_steps": 52,
113
+ "num_input_tokens_seen": 0,
114
+ "num_train_epochs": 1,
115
+ "save_steps": 500,
116
+ "stateful_callbacks": {
117
+ "TrainerControl": {
118
+ "args": {
119
+ "should_epoch_stop": false,
120
+ "should_evaluate": false,
121
+ "should_log": false,
122
+ "should_save": false,
123
+ "should_training_stop": false
124
+ },
125
+ "attributes": {}
126
+ }
127
+ },
128
+ "total_flos": 0.0,
129
+ "train_batch_size": 2,
130
+ "trial_name": null,
131
+ "trial_params": null
132
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:753772c371abf783b3f96c5ddc2c75471f7281c7efc51b1f2c0c1b6ddd4988f7
3
+ size 6520
vocab.json ADDED
The diff for this file is too large to render. See raw diff