AmberYifan commited on
Commit
b36953f
1 Parent(s): 26ebdb6

Model save

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama2
3
+ base_model: meta-llama/Llama-2-7b-hf
4
+ tags:
5
+ - generated_from_trainer
6
+ model-index:
7
+ - name: Llama-2-7b-gen-dpo-2k
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # Llama-2-7b-gen-dpo-2k
15
+
16
+ This model is a fine-tuned version of [meta-llama/Llama-2-7b-hf](https://huggingface.co/meta-llama/Llama-2-7b-hf) on an unknown dataset.
17
+
18
+ ## Model description
19
+
20
+ More information needed
21
+
22
+ ## Intended uses & limitations
23
+
24
+ More information needed
25
+
26
+ ## Training and evaluation data
27
+
28
+ More information needed
29
+
30
+ ## Training procedure
31
+
32
+ ### Training hyperparameters
33
+
34
+ The following hyperparameters were used during training:
35
+ - learning_rate: 5e-07
36
+ - train_batch_size: 4
37
+ - eval_batch_size: 4
38
+ - seed: 42
39
+ - distributed_type: multi-GPU
40
+ - num_devices: 4
41
+ - gradient_accumulation_steps: 2
42
+ - total_train_batch_size: 32
43
+ - total_eval_batch_size: 16
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: linear
46
+ - lr_scheduler_warmup_ratio: 0.1
47
+ - num_epochs: 1
48
+
49
+ ### Training results
50
+
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.43.3
56
+ - Pytorch 2.2.2+cu121
57
+ - Datasets 2.20.0
58
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.8720041565273119,
5
+ "train_runtime": 584.014,
6
+ "train_samples": 1466,
7
+ "train_samples_per_second": 2.51,
8
+ "train_steps_per_second": 0.079
9
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 1,
3
+ "do_sample": true,
4
+ "eos_token_id": 2,
5
+ "max_length": 4096,
6
+ "pad_token_id": 0,
7
+ "temperature": 0.6,
8
+ "top_p": 0.9,
9
+ "transformers_version": "4.43.3"
10
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 1.0,
3
+ "total_flos": 0.0,
4
+ "train_loss": 0.8720041565273119,
5
+ "train_runtime": 584.014,
6
+ "train_samples": 1466,
7
+ "train_samples_per_second": 2.51,
8
+ "train_steps_per_second": 0.079
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.0,
5
+ "eval_steps": 200,
6
+ "global_step": 46,
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.021739130434782608,
13
+ "grad_norm": 49.405524700479546,
14
+ "learning_rate": 1e-07,
15
+ "logits/generated": -0.6996344327926636,
16
+ "logits/real": -0.6411839723587036,
17
+ "logps/generated": -268.8082580566406,
18
+ "logps/real": -278.0677490234375,
19
+ "loss": 0.9671,
20
+ "rewards/accuracies": 0.0,
21
+ "rewards/generated": 0.0,
22
+ "rewards/margins": 0.0,
23
+ "rewards/real": 0.0,
24
+ "step": 1
25
+ },
26
+ {
27
+ "epoch": 0.21739130434782608,
28
+ "grad_norm": 41.54584385387338,
29
+ "learning_rate": 4.390243902439024e-07,
30
+ "logits/generated": -0.8907153010368347,
31
+ "logits/real": -0.8477872014045715,
32
+ "logps/generated": -284.6246337890625,
33
+ "logps/real": -273.05023193359375,
34
+ "loss": 0.972,
35
+ "rewards/accuracies": 0.4444444477558136,
36
+ "rewards/generated": 0.16897444427013397,
37
+ "rewards/margins": -0.029052892699837685,
38
+ "rewards/real": 0.13992153108119965,
39
+ "step": 10
40
+ },
41
+ {
42
+ "epoch": 0.43478260869565216,
43
+ "grad_norm": 34.40402976139953,
44
+ "learning_rate": 3.170731707317073e-07,
45
+ "logits/generated": -0.8808904886245728,
46
+ "logits/real": -0.8196160197257996,
47
+ "logps/generated": -291.40716552734375,
48
+ "logps/real": -271.150634765625,
49
+ "loss": 0.8645,
50
+ "rewards/accuracies": 0.737500011920929,
51
+ "rewards/generated": 0.16139307618141174,
52
+ "rewards/margins": 0.2521939277648926,
53
+ "rewards/real": 0.4135870039463043,
54
+ "step": 20
55
+ },
56
+ {
57
+ "epoch": 0.6521739130434783,
58
+ "grad_norm": 33.980993784539564,
59
+ "learning_rate": 1.951219512195122e-07,
60
+ "logits/generated": -0.8029176592826843,
61
+ "logits/real": -0.7914024591445923,
62
+ "logps/generated": -294.6733093261719,
63
+ "logps/real": -278.3045349121094,
64
+ "loss": 0.8687,
65
+ "rewards/accuracies": 0.699999988079071,
66
+ "rewards/generated": 0.16676124930381775,
67
+ "rewards/margins": 0.27672332525253296,
68
+ "rewards/real": 0.4434846043586731,
69
+ "step": 30
70
+ },
71
+ {
72
+ "epoch": 0.8695652173913043,
73
+ "grad_norm": 51.08625886158765,
74
+ "learning_rate": 7.317073170731706e-08,
75
+ "logits/generated": -0.8437131643295288,
76
+ "logits/real": -0.8044729232788086,
77
+ "logps/generated": -295.627685546875,
78
+ "logps/real": -277.035400390625,
79
+ "loss": 0.8454,
80
+ "rewards/accuracies": 0.762499988079071,
81
+ "rewards/generated": 0.19026382267475128,
82
+ "rewards/margins": 0.39240655303001404,
83
+ "rewards/real": 0.5826703906059265,
84
+ "step": 40
85
+ },
86
+ {
87
+ "epoch": 1.0,
88
+ "step": 46,
89
+ "total_flos": 0.0,
90
+ "train_loss": 0.8720041565273119,
91
+ "train_runtime": 584.014,
92
+ "train_samples_per_second": 2.51,
93
+ "train_steps_per_second": 0.079
94
+ }
95
+ ],
96
+ "logging_steps": 10,
97
+ "max_steps": 46,
98
+ "num_input_tokens_seen": 0,
99
+ "num_train_epochs": 1,
100
+ "save_steps": 200,
101
+ "stateful_callbacks": {
102
+ "TrainerControl": {
103
+ "args": {
104
+ "should_epoch_stop": false,
105
+ "should_evaluate": false,
106
+ "should_log": false,
107
+ "should_save": true,
108
+ "should_training_stop": true
109
+ },
110
+ "attributes": {}
111
+ }
112
+ },
113
+ "total_flos": 0.0,
114
+ "train_batch_size": 4,
115
+ "trial_name": null,
116
+ "trial_params": null
117
+ }