TrevorJS commited on
Commit
9b4ffd7
·
1 Parent(s): 23ed960

TrevorJS/dpo

Browse files
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ base_model: microsoft/phi-1_5
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: results
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # results
15
+
16
+ This model is a fine-tuned version of [microsoft/phi-1_5](https://huggingface.co/microsoft/phi-1_5) on the None dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 0.0001
19
+ - Rewards/chosen: -7.5874
20
+ - Rewards/rejected: -24.0497
21
+ - Rewards/accuracies: 1.0
22
+ - Rewards/margins: 16.4623
23
+ - Logps/rejected: -274.3435
24
+ - Logps/chosen: -143.2090
25
+ - Logits/rejected: -1.8100
26
+ - Logits/chosen: -1.4786
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 0.0005
46
+ - train_batch_size: 4
47
+ - eval_batch_size: 1
48
+ - seed: 42
49
+ - gradient_accumulation_steps: 4
50
+ - total_train_batch_size: 16
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_steps: 100
54
+ - training_steps: 1500
55
+
56
+ ### Training results
57
+
58
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
59
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
60
+ | 0.0417 | 0.07 | 100 | 0.0418 | -0.3892 | -8.0118 | 0.9792 | 7.6226 | -113.9640 | -71.2264 | 1.8258 | 1.7898 |
61
+ | 0.0221 | 0.15 | 200 | 0.0303 | -2.5657 | -10.9212 | 0.9896 | 8.3555 | -143.0585 | -92.9920 | 1.9704 | 2.1047 |
62
+ | 0.0107 | 0.22 | 300 | 0.0131 | -1.7388 | -11.6047 | 0.9965 | 9.8659 | -149.8935 | -84.7232 | 1.0731 | 0.9750 |
63
+ | 0.0204 | 0.29 | 400 | 0.0108 | -2.0131 | -11.9647 | 0.9965 | 9.9516 | -153.4932 | -87.4658 | 1.3610 | 1.6740 |
64
+ | 0.0067 | 0.36 | 500 | 0.0080 | -5.9488 | -19.6561 | 0.9974 | 13.7073 | -230.4076 | -126.8228 | -0.4464 | -0.2114 |
65
+ | 0.0 | 0.44 | 600 | 0.0047 | -5.6456 | -20.2381 | 0.9983 | 14.5924 | -236.2268 | -123.7909 | -0.4142 | -0.0244 |
66
+ | 0.0003 | 0.51 | 700 | 0.0018 | -7.2250 | -21.3351 | 0.9991 | 14.1101 | -247.1974 | -139.5853 | -0.3510 | -0.0203 |
67
+ | 0.0005 | 0.58 | 800 | 0.0008 | -7.2263 | -21.2475 | 0.9991 | 14.0211 | -246.3209 | -139.5981 | -0.8673 | -0.7010 |
68
+ | 0.0 | 0.66 | 900 | 0.0009 | -10.2371 | -26.0402 | 0.9991 | 15.8031 | -294.2486 | -169.7062 | -1.9784 | -1.7799 |
69
+ | 0.0 | 0.73 | 1000 | 0.0008 | -5.9544 | -22.0767 | 0.9991 | 16.1223 | -254.6137 | -126.8789 | -1.0623 | -0.6039 |
70
+ | 0.0 | 0.8 | 1100 | 0.0007 | -7.3374 | -23.8700 | 0.9991 | 16.5327 | -272.5467 | -140.7083 | -1.5517 | -1.1710 |
71
+ | 0.0 | 0.87 | 1200 | 0.0007 | -7.6398 | -24.1605 | 0.9991 | 16.5207 | -275.4509 | -143.7327 | -1.8124 | -1.4901 |
72
+ | 0.0 | 0.95 | 1300 | 0.0001 | -7.5920 | -24.0476 | 1.0 | 16.4556 | -274.3220 | -143.2550 | -1.8115 | -1.4816 |
73
+ | 0.0001 | 1.02 | 1400 | 0.0001 | -7.5872 | -24.0480 | 1.0 | 16.4608 | -274.3262 | -143.2065 | -1.8102 | -1.4791 |
74
+ | 0.0 | 1.09 | 1500 | 0.0001 | -7.5874 | -24.0497 | 1.0 | 16.4623 | -274.3435 | -143.2090 | -1.8100 | -1.4786 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.33.2
80
+ - Pytorch 2.0.1+cu118
81
+ - Datasets 2.14.5
82
+ - Tokenizers 0.13.3
adapter_config.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_mapping": null,
3
+ "base_model_name_or_path": null,
4
+ "bias": "none",
5
+ "fan_in_fan_out": false,
6
+ "inference_mode": true,
7
+ "init_lora_weights": true,
8
+ "layers_pattern": null,
9
+ "layers_to_transform": null,
10
+ "lora_alpha": 64,
11
+ "lora_dropout": 0.05,
12
+ "modules_to_save": null,
13
+ "peft_type": "LORA",
14
+ "r": 64,
15
+ "revision": null,
16
+ "target_modules": [
17
+ "layers.0.wte",
18
+ "layers.20.mixer.Wqkv",
19
+ "layers.21.mixer.Wqkv",
20
+ "layers.22.mixer.Wqkv",
21
+ "layers.23.mixer.Wqkv",
22
+ "layers.24.mixer.Wqkv",
23
+ "layers.20.mixer.out_proj",
24
+ "layers.21.mixer.out_proj",
25
+ "layers.22.mixer.out_proj",
26
+ "layers.23.mixer.out_proj",
27
+ "layers.24.mixer.out_proj",
28
+ "layers.11.mlp.fc1",
29
+ "layers.17.mlp.fc1",
30
+ "layers.24.mlp.fc1",
31
+ "layers.11.mlp.fc2",
32
+ "layers.17.mlp.fc2",
33
+ "layers.24.mlp.fc2",
34
+ "layers.25.linear"
35
+ ],
36
+ "task_type": "CAUSAL_LM"
37
+ }
adapter_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b75bae5a5d0f42909f0d1c4cbe510186e7a7a86e30bb765ebad5c0c494f66ef
3
+ size 29373021
added_tokens.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "\t\t": 50294,
3
+ "\t\t\t": 50293,
4
+ "\t\t\t\t": 50292,
5
+ "\t\t\t\t\t": 50291,
6
+ "\t\t\t\t\t\t": 50290,
7
+ "\t\t\t\t\t\t\t": 50289,
8
+ "\t\t\t\t\t\t\t\t": 50288,
9
+ "\t\t\t\t\t\t\t\t\t": 50287,
10
+ " ": 50286,
11
+ " ": 50285,
12
+ " ": 50284,
13
+ " ": 50283,
14
+ " ": 50282,
15
+ " ": 50281,
16
+ " ": 50280,
17
+ " ": 50279,
18
+ " ": 50278,
19
+ " ": 50277,
20
+ " ": 50276,
21
+ " ": 50275,
22
+ " ": 50274,
23
+ " ": 50273,
24
+ " ": 50272,
25
+ " ": 50271,
26
+ " ": 50270,
27
+ " ": 50269,
28
+ " ": 50268,
29
+ " ": 50267,
30
+ " ": 50266,
31
+ " ": 50265,
32
+ " ": 50264,
33
+ " ": 50263,
34
+ " ": 50262,
35
+ " ": 50261,
36
+ " ": 50260,
37
+ " ": 50259,
38
+ " ": 50258,
39
+ " ": 50257
40
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<|endoftext|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|endoftext|>",
6
+ "model_max_length": 2048,
7
+ "tokenizer_class": "CodeGenTokenizer",
8
+ "unk_token": "<|endoftext|>"
9
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8447974061ff3aa683909047bc0204601a3eb99eb7a33c17eb97165db995a0b3
3
+ size 4027
vocab.json ADDED
The diff for this file is too large to render. See raw diff