Model save
Browse files- README.md +92 -0
- adapter_model.safetensors +1 -1
- all_results.json +21 -0
- eval_results.json +16 -0
- runs/Mar05_01-38-10_SYS-4029GP-TRT/events.out.tfevents.1709574193.SYS-4029GP-TRT.1942121.0 +2 -2
- runs/Mar05_01-38-10_SYS-4029GP-TRT/events.out.tfevents.1709602315.SYS-4029GP-TRT.1942121.1 +3 -0
- train_results.json +8 -0
- trainer_state.json +0 -0
README.md
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
tags:
|
4 |
+
- trl
|
5 |
+
- dpo
|
6 |
+
- generated_from_trainer
|
7 |
+
base_model: meta-llama/Llama-2-7b-chat-hf
|
8 |
+
model-index:
|
9 |
+
- name: llama-7b-dpo-qlora
|
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 |
+
# llama-7b-dpo-qlora
|
17 |
+
|
18 |
+
This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the None dataset.
|
19 |
+
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 0.5797
|
21 |
+
- Rewards/chosen: -0.7180
|
22 |
+
- Rewards/rejected: -1.2522
|
23 |
+
- Rewards/accuracies: 0.7163
|
24 |
+
- Rewards/margins: 0.5342
|
25 |
+
- Logps/rejected: -439.3930
|
26 |
+
- Logps/chosen: -418.4136
|
27 |
+
- Logits/rejected: -0.5278
|
28 |
+
- Logits/chosen: -0.4875
|
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: 5e-06
|
48 |
+
- train_batch_size: 1
|
49 |
+
- eval_batch_size: 8
|
50 |
+
- seed: 42
|
51 |
+
- distributed_type: multi-GPU
|
52 |
+
- num_devices: 4
|
53 |
+
- gradient_accumulation_steps: 8
|
54 |
+
- total_train_batch_size: 32
|
55 |
+
- total_eval_batch_size: 32
|
56 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
57 |
+
- lr_scheduler_type: cosine
|
58 |
+
- lr_scheduler_warmup_ratio: 0.1
|
59 |
+
- num_epochs: 1
|
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.6856 | 0.05 | 100 | 0.6868 | 0.0843 | 0.0692 | 0.5377 | 0.0151 | -307.2546 | -338.1842 | -0.3397 | -0.3142 |
|
66 |
+
| 0.6704 | 0.1 | 200 | 0.6715 | 0.2423 | 0.1804 | 0.5714 | 0.0619 | -296.1337 | -322.3911 | -0.3758 | -0.3406 |
|
67 |
+
| 0.6506 | 0.16 | 300 | 0.6529 | 0.1559 | 0.0442 | 0.6647 | 0.1117 | -309.7589 | -331.0275 | -0.4759 | -0.4428 |
|
68 |
+
| 0.6372 | 0.21 | 400 | 0.6272 | -0.1132 | -0.3130 | 0.6865 | 0.1998 | -345.4769 | -357.9352 | -0.5776 | -0.5492 |
|
69 |
+
| 0.6233 | 0.26 | 500 | 0.6162 | -0.1577 | -0.4261 | 0.6825 | 0.2685 | -356.7882 | -362.3849 | -0.5820 | -0.5495 |
|
70 |
+
| 0.5951 | 0.31 | 600 | 0.6063 | -0.3417 | -0.6825 | 0.6806 | 0.3408 | -382.4303 | -380.7912 | -0.6100 | -0.5733 |
|
71 |
+
| 0.6051 | 0.37 | 700 | 0.5973 | -0.4906 | -0.8807 | 0.6944 | 0.3901 | -402.2431 | -395.6783 | -0.6108 | -0.5761 |
|
72 |
+
| 0.5632 | 0.42 | 800 | 0.5928 | -0.6334 | -1.0835 | 0.7024 | 0.4501 | -422.5295 | -409.9586 | -0.6245 | -0.5841 |
|
73 |
+
| 0.6015 | 0.47 | 900 | 0.5896 | -0.6102 | -1.0642 | 0.7123 | 0.4540 | -420.5953 | -407.6412 | -0.5756 | -0.5359 |
|
74 |
+
| 0.5756 | 0.52 | 1000 | 0.5865 | -0.6474 | -1.1215 | 0.6984 | 0.4742 | -426.3284 | -411.3543 | -0.5431 | -0.5058 |
|
75 |
+
| 0.6024 | 0.58 | 1100 | 0.5855 | -0.7264 | -1.2283 | 0.7063 | 0.5018 | -437.0025 | -419.2626 | -0.5501 | -0.5104 |
|
76 |
+
| 0.5578 | 0.63 | 1200 | 0.5823 | -0.6906 | -1.1994 | 0.7143 | 0.5087 | -434.1114 | -415.6815 | -0.5297 | -0.4896 |
|
77 |
+
| 0.5243 | 0.68 | 1300 | 0.5803 | -0.7453 | -1.2720 | 0.7143 | 0.5267 | -441.3783 | -421.1522 | -0.5340 | -0.4930 |
|
78 |
+
| 0.5343 | 0.73 | 1400 | 0.5805 | -0.7354 | -1.2662 | 0.7103 | 0.5308 | -440.8000 | -420.1602 | -0.5271 | -0.4872 |
|
79 |
+
| 0.5707 | 0.79 | 1500 | 0.5799 | -0.7179 | -1.2504 | 0.7123 | 0.5326 | -439.2190 | -418.4040 | -0.5268 | -0.4864 |
|
80 |
+
| 0.5582 | 0.84 | 1600 | 0.5795 | -0.7300 | -1.2655 | 0.7123 | 0.5355 | -440.7271 | -419.6230 | -0.5271 | -0.4870 |
|
81 |
+
| 0.5722 | 0.89 | 1700 | 0.5798 | -0.7181 | -1.2517 | 0.7143 | 0.5336 | -439.3442 | -418.4286 | -0.5279 | -0.4876 |
|
82 |
+
| 0.5964 | 0.94 | 1800 | 0.5796 | -0.7165 | -1.2507 | 0.7163 | 0.5342 | -439.2476 | -418.2664 | -0.5278 | -0.4875 |
|
83 |
+
| 0.5896 | 0.99 | 1900 | 0.5797 | -0.7180 | -1.2521 | 0.7163 | 0.5341 | -439.3842 | -418.4147 | -0.5278 | -0.4875 |
|
84 |
+
|
85 |
+
|
86 |
+
### Framework versions
|
87 |
+
|
88 |
+
- PEFT 0.7.1
|
89 |
+
- Transformers 4.36.2
|
90 |
+
- Pytorch 2.2.1+cu121
|
91 |
+
- Datasets 2.14.6
|
92 |
+
- 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 639692768
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4dbebda98adc5188e890aa5738d59119741858f3f2d9a1863a4affd649dabd93
|
3 |
size 639692768
|
all_results.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -0.4874803125858307,
|
4 |
+
"eval_logits/rejected": -0.5277639627456665,
|
5 |
+
"eval_logps/chosen": -418.41363525390625,
|
6 |
+
"eval_logps/rejected": -439.39300537109375,
|
7 |
+
"eval_loss": 0.5796785354614258,
|
8 |
+
"eval_rewards/accuracies": 0.716269850730896,
|
9 |
+
"eval_rewards/chosen": -0.7179543972015381,
|
10 |
+
"eval_rewards/margins": 0.5342229008674622,
|
11 |
+
"eval_rewards/rejected": -1.2521772384643555,
|
12 |
+
"eval_runtime": 305.3815,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 6.549,
|
15 |
+
"eval_steps_per_second": 0.206,
|
16 |
+
"train_loss": 0.598351346759896,
|
17 |
+
"train_runtime": 27817.4474,
|
18 |
+
"train_samples": 61135,
|
19 |
+
"train_samples_per_second": 2.198,
|
20 |
+
"train_steps_per_second": 0.069
|
21 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_logits/chosen": -0.4874803125858307,
|
4 |
+
"eval_logits/rejected": -0.5277639627456665,
|
5 |
+
"eval_logps/chosen": -418.41363525390625,
|
6 |
+
"eval_logps/rejected": -439.39300537109375,
|
7 |
+
"eval_loss": 0.5796785354614258,
|
8 |
+
"eval_rewards/accuracies": 0.716269850730896,
|
9 |
+
"eval_rewards/chosen": -0.7179543972015381,
|
10 |
+
"eval_rewards/margins": 0.5342229008674622,
|
11 |
+
"eval_rewards/rejected": -1.2521772384643555,
|
12 |
+
"eval_runtime": 305.3815,
|
13 |
+
"eval_samples": 2000,
|
14 |
+
"eval_samples_per_second": 6.549,
|
15 |
+
"eval_steps_per_second": 0.206
|
16 |
+
}
|
runs/Mar05_01-38-10_SYS-4029GP-TRT/events.out.tfevents.1709574193.SYS-4029GP-TRT.1942121.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:80bb8c93cc8d3d53d09e64959ecfbc17766cfc34ca6287612953ac6e4988aa62
|
3 |
+
size 140970
|
runs/Mar05_01-38-10_SYS-4029GP-TRT/events.out.tfevents.1709602315.SYS-4029GP-TRT.1942121.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:df8d44e29fc382ed0209aeea3f64a6785f45a59a9738e2730ba8a39579183f20
|
3 |
+
size 828
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"train_loss": 0.598351346759896,
|
4 |
+
"train_runtime": 27817.4474,
|
5 |
+
"train_samples": 61135,
|
6 |
+
"train_samples_per_second": 2.198,
|
7 |
+
"train_steps_per_second": 0.069
|
8 |
+
}
|
trainer_state.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|