imelnyk commited on
Commit
d31c43f
1 Parent(s): bc2512c

Model save

Browse files
README.md CHANGED
@@ -2,16 +2,9 @@
2
  license: apache-2.0
3
  library_name: peft
4
  tags:
5
- - alignment-handbook
6
  - trl
7
  - dpo
8
  - generated_from_trainer
9
- - trl
10
- - dpo
11
- - alignment-handbook
12
- - generated_from_trainer
13
- datasets:
14
- - HuggingFaceH4/ultrafeedback_binarized
15
  base_model: mistralai/Mistral-7B-v0.1
16
  model-index:
17
  - name: zephyr-7b-dpo-qlora-fsdp
@@ -23,7 +16,17 @@ should probably proofread and complete it, then remove this comment. -->
23
 
24
  # zephyr-7b-dpo-qlora-fsdp
25
 
26
- This model is a fine-tuned version of [alignment-handbook/zephyr-7b-sft-qlora](https://huggingface.co/alignment-handbook/zephyr-7b-sft-qlora) on the HuggingFaceH4/ultrafeedback_binarized dataset.
 
 
 
 
 
 
 
 
 
 
27
 
28
  ## Model description
29
 
@@ -43,16 +46,20 @@ More information needed
43
 
44
  The following hyperparameters were used during training:
45
  - learning_rate: 5e-06
46
- - train_batch_size: 14
47
  - eval_batch_size: 8
48
  - seed: 42
49
  - distributed_type: multi-GPU
50
  - gradient_accumulation_steps: 4
51
- - total_train_batch_size: 56
52
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
53
  - lr_scheduler_type: cosine
54
  - lr_scheduler_warmup_ratio: 0.1
55
- - num_epochs: 10
 
 
 
 
56
 
57
  ### Framework versions
58
 
 
2
  license: apache-2.0
3
  library_name: peft
4
  tags:
 
5
  - trl
6
  - dpo
7
  - generated_from_trainer
 
 
 
 
 
 
8
  base_model: mistralai/Mistral-7B-v0.1
9
  model-index:
10
  - name: zephyr-7b-dpo-qlora-fsdp
 
16
 
17
  # zephyr-7b-dpo-qlora-fsdp
18
 
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.6865
22
+ - Rewards/chosen: 0.0331
23
+ - Rewards/rejected: 0.0188
24
+ - Rewards/accuracies: 0.5935
25
+ - Rewards/margins: 0.0143
26
+ - Logps/rejected: -257.1393
27
+ - Logps/chosen: -276.4896
28
+ - Logits/rejected: -2.3640
29
+ - Logits/chosen: -2.4104
30
 
31
  ## Model description
32
 
 
46
 
47
  The following hyperparameters were used during training:
48
  - learning_rate: 5e-06
49
+ - train_batch_size: 5
50
  - eval_batch_size: 8
51
  - seed: 42
52
  - distributed_type: multi-GPU
53
  - gradient_accumulation_steps: 4
54
+ - total_train_batch_size: 20
55
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
56
  - lr_scheduler_type: cosine
57
  - lr_scheduler_warmup_ratio: 0.1
58
+ - num_epochs: 0.01
59
+
60
+ ### Training results
61
+
62
+
63
 
64
  ### Framework versions
65
 
adapter_config.json CHANGED
@@ -19,12 +19,12 @@
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
22
- "up_proj",
23
- "v_proj",
24
- "q_proj",
25
- "o_proj",
26
  "gate_proj",
27
  "down_proj",
 
 
 
 
28
  "k_proj"
29
  ],
30
  "task_type": "CAUSAL_LM",
 
19
  "rank_pattern": {},
20
  "revision": null,
21
  "target_modules": [
 
 
 
 
22
  "gate_proj",
23
  "down_proj",
24
+ "v_proj",
25
+ "o_proj",
26
+ "up_proj",
27
+ "q_proj",
28
  "k_proj"
29
  ],
30
  "task_type": "CAUSAL_LM",
adapter_model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d11c467ea2ced3ece27c4663979d7c2e938981d71182ed8d30aedc7f981b8b34
3
  size 671150064
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f7925055af868d3b38756325d43d85883ad8c14753b88f93c708d2886161f80
3
  size 671150064
