jiuhai commited on
Commit
31cc767
1 Parent(s): 6b42347

Model save

Browse files
README.md CHANGED
@@ -1,11 +1,8 @@
1
  ---
2
- license: mit
3
- base_model: HuggingFaceH4/mistral-7b-sft-beta
4
  tags:
5
- - alignment-handbook
6
  - generated_from_trainer
7
- datasets:
8
- - Anthropic/hh-rlhf
9
  model-index:
10
  - name: zephyr-7b-dpo-lora
11
  results: []
@@ -16,17 +13,17 @@ should probably proofread and complete it, then remove this comment. -->
16
 
17
  # zephyr-7b-dpo-lora
18
 
19
- This model is a fine-tuned version of [HuggingFaceH4/mistral-7b-sft-beta](https://huggingface.co/HuggingFaceH4/mistral-7b-sft-beta) on the Anthropic/hh-rlhf dataset.
20
  It achieves the following results on the evaluation set:
21
- - Loss: 0.7922
22
- - Rewards/chosen: -6.3032
23
- - Rewards/rejected: -8.1308
24
- - Rewards/accuracies: 0.7062
25
- - Rewards/margins: 1.8276
26
- - Logps/rejected: -238.5443
27
- - Logps/chosen: -222.5519
28
- - Logits/rejected: -2.6859
29
- - Logits/chosen: -2.6948
30
 
31
  ## Model description
32
 
@@ -45,7 +42,7 @@ More information needed
45
  ### Training hyperparameters
46
 
47
  The following hyperparameters were used during training:
48
- - learning_rate: 0.0002
49
  - train_batch_size: 16
50
  - eval_batch_size: 16
51
  - seed: 42
@@ -56,20 +53,18 @@ The following hyperparameters were used during training:
56
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
  - lr_scheduler_type: linear
58
  - lr_scheduler_warmup_ratio: 0.1
59
- - num_epochs: 3
60
 
61
  ### Training results
62
 
63
  | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
64
  |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
65
- | 0.5668 | 1.0 | 1246 | 0.5712 | -0.9288 | -1.6660 | 0.6922 | 0.7372 | -173.8961 | -168.8080 | -2.7862 | -2.7998 |
66
- | 0.2986 | 2.0 | 2492 | 0.6037 | -2.4129 | -3.4852 | 0.7201 | 1.0722 | -192.0881 | -183.6498 | -2.8543 | -2.8663 |
67
- | 0.0973 | 3.0 | 3738 | 0.7922 | -6.3032 | -8.1308 | 0.7062 | 1.8276 | -238.5443 | -222.5519 | -2.6859 | -2.6948 |
68
 
69
 
70
  ### Framework versions
71
 
72
  - Transformers 4.35.0
73
- - Pytorch 2.1.1+cu121
74
  - Datasets 2.14.6
75
  - Tokenizers 0.14.1
 
1
  ---
2
+ license: apache-2.0
3
+ base_model: alignment-handbook/zephyr-7b-sft-full
4
  tags:
 
5
  - generated_from_trainer
 
 
6
  model-index:
7
  - name: zephyr-7b-dpo-lora
8
  results: []
 
13
 
14
  # zephyr-7b-dpo-lora
15
 
16
+ This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-full](https://huggingface.co/alignment-handbook/zephyr-7b-sft-full) on the None dataset.
17
  It achieves the following results on the evaluation set:
18
+ - Loss: 0.6488
19
+ - Rewards/chosen: 0.0341
20
+ - Rewards/rejected: -0.0820
21
+ - Rewards/accuracies: 0.7109
22
+ - Rewards/margins: 0.1161
23
+ - Logps/rejected: -224.8079
24
+ - Logps/chosen: -271.6428
25
+ - Logits/rejected: -3.0562
26
+ - Logits/chosen: -3.0761
27
 
28
  ## Model description
29
 
 
42
  ### Training hyperparameters
43
 
44
  The following hyperparameters were used during training:
45
+ - learning_rate: 5e-07
46
  - train_batch_size: 16
47
  - eval_batch_size: 16
48
  - seed: 42
 
53
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
54
  - lr_scheduler_type: linear
55
  - lr_scheduler_warmup_ratio: 0.1
56
+ - num_epochs: 1.0
57
 
58
  ### Training results
59
 
60
  | Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
61
  |:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
62
+ | 0.6488 | 1.0 | 485 | 0.6488 | 0.0341 | -0.0820 | 0.7109 | 0.1161 | -224.8079 | -271.6428 | -3.0562 | -3.0761 |
 
 
63
 
64
 
65
  ### Framework versions
66
 
67
  - Transformers 4.35.0
68
+ - Pytorch 2.1.0+cu121
69
  - Datasets 2.14.6
70
  - Tokenizers 0.14.1
adapter_config.json CHANGED
@@ -17,9 +17,9 @@
17
  "revision": null,
18
  "target_modules": [
19
  "o_proj",
20
- "v_proj",
21
  "q_proj",
22
- "k_proj"
 
23
  ],
24
  "task_type": "CAUSAL_LM"
25
  }
 
