Model save
Browse files- README.md +60 -0
- all_results.json +9 -0
- generation_config.json +6 -0
- train_results.json +9 -0
- trainer_state.json +177 -0
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
license: apache-2.0
|
4 |
+
base_model: pbevan11/Mistral-Nemo-Instruct-MCAI-SFT-3Epochs
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- dpo
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: Mistral-Nemo-Instruct-MCAI-SFT-DPO-3Epochs
|
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 |
+
# Mistral-Nemo-Instruct-MCAI-SFT-DPO-3Epochs
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [pbevan11/Mistral-Nemo-Instruct-MCAI-SFT-3Epochs](https://huggingface.co/pbevan11/Mistral-Nemo-Instruct-MCAI-SFT-3Epochs) on the None dataset.
|
20 |
+
|
21 |
+
## Model description
|
22 |
+
|
23 |
+
More information needed
|
24 |
+
|
25 |
+
## Intended uses & limitations
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Training and evaluation data
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training procedure
|
34 |
+
|
35 |
+
### Training hyperparameters
|
36 |
+
|
37 |
+
The following hyperparameters were used during training:
|
38 |
+
- learning_rate: 5e-07
|
39 |
+
- train_batch_size: 6
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 8
|
44 |
+
- total_train_batch_size: 48
|
45 |
+
- total_eval_batch_size: 64
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- lr_scheduler_warmup_ratio: 0.1
|
49 |
+
- num_epochs: 1
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
### Framework versions
|
56 |
+
|
57 |
+
- Transformers 4.45.1
|
58 |
+
- Pytorch 2.4.1+cu121
|
59 |
+
- Datasets 3.0.1
|
60 |
+
- Tokenizers 0.20.0
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.5964088123964976,
|
5 |
+
"train_runtime": 1125.1043,
|
6 |
+
"train_samples": 3969,
|
7 |
+
"train_samples_per_second": 3.528,
|
8 |
+
"train_steps_per_second": 0.074
|
9 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"transformers_version": "4.45.1"
|
6 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 0.0,
|
4 |
+
"train_loss": 0.5964088123964976,
|
5 |
+
"train_runtime": 1125.1043,
|
6 |
+
"train_samples": 3969,
|
7 |
+
"train_samples_per_second": 3.528,
|
8 |
+
"train_steps_per_second": 0.074
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 1000,
|
6 |
+
"global_step": 83,
|
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.012048192771084338,
|
13 |
+
"grad_norm": 78.63502321747188,
|
14 |
+
"learning_rate": 5.555555555555555e-08,
|
15 |
+
"logits/chosen": -0.15773604810237885,
|
16 |
+
"logits/rejected": 0.06813092529773712,
|
17 |
+
"logps/chosen": -141.49667358398438,
|
18 |
+
"logps/rejected": -138.58563232421875,
|
19 |
+
"loss": 0.6931,
|
20 |
+
"rewards/accuracies": 0.0,
|
21 |
+
"rewards/chosen": 0.0,
|
22 |
+
"rewards/margins": 0.0,
|
23 |
+
"rewards/rejected": 0.0,
|
24 |
+
"step": 1
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 0.12048192771084337,
|
28 |
+
"grad_norm": 88.90141432691846,
|
29 |
+
"learning_rate": 4.932432432432432e-07,
|
30 |
+
"logits/chosen": 0.70196932554245,
|
31 |
+
"logits/rejected": 0.7832146883010864,
|
32 |
+
"logps/chosen": -201.90382385253906,
|
33 |
+
"logps/rejected": -188.25331115722656,
|
34 |
+
"loss": 0.6839,
|
35 |
+
"rewards/accuracies": 0.46296295523643494,
|
36 |
+
"rewards/chosen": -0.022965913638472557,
|
37 |
+
"rewards/margins": 0.006561698392033577,
|
38 |
+
"rewards/rejected": -0.029527612030506134,
|
39 |
+
"step": 10
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 0.24096385542168675,
|
43 |
+
"grad_norm": 80.99107716525879,
|
44 |
+
"learning_rate": 4.2567567567567566e-07,
|
45 |
+
"logits/chosen": 0.4373137354850769,
|
46 |
+
"logits/rejected": 0.47410067915916443,
|
47 |
+
"logps/chosen": -231.05880737304688,
|
48 |
+
"logps/rejected": -206.24331665039062,
|
49 |
+
"loss": 0.639,
|
50 |
+
"rewards/accuracies": 0.5166666507720947,
|
51 |
+
"rewards/chosen": -0.23480196297168732,
|
52 |
+
"rewards/margins": 0.091942198574543,
|
53 |
+
"rewards/rejected": -0.3267441391944885,
|
54 |
+
"step": 20
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 0.3614457831325301,
|
58 |
+
"grad_norm": 70.05826042544521,
|
59 |
+
"learning_rate": 3.5810810810810807e-07,
|
60 |
+
"logits/chosen": 0.4946823716163635,
|
61 |
+
"logits/rejected": 0.5182942152023315,
|
62 |
+
"logps/chosen": -198.873046875,
|
63 |
+
"logps/rejected": -209.1875457763672,
|
64 |
+
"loss": 0.6132,
|
65 |
+
"rewards/accuracies": 0.6666666865348816,
|
66 |
+
"rewards/chosen": -0.34537622332572937,
|
67 |
+
"rewards/margins": 0.2645321488380432,
|
68 |
+
"rewards/rejected": -0.6099082827568054,
|
69 |
+
"step": 30
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 0.4819277108433735,
|
73 |
+
"grad_norm": 73.44013668698199,
|
74 |
+
"learning_rate": 2.905405405405405e-07,
|
75 |
+
"logits/chosen": 0.6027838587760925,
|
76 |
+
"logits/rejected": 0.5924917459487915,
|
77 |
+
"logps/chosen": -193.88595581054688,
|
78 |
+
"logps/rejected": -207.39035034179688,
|
79 |
+
"loss": 0.59,
|
80 |
+
"rewards/accuracies": 0.6000000238418579,
|
81 |
+
"rewards/chosen": -0.38962751626968384,
|
82 |
+
"rewards/margins": 0.30494749546051025,
|
83 |
+
"rewards/rejected": -0.6945750117301941,
|
84 |
+
"step": 40
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"epoch": 0.6024096385542169,
|
88 |
+
"grad_norm": 60.19655546024119,
|
89 |
+
"learning_rate": 2.2297297297297295e-07,
|
90 |
+
"logits/chosen": 0.44521474838256836,
|
91 |
+
"logits/rejected": 0.44708484411239624,
|
92 |
+
"logps/chosen": -180.35104370117188,
|
93 |
+
"logps/rejected": -175.62757873535156,
|
94 |
+
"loss": 0.5565,
|
95 |
+
"rewards/accuracies": 0.7000000476837158,
|
96 |
+
"rewards/chosen": -0.3609669804573059,
|
97 |
+
"rewards/margins": 0.35280880331993103,
|
98 |
+
"rewards/rejected": -0.7137758135795593,
|
99 |
+
"step": 50
|
100 |
+
},
|
101 |
+
{
|
102 |
+
"epoch": 0.7228915662650602,
|
103 |
+
"grad_norm": 76.89074162006759,
|
104 |
+
"learning_rate": 1.554054054054054e-07,
|
105 |
+
"logits/chosen": 0.42552661895751953,
|
106 |
+
"logits/rejected": 0.42344537377357483,
|
107 |
+
"logps/chosen": -203.36997985839844,
|
108 |
+
"logps/rejected": -191.31314086914062,
|
109 |
+
"loss": 0.5828,
|
110 |
+
"rewards/accuracies": 0.6333333253860474,
|
111 |
+
"rewards/chosen": -0.4513484835624695,
|
112 |
+
"rewards/margins": 0.287315309047699,
|
113 |
+
"rewards/rejected": -0.7386638522148132,
|
114 |
+
"step": 60
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.8433734939759037,
|
118 |
+
"grad_norm": 76.3820752555437,
|
119 |
+
"learning_rate": 8.783783783783784e-08,
|
120 |
+
"logits/chosen": 0.4217614233493805,
|
121 |
+
"logits/rejected": 0.41748833656311035,
|
122 |
+
"logps/chosen": -163.9698028564453,
|
123 |
+
"logps/rejected": -176.10614013671875,
|
124 |
+
"loss": 0.5634,
|
125 |
+
"rewards/accuracies": 0.7000000476837158,
|
126 |
+
"rewards/chosen": -0.3167441189289093,
|
127 |
+
"rewards/margins": 0.5091690421104431,
|
128 |
+
"rewards/rejected": -0.8259132504463196,
|
129 |
+
"step": 70
|
130 |
+
},
|
131 |
+
{
|
132 |
+
"epoch": 0.963855421686747,
|
133 |
+
"grad_norm": 74.01074286574386,
|
134 |
+
"learning_rate": 2.027027027027027e-08,
|
135 |
+
"logits/chosen": 0.43573635816574097,
|
136 |
+
"logits/rejected": 0.45437565445899963,
|
137 |
+
"logps/chosen": -225.8251495361328,
|
138 |
+
"logps/rejected": -199.63169860839844,
|
139 |
+
"loss": 0.5463,
|
140 |
+
"rewards/accuracies": 0.7500000596046448,
|
141 |
+
"rewards/chosen": -0.41202035546302795,
|
142 |
+
"rewards/margins": 0.6277278661727905,
|
143 |
+
"rewards/rejected": -1.0397483110427856,
|
144 |
+
"step": 80
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"epoch": 1.0,
|
148 |
+
"step": 83,
|
149 |
+
"total_flos": 0.0,
|
150 |
+
"train_loss": 0.5964088123964976,
|
151 |
+
"train_runtime": 1125.1043,
|
152 |
+
"train_samples_per_second": 3.528,
|
153 |
+
"train_steps_per_second": 0.074
|
154 |
+
}
|
155 |
+
],
|
156 |
+
"logging_steps": 10,
|
157 |
+
"max_steps": 83,
|
158 |
+
"num_input_tokens_seen": 0,
|
159 |
+
"num_train_epochs": 1,
|
160 |
+
"save_steps": 100,
|
161 |
+
"stateful_callbacks": {
|
162 |
+
"TrainerControl": {
|
163 |
+
"args": {
|
164 |
+
"should_epoch_stop": false,
|
165 |
+
"should_evaluate": false,
|
166 |
+
"should_log": false,
|
167 |
+
"should_save": true,
|
168 |
+
"should_training_stop": true
|
169 |
+
},
|
170 |
+
"attributes": {}
|
171 |
+
}
|
172 |
+
},
|
173 |
+
"total_flos": 0.0,
|
174 |
+
"train_batch_size": 6,
|
175 |
+
"trial_name": null,
|
176 |
+
"trial_params": null
|
177 |
+
}
|