gpt2_dpo_lora/1
Browse files- README.md +21 -0
- adapter_config.json +23 -0
- adapter_model.safetensors +3 -0
- training_args.bin +2 -2
README.md
CHANGED
@@ -13,6 +13,16 @@ should probably proofread and complete it, then remove this comment. -->
|
|
13 |
# training
|
14 |
|
15 |
This model is a fine-tuned version of [lvwerra/gpt2-imdb](https://huggingface.co/lvwerra/gpt2-imdb) on an unknown dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
## Model description
|
18 |
|
@@ -39,6 +49,17 @@ The following hyperparameters were used during training:
|
|
39 |
- lr_scheduler_type: linear
|
40 |
- num_epochs: 3
|
41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
### Framework versions
|
43 |
|
44 |
- Transformers 4.35.2
|
|
|
13 |
# training
|
14 |
|
15 |
This model is a fine-tuned version of [lvwerra/gpt2-imdb](https://huggingface.co/lvwerra/gpt2-imdb) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 0.4649
|
18 |
+
- Rewards/chosen: 1.1097
|
19 |
+
- Rewards/rejected: 0.3323
|
20 |
+
- Rewards/accuracies: 0.8186
|
21 |
+
- Rewards/margins: 0.7774
|
22 |
+
- Logps/rejected: -143.4800
|
23 |
+
- Logps/chosen: -175.0714
|
24 |
+
- Logits/rejected: -35.2043
|
25 |
+
- Logits/chosen: -32.7114
|
26 |
|
27 |
## Model description
|
28 |
|
|
|
49 |
- lr_scheduler_type: linear
|
50 |
- num_epochs: 3
|
51 |
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Rewards/chosen | Rewards/rejected | Rewards/accuracies | Rewards/margins | Logps/rejected | Logps/chosen | Logits/rejected | Logits/chosen |
|
55 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------------:|:----------------:|:------------------:|:---------------:|:--------------:|:------------:|:---------------:|:-------------:|
|
56 |
+
| No log | 0.55 | 400 | 0.6593 | 1.0074 | 0.5904 | 0.7357 | 0.4170 | -140.8990 | -176.0949 | -35.9356 | -33.1922 |
|
57 |
+
| 0.7974 | 1.11 | 800 | 0.5807 | 1.1511 | 0.5902 | 0.7634 | 0.5610 | -140.9016 | -174.6575 | -35.9192 | -33.2655 |
|
58 |
+
| 0.5983 | 1.66 | 1200 | 0.5200 | 1.0697 | 0.4300 | 0.7979 | 0.6397 | -142.5030 | -175.4720 | -35.5696 | -33.0300 |
|
59 |
+
| 0.4982 | 2.21 | 1600 | 0.4807 | 1.1128 | 0.3733 | 0.8158 | 0.7395 | -143.0704 | -175.0409 | -35.2967 | -32.7791 |
|
60 |
+
| 0.4663 | 2.77 | 2000 | 0.4649 | 1.1097 | 0.3323 | 0.8186 | 0.7774 | -143.4800 | -175.0714 | -35.2043 | -32.7114 |
|
61 |
+
|
62 |
+
|
63 |
### Framework versions
|
64 |
|
65 |
- Transformers 4.35.2
|
adapter_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "lvwerra/gpt2-imdb",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": true,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"lora_alpha": 0.5,
|
12 |
+
"lora_dropout": 0.0,
|
13 |
+
"modules_to_save": null,
|
14 |
+
"peft_type": "LORA",
|
15 |
+
"r": 8,
|
16 |
+
"rank_pattern": {},
|
17 |
+
"revision": null,
|
18 |
+
"target_modules": [
|
19 |
+
"c_proj",
|
20 |
+
"c_attn"
|
21 |
+
],
|
22 |
+
"task_type": "CAUSAL_LM"
|
23 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5d2d7f0ed97d241f21c4537ea68fd873a9428be93f84a318996e3325f30cfa12
|
3 |
+
size 3253104
|
training_args.bin
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:1f1dc624044b41e0b15000b8a7c3dbf22f1849c23f4519a2102e0a315c840a9f
|
3 |
+
size 4600
|