17
  "revision": null,
18
  "target_modules": [
19
  "o_proj",
 
20
  "q_proj",
21
+ "k_proj",
22
+ "v_proj"
23
  ],
24
  "task_type": "CAUSAL_LM"
25
  }
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:30289b286308940696068f0ad4375260c6bfb714350a71c97ef8a9e9582042fb
3
  size 109086672
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df593ca3ae7bf680c032ec8295da32728b125748963b4665b4da1dfd2c2164db
3
  size 109086672
all_results.json CHANGED
@@ -1,21 +1,21 @@
1
  {
2
- "epoch": 3.0,
3
- "eval_logits/chosen": -2.694794178009033,
4
- "eval_logits/rejected": -2.6858575344085693,
5
- "eval_logps/chosen": -222.5519256591797,
6
- "eval_logps/rejected": -238.54434204101562,
7
- "eval_loss": 0.7921916842460632,
8
- "eval_rewards/accuracies": 0.7061567306518555,
9
- "eval_rewards/chosen": -6.303151607513428,
10
- "eval_rewards/margins": 1.8276441097259521,
11
- "eval_rewards/rejected": -8.1307954788208,
12
- "eval_runtime": 852.8388,
13
- "eval_samples": 8483,
14
- "eval_samples_per_second": 9.947,
15
- "eval_steps_per_second": 0.079,
16
- "train_loss": 0.3484600728976656,
17
- "train_runtime": 105269.9843,
18
- "train_samples": 159397,
19
- "train_samples_per_second": 4.543,
20
- "train_steps_per_second": 0.036
21
  }
 
1
  {
2
+ "epoch": 1.0,
3
+ "eval_logits/chosen": -3.07612943649292,
4
+ "eval_logits/rejected": -3.056239604949951,
5
+ "eval_logps/chosen": -271.6427917480469,
6
+ "eval_logps/rejected": -224.8079376220703,
7
+ "eval_loss": 0.6488261818885803,
8
+ "eval_rewards/accuracies": 0.7109375,
9
+ "eval_rewards/chosen": 0.034067459404468536,
10
+ "eval_rewards/margins": 0.11610361933708191,
11
+ "eval_rewards/rejected": -0.08203616738319397,
12
+ "eval_runtime": 254.1478,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 7.869,
15
+ "eval_steps_per_second": 0.063,
16
+ "train_loss": 0.6667533972828659,
17
+ "train_runtime": 15505.6746,
18
+ "train_samples": 61966,
19
+ "train_samples_per_second": 3.996,
20
+ "train_steps_per_second": 0.031
21
  }
eval_results.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
- "epoch": 3.0,
3
- "eval_logits/chosen": -2.694794178009033,
4
- "eval_logits/rejected": -2.6858575344085693,
5
- "eval_logps/chosen": -222.5519256591797,
6
- "eval_logps/rejected": -238.54434204101562,
7
- "eval_loss": 0.7921916842460632,
8
- "eval_rewards/accuracies": 0.7061567306518555,
9
- "eval_rewards/chosen": -6.303151607513428,
10
- "eval_rewards/margins": 1.8276441097259521,
11
- "eval_rewards/rejected": -8.1307954788208,
12
- "eval_runtime": 852.8388,
13
- "eval_samples": 8483,
14
- "eval_samples_per_second": 9.947,
15
- "eval_steps_per_second": 0.079
16
  }
 
1
  {
2
+ "epoch": 1.0,
3
+ "eval_logits/chosen": -3.07612943649292,
4
+ "eval_logits/rejected": -3.056239604949951,
5
+ "eval_logps/chosen": -271.6427917480469,
6
+ "eval_logps/rejected": -224.8079376220703,
7
+ "eval_loss": 0.6488261818885803,
8
+ "eval_rewards/accuracies": 0.7109375,
9
+ "eval_rewards/chosen": 0.034067459404468536,
10
+ "eval_rewards/margins": 0.11610361933708191,
11
+ "eval_rewards/rejected": -0.08203616738319397,
12
+ "eval_runtime": 254.1478,
13
+ "eval_samples": 2000,
14
+ "eval_samples_per_second": 7.869,
15
+ "eval_steps_per_second": 0.063
16
  }
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 3.0,
3
- "train_loss": 0.3484600728976656,
4
- "train_runtime": 105269.9843,
5
- "train_samples": 159397,
6
- "train_samples_per_second": 4.543,
7
- "train_steps_per_second": 0.036
8
  }
 
1
  {
2
+ "epoch": 1.0,
3
+ "train_loss": 0.6667533972828659,
4
+ "train_runtime": 15505.6746,
5
+ "train_samples": 61966,
6
+ "train_samples_per_second": 3.996,
7
+ "train_steps_per_second": 0.031
8
  }
trainer_state.json CHANGED
The diff for this file is too large to render. See raw diff
 
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ea442d361aad58962e30eb6b5e88eb41a119a6bd1f02593c97d61b2fe3be8197
3
  size 5688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85762387de695f46895984cce9b354002e7bf3e93e34a5f99eed66dcb69e0b22
3
  size 5688