KoNqUeRoR3891 commited on
Commit
9242787
·
verified ·
1 Parent(s): 430ea07

Model save

Browse files
Files changed (2) hide show
  1. README.md +82 -0
  2. generation_config.json +6 -0
README.md ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: openai-community/gpt2
5
+ tags:
6
+ - trl
7
+ - dpo
8
+ - generated_from_trainer
9
+ datasets:
10
+ - piqa
11
+ model-index:
12
+ - name: HW2-dpo
13
+ results: []
14
+ ---
15
+
16
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
+ should probably proofread and complete it, then remove this comment. -->
18
+
19
+ # HW2-dpo
20
+
21
+ This model is a fine-tuned version of [openai-community/gpt2](https://huggingface.co/openai-community/gpt2) on the piqa dataset.
22
+ It achieves the following results on the evaluation set:
23
+ - Loss: 0.8593
24
+ - Rewards/chosen: -13.9253
25
+ - Rewards/rejected: -15.1905
26
+ - Rewards/accuracies: 0.6644
27
+ - Rewards/margins: 1.2652
28
+ - Logps/rejected: -246.1538
29
+ - Logps/chosen: -231.6296
30
+ - Logits/rejected: -73.5328
31
+ - Logits/chosen: -73.9152
32
+
33
+ ## Model description
34
+
35
+ More information needed
36
+
37
+ ## Intended uses & limitations
38
+
39
+ More information needed
40
+
41
+ ## Training and evaluation data
42
+
43
+ More information needed
44
+
45
+ ## Training procedure
46
+
47
+ ### Training hyperparameters
48
+
49
+ The following hyperparameters were used during training:
50
+ - learning_rate: 5e-05
51
+ - train_batch_size: 2
52
+ - eval_batch_size: 2
53
+ - seed: 42
54
+ - gradient_accumulation_steps: 4
55
+ - total_train_batch_size: 8
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - lr_scheduler_type: linear
58
+ - num_epochs: 3
59
+ - mixed_precision_training: Native AMP
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.7148 | 0.2758 | 500 | 0.6866 | -2.4692 | -2.6207 | 0.6073 | 0.1516 | -120.4563 | -117.0685 | -93.4454 | -93.3709 |
66
+ | 0.6747 | 0.5516 | 1000 | 0.6612 | -4.3908 | -4.7275 | 0.6495 | 0.3367 | -141.5237 | -136.2848 | -91.8209 | -91.7481 |
67
+ | 0.6681 | 0.8275 | 1500 | 0.6704 | -5.5067 | -5.9227 | 0.6439 | 0.4161 | -153.4764 | -147.4433 | -87.9307 | -87.9442 |
68
+ | 0.5393 | 1.1033 | 2000 | 0.7086 | -6.7527 | -7.3196 | 0.6501 | 0.5669 | -167.4447 | -159.9034 | -87.8440 | -87.9360 |
69
+ | 0.3132 | 1.3791 | 2500 | 0.7451 | -9.5756 | -10.2276 | 0.6520 | 0.6520 | -196.5250 | -188.1325 | -86.2624 | -86.5916 |
70
+ | 0.3077 | 1.6549 | 3000 | 0.7269 | -9.8647 | -10.6512 | 0.6514 | 0.7865 | -200.7605 | -191.0236 | -89.7969 | -90.1133 |
71
+ | 0.2954 | 1.9308 | 3500 | 0.6959 | -9.1185 | -9.9717 | 0.6725 | 0.8531 | -193.9657 | -183.5620 | -87.1994 | -87.4444 |
72
+ | 0.1295 | 2.2066 | 4000 | 0.8306 | -13.7328 | -14.8923 | 0.6650 | 1.1595 | -243.1719 | -229.7044 | -74.6679 | -75.0498 |
73
+ | 0.0665 | 2.4824 | 4500 | 0.8662 | -14.5425 | -15.8052 | 0.6600 | 1.2626 | -252.3006 | -237.8021 | -75.1185 | -75.5275 |
74
+ | 0.0606 | 2.7582 | 5000 | 0.8593 | -13.9253 | -15.1905 | 0.6644 | 1.2652 | -246.1538 | -231.6296 | -73.5328 | -73.9152 |
75
+
76
+
77
+ ### Framework versions
78
+
79
+ - Transformers 4.44.2
80
+ - Pytorch 2.4.0+cu118
81
+ - Datasets 2.21.0
82
+ - Tokenizers 0.19.1
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "transformers_version": "4.44.2"
6
+ }