hongce-tech commited on
Commit
4db68ba
1 Parent(s): 62f504a

hongce-tech/openhermes-mistral-dpo-gptq

Browse files
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ library_name: peft
4
+ tags:
5
+ - trl
6
+ - dpo
7
+ - generated_from_trainer
8
+ base_model: TheBloke/OpenHermes-2-Mistral-7B-GPTQ
9
+ model-index:
10
+ - name: openhermes-mistral-dpo-gptq
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
+ # openhermes-mistral-dpo-gptq
18
+
19
+ 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.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.4346
22
+ - Rewards/chosen: 0.6886
23
+ - Rewards/rejected: -0.1517
24
+ - Rewards/accuracies: 0.875
25
+ - Rewards/margins: 0.8403
26
+ - Logps/rejected: -258.0681
27
+ - Logps/chosen: -269.4644
28
+ - Logits/rejected: -2.3873
29
+ - Logits/chosen: -2.4450
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: 0.0002
49
+ - train_batch_size: 4
50
+ - eval_batch_size: 8
51
+ - seed: 42
52
+ - gradient_accumulation_steps: 2
53
+ - total_train_batch_size: 8
54
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
55
+ - lr_scheduler_type: linear
56
+ - lr_scheduler_warmup_steps: 2
57
+ - training_steps: 100
58
+ - mixed_precision_training: Native AMP
59
+
60
+ ### Training results
61
+
62
+ | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
63
+ |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
64
+ | 0.6927 | 0.02 | 5 | 0.6723 | -0.0624 | -0.1130 | 0.5 | 0.0506 | -257.6814 | -276.9746 | -2.3921 | -2.4532 |
65
+ | 0.6896 | 0.04 | 10 | 0.6814 | -0.0837 | -0.1949 | 0.5625 | 0.1113 | -258.5006 | -277.1875 | -2.3785 | -2.4393 |
66
+ | 0.7286 | 0.06 | 15 | 0.7217 | -0.1116 | -0.2049 | 0.8125 | 0.0933 | -258.6005 | -277.4668 | -2.3732 | -2.4343 |
67
+ | 0.6049 | 0.08 | 20 | 0.6488 | -0.5231 | -0.7234 | 0.9375 | 0.2003 | -263.7849 | -281.5815 | -2.3599 | -2.4201 |
68
+ | 3.1019 | 0.1 | 25 | 0.6202 | -0.7269 | -1.0069 | 0.9375 | 0.2800 | -266.6205 | -283.6199 | -2.3529 | -2.4132 |
69
+ | 3.4522 | 0.12 | 30 | 0.6238 | -0.8793 | -1.2160 | 0.875 | 0.3367 | -268.7114 | -285.1440 | -2.3418 | -2.4001 |
70
+ | 1.7538 | 0.14 | 35 | 0.6336 | -0.5977 | -0.8794 | 0.875 | 0.2816 | -265.3451 | -282.3282 | -2.3479 | -2.4068 |
71
+ | 0.6167 | 0.16 | 40 | 0.6979 | 0.0308 | -0.1700 | 0.8125 | 0.2008 | -258.2513 | -276.0429 | -2.3591 | -2.4196 |
72
+ | 1.5103 | 0.18 | 45 | 0.7053 | 0.0521 | -0.1713 | 0.875 | 0.2233 | -258.2638 | -275.8300 | -2.3607 | -2.4207 |
73
+ | 0.6762 | 0.2 | 50 | 0.7144 | 0.1606 | -0.1470 | 0.875 | 0.3076 | -258.0209 | -274.7448 | -2.3658 | -2.4243 |
74
+ | 0.6587 | 0.22 | 55 | 0.7123 | 0.1399 | -0.2934 | 0.8125 | 0.4333 | -259.4854 | -274.9521 | -2.3670 | -2.4244 |
75
+ | 0.7563 | 0.24 | 60 | 0.7987 | 0.4547 | 0.0155 | 0.8125 | 0.4391 | -256.3959 | -271.8042 | -2.3793 | -2.4378 |
76
+ | 0.8208 | 0.26 | 65 | 0.8288 | 1.0234 | 0.5622 | 0.8125 | 0.4611 | -250.9289 | -266.1172 | -2.4012 | -2.4618 |
77
+ | 0.9904 | 0.28 | 70 | 0.7683 | 1.4763 | 0.9615 | 0.8125 | 0.5148 | -246.9362 | -261.5881 | -2.4184 | -2.4798 |
78
+ | 0.8327 | 0.3 | 75 | 0.6556 | 1.6107 | 1.0087 | 0.8125 | 0.6019 | -246.4639 | -260.2441 | -2.4218 | -2.4838 |
79
+ | 0.8238 | 0.32 | 80 | 0.5524 | 1.5571 | 0.8762 | 0.8125 | 0.6809 | -247.7892 | -260.7801 | -2.4168 | -2.4797 |
80
+ | 0.7712 | 0.34 | 85 | 0.5144 | 1.3444 | 0.6352 | 0.8125 | 0.7092 | -250.1996 | -262.9072 | -2.4079 | -2.4697 |
81
+ | 0.691 | 0.36 | 90 | 0.4688 | 1.0225 | 0.2544 | 0.875 | 0.7682 | -254.0075 | -266.1254 | -2.3981 | -2.4588 |
82
+ | 0.6386 | 0.38 | 95 | 0.4490 | 0.8498 | 0.0425 | 0.875 | 0.8074 | -256.1265 | -267.8524 | -2.3927 | -2.4521 |
83
+ | 0.6413 | 0.4 | 100 | 0.4346 | 0.6886 | -0.1517 | 0.875 | 0.8403 | -258.0681 | -269.4644 | -2.3873 | -2.4450 |
84
+
85
+
86
+ ### Framework versions
87
+
88
+ - PEFT 0.8.2
89
+ - Transformers 4.37.2
90
+ - Pytorch 2.0.1+cu117
91
+ - Datasets 2.17.1
92
+ - Tokenizers 0.15.2
adapter_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 8,
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": 8,
19
+ "rank_pattern": {},
20
+ "revision": null,
21
+ "target_modules": [
22
+ "q_proj",
23
+ "v_proj"
24
+ ],
25
+ "task_type": "CAUSAL_LM",
26
+ "use_rslora": false
27
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4097ef9c252c00490381863af7152a65bedc8a2f4e38a202a90693d89b44ff4
3
+ size 13648432
added_tokens.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "<|im_end|>": 32000,
3
+ "<|im_start|>": 32001
4
+ }
runs/Feb21_10-31-11_28cbbe40a779/events.out.tfevents.1708511589.28cbbe40a779.194.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b297c7d8af4c32395dbd70c92828fa6a6d1caa9184f247eeac4963bc56125bf6
3
+ size 33054
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:a40cc1ba499089b7b97127610913e4824f43eac6d62218a41752154692f993d7
3
+ size 4283