sonu2023 commited on
Commit
5dc6a9f
1 Parent(s): 82a34d2

aritrasen/mistral-dpo

Browse files
README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: TheBloke/OpenHermes-2-Mistral-7B-GPTQ
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ model-index:
9
+ - name: mistral-dpo
10
+ results: []
11
+ ---
12
+
13
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
14
+ should probably proofread and complete it, then remove this comment. -->
15
+
16
+ # mistral-dpo
17
+
18
+ This model is a fine-tuned version of [TheBloke/OpenHermes-2-Mistral-7B-GPTQ](https://huggingface.co/TheBloke/OpenHermes-2-Mistral-7B-GPTQ) on the None dataset.
19
+ It achieves the following results on the evaluation set:
20
+ - Loss: 0.7175
21
+ - Rewards/chosen: 0.5987
22
+ - Rewards/rejected: 0.4947
23
+ - Rewards/accuracies: 0.5769
24
+ - Rewards/margins: 0.1040
25
+ - Logps/rejected: -155.3645
26
+ - Logps/chosen: -178.6683
27
+ - Logits/rejected: -2.3247
28
+ - Logits/chosen: -2.3598
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 0.0002
48
+ - train_batch_size: 1
49
+ - eval_batch_size: 8
50
+ - seed: 42
51
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
52
+ - lr_scheduler_type: linear
53
+ - lr_scheduler_warmup_steps: 2
54
+ - training_steps: 100
55
+ - mixed_precision_training: Native AMP
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
61
+ | 0.7039 | 0.0 | 10 | 0.6929 | 0.0710 | 0.0692 | 0.5 | 0.0018 | -159.6188 | -183.9449 | -2.2886 | -2.3271 |
62
+ | 0.68 | 0.0 | 20 | 0.7113 | -0.0478 | -0.0188 | 0.4519 | -0.0290 | -160.4993 | -185.1333 | -2.2979 | -2.3361 |
63
+ | 0.8777 | 0.0 | 30 | 0.7367 | -0.3027 | -0.2538 | 0.4904 | -0.0489 | -162.8490 | -187.6822 | -2.3132 | -2.3525 |
64
+ | 0.8501 | 0.0 | 40 | 0.7407 | -0.2893 | -0.2458 | 0.4327 | -0.0435 | -162.7690 | -187.5477 | -2.3173 | -2.3556 |
65
+ | 0.7253 | 0.0 | 50 | 0.7207 | -0.0228 | -0.0265 | 0.4904 | 0.0037 | -160.5759 | -184.8833 | -2.3167 | -2.3538 |
66
+ | 0.7293 | 0.0 | 60 | 0.7066 | 0.1787 | 0.1240 | 0.5673 | 0.0547 | -159.0715 | -182.8687 | -2.3194 | -2.3553 |
67
+ | 0.6057 | 0.01 | 70 | 0.6851 | 0.4039 | 0.2915 | 0.5769 | 0.1125 | -157.3963 | -180.6157 | -2.3192 | -2.3543 |
68
+ | 0.7169 | 0.01 | 80 | 0.6853 | 0.5467 | 0.4175 | 0.5769 | 0.1291 | -156.1357 | -179.1884 | -2.3219 | -2.3564 |
69
+ | 0.6324 | 0.01 | 90 | 0.7046 | 0.5751 | 0.4602 | 0.5769 | 0.1149 | -155.7090 | -178.9038 | -2.3232 | -2.3580 |
70
+ | 0.5915 | 0.01 | 100 | 0.7175 | 0.5987 | 0.4947 | 0.5769 | 0.1040 | -155.3645 | -178.6683 | -2.3247 | -2.3598 |
71
+
72
+
73
+ ### Framework versions
74
+
75
+ - Transformers 4.35.2
76
+ - Pytorch 2.0.1+cu117
77
+ - Datasets 2.15.0
78
+ - Tokenizers 0.15.0
adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "TheBloke/OpenHermes-2-Mistral-7B-GPTQ",
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": 6,
13
+ "lora_dropout": 0.1,
14
+ "megatron_config": null,
15
+ "megatron_core": "megatron.core",
16
+ "modules_to_save": null,
17
+ "peft_type": "LORA",
18
+ "r": 4,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "v_proj",
23
+ "q_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM"
26
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e96ed6d91792e6d66f1b1fc0d1ba395d6a5171279143a3b0f51db663cbb7541
3
+ size 6832600
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32000,
3
+ "<|im_start|>": 32001
4
+ }
runs/Jan11_16-40-25_a61afaa5d79f/events.out.tfevents.1704991365.a61afaa5d79f.2583.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:652a208172d14b014be828058c50cbddd8da3d5ae6a6cbd2d3b12760b781401f
3
+ size 19310
special_tokens_map.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<unk>",
4
+ "<s>",
5
+ "</s>"
6
+ ],
7
+ "bos_token": {
8
+ "content": "<s>",
9
+ "lstrip": false,
10
+ "normalized": false,
11
+ "rstrip": false,
12
+ "single_word": false
13
+ },
14
+ "eos_token": {
15
+ "content": "<|im_end|>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false
20
+ },
21
+ "pad_token": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false
27
+ },
28
+ "unk_token": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false
34
+ }
35
+ }
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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "<unk>",
48
+ "<s>",
49
+ "</s>"
50
+ ],
51
+ "bos_token": "<s>",
52
+ "clean_up_tokenization_spaces": false,
53
+ "eos_token": "<|im_end|>",
54
+ "legacy": true,
55
+ "model_max_length": 1000000000000000019884624838656,
56
+ "pad_token": "</s>",
57
+ "sp_model_kwargs": {},
58
+ "spaces_between_special_tokens": false,
59
+ "tokenizer_class": "LlamaTokenizer",
60
+ "trust_remote_code": false,
61
+ "unk_token": "<unk>",
62
+ "use_default_system_prompt": true,
63
+ "use_fast": true
64
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dd8efc565e9efbe13a27d53ed4c0f1f7be7176ab57b0a5714db4d07e43212821
3
+ size 4091