Model save
Browse files- README.md +79 -0
- adapter_model.safetensors +1 -1
- all_results.json +21 -0
- eval_results.json +16 -0
- runs/Mar05_08-49-05_586cb8b6da8c/events.out.tfevents.1709628876.586cb8b6da8c.24988.0 +2 -2
- runs/Mar05_08-49-05_586cb8b6da8c/events.out.tfevents.1709663662.586cb8b6da8c.24988.1 +3 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
library_name: peft
|
4 |
+
tags:
|
5 |
+
- trl
|
6 |
+
- dpo
|
7 |
+
- generated_from_trainer
|
8 |
+
base_model: alignment-handbook/zephyr-7b-sft-full
|
9 |
+
model-index:
|
10 |
+
- name: zephyr-7b-dpo-lora-pubmedqa-ultrafeedback-mix
|
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 |
+
# zephyr-7b-dpo-lora-pubmedqa-ultrafeedback-mix
|
18 |
+
|
19 |
+
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.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 0.5344
|
22 |
+
- Rewards/chosen: -2.6374
|
23 |
+
- Rewards/rejected: -3.7727
|
24 |
+
- Rewards/accuracies: 0.7460
|
25 |
+
- Rewards/margins: 1.1353
|
26 |
+
- Logps/rejected: -652.6792
|
27 |
+
- Logps/chosen: -559.1896
|
28 |
+
- Logits/rejected: -1.8319
|
29 |
+
- Logits/chosen: -2.0104
|
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: 5e-06
|
49 |
+
- train_batch_size: 1
|
50 |
+
- eval_batch_size: 1
|
51 |
+
- seed: 42
|
52 |
+
- distributed_type: multi-GPU
|
53 |
+
- num_devices: 2
|
54 |
+
- gradient_accumulation_steps: 2
|
55 |
+
- total_train_batch_size: 4
|
56 |
+
- total_eval_batch_size: 2
|
57 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
58 |
+
- lr_scheduler_type: cosine
|
59 |
+
- lr_scheduler_warmup_ratio: 0.1
|
60 |
+
- num_epochs: 1
|
61 |
+
|
62 |
+
### Training results
|
63 |
+
|
64 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
65 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
66 |
+
| 0.5795 | 0.2 | 3000 | 0.5888 | -0.7760 | -1.1691 | 0.6830 | 0.3931 | -392.3199 | -373.0482 | -2.3689 | -2.4472 |
|
67 |
+
| 0.4501 | 0.39 | 6000 | 0.5437 | -2.1190 | -3.1229 | 0.7420 | 1.0038 | -587.6927 | -507.3499 | -1.8484 | -2.0210 |
|
68 |
+
| 0.3399 | 0.59 | 9000 | 0.5425 | -2.4666 | -3.6163 | 0.7410 | 1.1497 | -637.0340 | -542.1045 | -1.8202 | -2.0023 |
|
69 |
+
| 0.4636 | 0.79 | 12000 | 0.5347 | -2.6445 | -3.7774 | 0.7450 | 1.1329 | -653.1429 | -559.8973 | -1.8326 | -2.0102 |
|
70 |
+
| 0.544 | 0.98 | 15000 | 0.5346 | -2.6384 | -3.7732 | 0.7450 | 1.1348 | -652.7231 | -559.2841 | -1.8322 | -2.0103 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- PEFT 0.7.1
|
76 |
+
- Transformers 4.36.2
|
77 |
+
- Pytorch 2.1.2+cu121
|
78 |
+
- Datasets 2.14.6
|
79 |
+
- Tokenizers 0.15.2
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 83946192
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a558210f64cf399ca075426be42c888ddd11f8e557b402656678988778854fcd
|
3 |
size 83946192
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -2.0103824138641357,
|
4 |
+
"eval_logits/rejected": -1.8318537473678589,
|
5 |
+
"eval_logps/chosen": -559.1896362304688,
|
6 |
+
"eval_logps/rejected": -652.67919921875,
|
7 |
+
"eval_loss": 0.5344099402427673,
|
8 |
+
"eval_rewards/accuracies": 0.7459999918937683,
|
9 |
+
"eval_rewards/chosen": -2.6374406814575195,
|
10 |
+
"eval_rewards/margins": 1.1352916955947876,
|
11 |
+
"eval_rewards/rejected": -3.772732734680176,
|
12 |
+
"eval_runtime": 464.7199,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 4.304,
|
15 |
+
"eval_steps_per_second": 2.152,
|
16 |
+
"train_loss": 0.5599543302822287,
|
17 |
+
"train_runtime": 34322.3587,
|
18 |
+
"train_samples": 61135,
|
19 |
+
"train_samples_per_second": 1.781,
|
20 |
+
"train_steps_per_second": 0.445
|
21 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -2.0103824138641357,
|
4 |
+
"eval_logits/rejected": -1.8318537473678589,
|
5 |
+
"eval_logps/chosen": -559.1896362304688,
|
6 |
+
"eval_logps/rejected": -652.67919921875,
|
7 |
+
"eval_loss": 0.5344099402427673,
|
8 |
+
"eval_rewards/accuracies": 0.7459999918937683,
|
9 |
+
"eval_rewards/chosen": -2.6374406814575195,
|
10 |
+
"eval_rewards/margins": 1.1352916955947876,
|
11 |
+
"eval_rewards/rejected": -3.772732734680176,
|
12 |
+
"eval_runtime": 464.7199,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 4.304,
|
15 |
+
"eval_steps_per_second": 2.152
|
16 |
+
}
|
runs/Mar05_08-49-05_586cb8b6da8c/events.out.tfevents.1709628876.586cb8b6da8c.24988.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2f884181c3077289639cb5ce614efb8b4aa18907060261a0f3c0aa8d974f72c
|
3 |
+
size 977953
|
runs/Mar05_08-49-05_586cb8b6da8c/events.out.tfevents.1709663662.586cb8b6da8c.24988.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:afafc93665bc3850cf7413d4c168719a29ee14d19dd1a92f2c2c340d6841d292
|
3 |
+
size 828
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.5599543302822287,
|
4 |
+
"train_runtime": 34322.3587,
|
5 |
+
"train_samples": 61135,
|
6 |
+
"train_samples_per_second": 1.781,
|
7 |
+
"train_steps_per_second": 0.445
|
8 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|