all_results.json CHANGED
@@ -1,21 +1,21 @@
1
  {
2
- "epoch": 4.99,
3
- "eval_logits/chosen": -2.4107861518859863,
4
- "eval_logits/rejected": -2.3742854595184326,
5
- "eval_logps/chosen": -266.8597106933594,
6
- "eval_logps/rejected": -242.3632049560547,
7
- "eval_loss": 0.8742221593856812,
8
- "eval_rewards/accuracies": 0.6726190447807312,
9
- "eval_rewards/chosen": 0.008189404383301735,
10
- "eval_rewards/margins": 0.007871923968195915,
11
- "eval_rewards/rejected": 0.00031748018227517605,
12
- "eval_runtime": 123.0411,
13
  "eval_samples": 2000,
14
- "eval_samples_per_second": 16.255,
15
- "eval_steps_per_second": 0.341,
16
- "train_loss": 0.164279118501603,
17
- "train_runtime": 43545.4617,
18
  "train_samples": 61135,
19
- "train_samples_per_second": 7.02,
20
- "train_steps_per_second": 0.029
21
  }
 
1
  {
2
+ "epoch": 0.01,
3
+ "eval_logits/chosen": -2.410409688949585,
4
+ "eval_logits/rejected": -2.363970994949341,
5
+ "eval_logps/chosen": -276.4896240234375,
6
+ "eval_logps/rejected": -257.1393127441406,
7
+ "eval_loss": 0.6865259408950806,
8
+ "eval_rewards/accuracies": 0.593500018119812,
9
+ "eval_rewards/chosen": 0.03312591835856438,
10
+ "eval_rewards/margins": 0.014345898292958736,
11
+ "eval_rewards/rejected": 0.018780020996928215,
12
+ "eval_runtime": 615.2299,
13
  "eval_samples": 2000,
14
+ "eval_samples_per_second": 3.251,
15
+ "eval_steps_per_second": 0.406,
16
+ "train_loss": 0.6888245363389293,
17
+ "train_runtime": 439.9957,
18
  "train_samples": 61135,
19
+ "train_samples_per_second": 1.389,
20
+ "train_steps_per_second": 0.07
21
  }
eval_results.json CHANGED
@@ -1,16 +1,16 @@
1
  {
2
- "epoch": 4.99,
3
- "eval_logits/chosen": -2.4107861518859863,
4
- "eval_logits/rejected": -2.3742854595184326,
5
- "eval_logps/chosen": -266.8597106933594,
6
- "eval_logps/rejected": -242.3632049560547,
7
- "eval_loss": 0.8742221593856812,
8
- "eval_rewards/accuracies": 0.6726190447807312,
9
- "eval_rewards/chosen": 0.008189404383301735,
10
- "eval_rewards/margins": 0.007871923968195915,
11
- "eval_rewards/rejected": 0.00031748018227517605,
12
- "eval_runtime": 123.0411,
13
  "eval_samples": 2000,
14
- "eval_samples_per_second": 16.255,
15
- "eval_steps_per_second": 0.341
16
  }
 
1
  {
2
+ "epoch": 0.01,
3
+ "eval_logits/chosen": -2.410409688949585,
4
+ "eval_logits/rejected": -2.363970994949341,
5
+ "eval_logps/chosen": -276.4896240234375,
6
+ "eval_logps/rejected": -257.1393127441406,
7
+ "eval_loss": 0.6865259408950806,
8
+ "eval_rewards/accuracies": 0.593500018119812,
9
+ "eval_rewards/chosen": 0.03312591835856438,
10
+ "eval_rewards/margins": 0.014345898292958736,
11
+ "eval_rewards/rejected": 0.018780020996928215,
12
+ "eval_runtime": 615.2299,
13
  "eval_samples": 2000,
14
+ "eval_samples_per_second": 3.251,
15
+ "eval_steps_per_second": 0.406
16
  }
runs/Mar08_12-18-16_cccxc542/events.out.tfevents.1709918369.cccxc542.189796.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5549be835e11c00b340a35080e1210a2db92e5f9b1b1cde78d382f6a17fbd24
3
+ size 6153
runs/Mar08_12-24-55_cccxc542/events.out.tfevents.1709918735.cccxc542.206115.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39a6f70c0b3c32891fcedfdb147a75fb2a64a7f48f2a10fbed5eb5358af4eb0d
3
+ size 7856
runs/Mar08_12-24-55_cccxc542/events.out.tfevents.1709919790.cccxc542.206115.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:688ec8b9ca686285a75a2c1a6b95f9810f5c451d30dff932e8748ffa77413659
3
+ size 815
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 4.99,
3
- "train_loss": 0.164279118501603,
4
- "train_runtime": 43545.4617,
5
  "train_samples": 61135,
