dctanner commited on
Commit
82029ca
1 Parent(s): b58e68c

Model save

Browse files
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: sablo/sablo-pebble-mistral
9
+ model-index:
10
+ - name: sablo-pebble-mistral-dpo-lora-oasst2_dpo_pairs_en
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
+ # sablo-pebble-mistral-dpo-lora-oasst2_dpo_pairs_en
18
+
19
+ This model is a fine-tuned version of [sablo/sablo-pebble-mistral](https://huggingface.co/sablo/sablo-pebble-mistral) on the None dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.6714
22
+ - Rewards/chosen: 0.1838
23
+ - Rewards/rejected: 0.0314
24
+ - Rewards/accuracies: 0.6875
25
+ - Rewards/margins: 0.1524
26
+ - Logps/rejected: -267.5412
27
+ - Logps/chosen: -312.9823
28
+ - Logits/rejected: -2.2363
29
+ - Logits/chosen: -2.2654
30
+
31
+ ## Model description
32
+
33
+ More information needed
34
+
35
+ ## Intended uses & limitations
36
+
37
+ More information needed
38
+
39
+ ## Training and evaluation data
40
+
41
+ More information needed
42
+
43
+ ## Training procedure
44
+
45
+ ### Training hyperparameters
46
+
47
+ The following hyperparameters were used during training:
48
+ - learning_rate: 5e-06
49
+ - train_batch_size: 4
50
+ - eval_batch_size: 8
51
+ - seed: 42
52
+ - distributed_type: multi-GPU
53
+ - num_devices: 8
54
+ - gradient_accumulation_steps: 2
55
+ - total_train_batch_size: 64
56
+ - total_eval_batch_size: 64
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: cosine
59
+ - lr_scheduler_warmup_ratio: 0.1
60
+ - num_epochs: 1
61
+
62
+ ### Training results
63
+
64
+
65
+
66
+ ### Framework versions
67
+
68
+ - PEFT 0.7.1
69
+ - Transformers 4.36.2
70
+ - Pytorch 2.1.2+cu118
71
+ - Datasets 2.14.6
72
+ - Tokenizers 0.15.1
adapter_config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "sablo/sablo-pebble-mistral",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layers_pattern": null,
10
+ "layers_to_transform": null,
11
+ "loftq_config": {},
12
+ "lora_alpha": 128,
13
+ "lora_dropout": 0.05,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 128,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "gate_proj",
23
+ "o_proj",
24
+ "k_proj",
25
+ "q_proj",
26
+ "down_proj",
27
+ "v_proj",
28
+ "up_proj"
29
+ ],
30
+ "task_type": "CAUSAL_LM"
31
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8b0a251b61db24c85bfa953214ad371e6dd568821e075977e969a2cc7b7e02f
3
+ size 671150064
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32000,
3
+ "<|im_start|>": 32001
4
+ }
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_logits/chosen": -2.265434980392456,
4
+ "eval_logits/rejected": -2.236332654953003,
5
+ "eval_logps/chosen": -312.9822692871094,
6
+ "eval_logps/rejected": -267.5411682128906,
7
+ "eval_loss": 0.6714204549789429,
8
+ "eval_rewards/accuracies": 0.6875,
9
+ "eval_rewards/chosen": 0.1837889701128006,
10
+ "eval_rewards/margins": 0.15236972272396088,
11
+ "eval_rewards/rejected": 0.031419236212968826,
12
+ "eval_runtime": 72.2288,
13
+ "eval_samples": 256,
14
+ "eval_samples_per_second": 3.544,
15
+ "eval_steps_per_second": 0.055,
16
+ "train_loss": 0.6752520862378573,
17
+ "train_runtime": 2732.0836,
18
+ "train_samples": 4860,
19
+ "train_samples_per_second": 1.779,
20
+ "train_steps_per_second": 0.028
21
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "eval_logits/chosen": -2.265434980392456,
4
+ "eval_logits/rejected": -2.236332654953003,
5
+ "eval_logps/chosen": -312.9822692871094,
6
+ "eval_logps/rejected": -267.5411682128906,
7
+ "eval_loss": 0.6714204549789429,
8
+ "eval_rewards/accuracies": 0.6875,
9
+ "eval_rewards/chosen": 0.1837889701128006,
10
+ "eval_rewards/margins": 0.15236972272396088,
11
+ "eval_rewards/rejected": 0.031419236212968826,
12
+ "eval_runtime": 72.2288,
13
+ "eval_samples": 256,
14
+ "eval_samples_per_second": 3.544,
15
+ "eval_steps_per_second": 0.055
16
+ }
runs/Feb08_12-57-41_rv-ai1/events.out.tfevents.1707397108.rv-ai1.4285.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72828c0ce659f2ce79fbf375a74009cf8f1ccca782e7f3908e23150cb3b8094c
3
+ size 5658
runs/Feb08_13-04-37_rv-ai1/events.out.tfevents.1707397531.rv-ai1.11994.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03f9097cbfdbbd1c0059887090acdbf194474ca3004f3d61272892c534c0ba32
3
+ size 9979
runs/Feb08_13-04-37_rv-ai1/events.out.tfevents.1707400336.rv-ai1.11994.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21d08fa81a9b44ed79b5a63c6c9cff48e3d24ee5fb5f3aff548526cc3f510feb
3
+ size 815
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": "<|im_end|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "</s>",
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
tokenizer_config.json ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<|im_end|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "32001": {
38
+ "content": "<|im_start|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": false
44
+ }
45
+ },
46
+ "additional_special_tokens": [],
47
+ "bos_token": "<s>",
48
+ "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 %}",
49
+ "clean_up_tokenization_spaces": false,
50
+ "eos_token": "<|im_end|>",
51
+ "legacy": true,
52
+ "model_max_length": 2048,
53
+ "pad_token": "</s>",
54
+ "sp_model_kwargs": {},
55
+ "spaces_between_special_tokens": false,
56
+ "tokenizer_class": "LlamaTokenizer",
57
+ "trust_remote_code": false,
58
+ "unk_token": "<unk>",
59
+ "use_default_system_prompt": false,
60
+ "use_fast": true
61
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.6752520862378573,
4
+ "train_runtime": 2732.0836,
5
+ "train_samples": 4860,
6
+ "train_samples_per_second": 1.779,
7
+ "train_steps_per_second": 0.028
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 100,
6
+ "global_step": 76,
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.01,
13
+ "learning_rate": 6.25e-07,
14
+ "logits/chosen": -2.521343946456909,
15
+ "logits/rejected": -2.3620429039001465,
16
+ "logps/chosen": -521.3419189453125,
17
+ "logps/rejected": -476.025146484375,
18
+ "loss": 0.6931,
19
+ "rewards/accuracies": 0.0,
20
+ "rewards/chosen": 0.0,
21
+ "rewards/margins": 0.0,
22
+ "rewards/rejected": 0.0,
23
+ "step": 1
24
+ },
25
+ {
26
+ "epoch": 0.13,
27
+ "learning_rate": 4.989335440737587e-06,
28
+ "logits/chosen": -2.358004093170166,
29
+ "logits/rejected": -2.4325995445251465,
30
+ "logps/chosen": -345.5417175292969,
31
+ "logps/rejected": -309.4444580078125,
32
+ "loss": 0.6911,
33
+ "rewards/accuracies": 0.5694444179534912,
34
+ "rewards/chosen": 0.01685788854956627,
35
+ "rewards/margins": 0.004424349870532751,
36
+ "rewards/rejected": 0.012433539144694805,
37
+ "step": 10
38
+ },
39
+ {
40
+ "epoch": 0.26,
41
+ "learning_rate": 4.625542839324036e-06,
42
+ "logits/chosen": -2.4209659099578857,
43
+ "logits/rejected": -2.4008195400238037,
44
+ "logps/chosen": -297.3746643066406,
45
+ "logps/rejected": -285.84234619140625,
46
+ "loss": 0.679,
47
+ "rewards/accuracies": 0.612500011920929,
48
+ "rewards/chosen": 0.07351277023553848,
49
+ "rewards/margins": 0.030746515840291977,
50
+ "rewards/rejected": 0.04276625066995621,
51
+ "step": 20
52
+ },
53
+ {
54
+ "epoch": 0.39,
55
+ "learning_rate": 3.81608040719339e-06,
56
+ "logits/chosen": -2.4519193172454834,
57
+ "logits/rejected": -2.5038084983825684,
58
+ "logps/chosen": -297.0643005371094,
59
+ "logps/rejected": -273.5292053222656,
60
+ "loss": 0.6686,
61
+ "rewards/accuracies": 0.6625000238418579,
62
+ "rewards/chosen": 0.1535051167011261,
63
+ "rewards/margins": 0.07135292887687683,
64
+ "rewards/rejected": 0.08215219527482986,
65
+ "step": 30
66
+ },
67
+ {
68
+ "epoch": 0.53,
69
+ "learning_rate": 2.730670898658255e-06,
70
+ "logits/chosen": -2.4741883277893066,
71
+ "logits/rejected": -2.297362804412842,
72
+ "logps/chosen": -321.7876281738281,
73
+ "logps/rejected": -261.57379150390625,
74
+ "loss": 0.673,
75
+ "rewards/accuracies": 0.699999988079071,
76
+ "rewards/chosen": 0.1949460208415985,
77
+ "rewards/margins": 0.07163376361131668,
78
+ "rewards/rejected": 0.12331227213144302,
79
+ "step": 40
80
+ },
81
+ {
82
+ "epoch": 0.66,
83
+ "learning_rate": 1.5968958345321178e-06,
84
+ "logits/chosen": -2.4305148124694824,
85
+ "logits/rejected": -2.4470670223236084,
86
+ "logps/chosen": -298.35980224609375,
87
+ "logps/rejected": -267.8696594238281,
88
+ "loss": 0.6744,
89
+ "rewards/accuracies": 0.6499999761581421,
90
+ "rewards/chosen": 0.09592735767364502,
91
+ "rewards/margins": 0.0405537411570549,
92
+ "rewards/rejected": 0.05537362024188042,
93
+ "step": 50
94
+ },
95
+ {
96
+ "epoch": 0.79,
97
+ "learning_rate": 6.524777069483526e-07,
98
+ "logits/chosen": -2.4608042240142822,
99
+ "logits/rejected": -2.472360849380493,
100
+ "logps/chosen": -333.09967041015625,
101
+ "logps/rejected": -280.1986389160156,
102
+ "loss": 0.6734,
103
+ "rewards/accuracies": 0.737500011920929,
104
+ "rewards/chosen": 0.23129253089427948,
105
+ "rewards/margins": 0.10529744625091553,
106
+ "rewards/rejected": 0.12599506974220276,
107
+ "step": 60
108
+ },
109
+ {
110
+ "epoch": 0.92,
111
+ "learning_rate": 9.54358920679524e-08,
112
+ "logits/chosen": -2.3924319744110107,
113
+ "logits/rejected": -2.393690586090088,
114
+ "logps/chosen": -306.0284729003906,
115
+ "logps/rejected": -271.36529541015625,
116
+ "loss": 0.6684,
117
+ "rewards/accuracies": 0.512499988079071,
118
+ "rewards/chosen": 0.06389348953962326,
119
+ "rewards/margins": 0.027882063761353493,
120
+ "rewards/rejected": 0.03601142764091492,
121
+ "step": 70
122
+ },
123
+ {
124
+ "epoch": 1.0,
125
+ "step": 76,
126
+ "total_flos": 0.0,
127
+ "train_loss": 0.6752520862378573,
128
+ "train_runtime": 2732.0836,
129
+ "train_samples_per_second": 1.779,
130
+ "train_steps_per_second": 0.028
131
+ }
132
+ ],
133
+ "logging_steps": 10,
134
+ "max_steps": 76,
135
+ "num_input_tokens_seen": 0,
136
+ "num_train_epochs": 1,
137
+ "save_steps": 100,
138
+ "total_flos": 0.0,
139
+ "train_batch_size": 4,
140
+ "trial_name": null,
141
+ "trial_params": null
142
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21b0a30d45e44a9f8889106a8ad2870f49ddea159d0e5e301ca5f86d802ac07b
3
+ size 6072