6
- "train_samples_per_second": 7.02,
7
- "train_steps_per_second": 0.029
8
  }
 
1
  {
2
+ "epoch": 0.01,
3
+ "train_loss": 0.6888245363389293,
4
+ "train_runtime": 439.9957,
5
  "train_samples": 61135,
6
+ "train_samples_per_second": 1.389,
7
+ "train_steps_per_second": 0.07
8
  }
trainer_state.json CHANGED
@@ -1,20 +1,90 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": null,
5
- "eval_steps": 500,
6
- "global_step": 0,
7
  "is_hyper_param_search": false,
8
  "is_local_process_zero": true,
9
  "is_world_process_zero": true,
10
- "log_history": [],
11
- "logging_steps": 500,
12
- "max_steps": 0,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  "num_input_tokens_seen": 0,
14
- "num_train_epochs": 0,
15
- "save_steps": 500,
16
- "total_flos": 0,
17
- "train_batch_size": null,
18
  "trial_name": null,
19
  "trial_params": null
20
  }
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 0.010141490144761593,
5
+ "eval_steps": 100,
6
+ "global_step": 31,
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.0,
13
+ "grad_norm": 2.421875,
14
+ "learning_rate": 1.25e-06,
15
+ "logits/chosen": -2.3689165115356445,
16
+ "logits/rejected": -2.3419089317321777,
17
+ "logps/chosen": -304.96429443359375,
18
+ "logps/rejected": -224.31954956054688,
19
+ "loss": 0.6931,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/chosen": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/rejected": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.0,
28
+ "grad_norm": 1.9296875,
29
+ "learning_rate": 4.415111107797445e-06,
30
+ "logits/chosen": -2.3774471282958984,
31
+ "logits/rejected": -2.358837127685547,
32
+ "logps/chosen": -267.6408386230469,
33
+ "logps/rejected": -221.9726104736328,
34
+ "loss": 0.6921,
35
+ "rewards/accuracies": 0.5166666507720947,
36
+ "rewards/chosen": 0.008927525021135807,
37
+ "rewards/margins": 0.002250629710033536,
38
+ "rewards/rejected": 0.006676895078271627,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.01,
43
+ "grad_norm": 2.203125,
44
+ "learning_rate": 1.7829919182222752e-06,
45
+ "logits/chosen": -2.4560706615448,
46
+ "logits/rejected": -2.402303695678711,
47
+ "logps/chosen": -265.12762451171875,
48
+ "logps/rejected": -272.61566162109375,
49
+ "loss": 0.6889,
50
+ "rewards/accuracies": 0.5900000333786011,
51
+ "rewards/chosen": 0.028245043009519577,
52
+ "rewards/margins": 0.009032377041876316,
53
+ "rewards/rejected": 0.019212666898965836,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.01,
58
+ "grad_norm": 2.375,
59
+ "learning_rate": 1.6904105645142443e-08,
60
+ "logits/chosen": -2.3814165592193604,
61
+ "logits/rejected": -2.3470723628997803,
62
+ "logps/chosen": -304.08697509765625,
63
+ "logps/rejected": -281.0203552246094,
64
+ "loss": 0.6844,
65
+ "rewards/accuracies": 0.6299999952316284,
66
+ "rewards/chosen": 0.03472686558961868,
67
+ "rewards/margins": 0.019056813791394234,
68
+ "rewards/rejected": 0.015670055523514748,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.01,
73
+ "step": 31,
74
+ "total_flos": 0.0,
75
+ "train_loss": 0.6888245363389293,
76
+ "train_runtime": 439.9957,
77
+ "train_samples_per_second": 1.389,
78
+ "train_steps_per_second": 0.07
79
+ }
80
+ ],
81
+ "logging_steps": 10,
82
+ "max_steps": 31,
83
  "num_input_tokens_seen": 0,
84
+ "num_train_epochs": 1,
85
+ "save_steps": 100,
86
+ "total_flos": 0.0,
87
+ "train_batch_size": 5,
88
  "trial_name": null,
89
  "trial_params": null
90
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:92fee4626f14c7e9e46522e5b22431404ce3eaa07753dde47b190bdd90f9420d
3
  size 5112
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f21d618e5d6b3867a78c9fe4f30b09ded8634419a2c3a54b84735333c2487436
3
  size 5112