Model save
Browse files- README.md +70 -0
- all_results.json +9 -0
- train_results.json +9 -0
- trainer_state.json +109 -0
README.md
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.1
|
3 |
+
library_name: peft
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- trl
|
7 |
+
- sft
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: mistral_gsm8k_gold_answer_lora
|
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_gsm8k_gold_answer_lora
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.1](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 1.5897
|
22 |
+
|
23 |
+
## Model description
|
24 |
+
|
25 |
+
More information needed
|
26 |
+
|
27 |
+
## Intended uses & limitations
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Training and evaluation data
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training procedure
|
36 |
+
|
37 |
+
### Training hyperparameters
|
38 |
+
|
39 |
+
The following hyperparameters were used during training:
|
40 |
+
- learning_rate: 0.0002
|
41 |
+
- train_batch_size: 4
|
42 |
+
- eval_batch_size: 4
|
43 |
+
- seed: 42
|
44 |
+
- distributed_type: multi-GPU
|
45 |
+
- num_devices: 2
|
46 |
+
- gradient_accumulation_steps: 2
|
47 |
+
- total_train_batch_size: 16
|
48 |
+
- total_eval_batch_size: 8
|
49 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
50 |
+
- lr_scheduler_type: cosine
|
51 |
+
- lr_scheduler_warmup_ratio: 0.1
|
52 |
+
- training_steps: 20
|
53 |
+
|
54 |
+
### Training results
|
55 |
+
|
56 |
+
| Training Loss | Epoch | Step | Validation Loss |
|
57 |
+
|:-------------:|:------:|:----:|:---------------:|
|
58 |
+
| 2.6708 | 0.7692 | 5 | 1.9371 |
|
59 |
+
| 1.627 | 1.5385 | 10 | 1.6907 |
|
60 |
+
| 1.422 | 2.3077 | 15 | 1.6038 |
|
61 |
+
| 1.1894 | 3.0769 | 20 | 1.5897 |
|
62 |
+
|
63 |
+
|
64 |
+
### Framework versions
|
65 |
+
|
66 |
+
- PEFT 0.12.0
|
67 |
+
- Transformers 4.44.2
|
68 |
+
- Pytorch 2.4.1+cu121
|
69 |
+
- Datasets 3.0.0
|
70 |
+
- Tokenizers 0.19.1
|
all_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.076923076923077,
|
3 |
+
"total_flos": 507088404480.0,
|
4 |
+
"train_loss": 1.75083886384964,
|
5 |
+
"train_runtime": 83.5061,
|
6 |
+
"train_samples": 100,
|
7 |
+
"train_samples_per_second": 3.832,
|
8 |
+
"train_steps_per_second": 0.24
|
9 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 3.076923076923077,
|
3 |
+
"total_flos": 507088404480.0,
|
4 |
+
"train_loss": 1.75083886384964,
|
5 |
+
"train_runtime": 83.5061,
|
6 |
+
"train_samples": 100,
|
7 |
+
"train_samples_per_second": 3.832,
|
8 |
+
"train_steps_per_second": 0.24
|
9 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.076923076923077,
|
5 |
+
"eval_steps": 5,
|
6 |
+
"global_step": 20,
|
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.15384615384615385,
|
13 |
+
"grad_norm": 2.6500688910146555,
|
14 |
+
"learning_rate": 0.0001,
|
15 |
+
"loss": 3.1414,
|
16 |
+
"step": 1
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.7692307692307693,
|
20 |
+
"grad_norm": 4.60486835758179,
|
21 |
+
"learning_rate": 0.00018660254037844388,
|
22 |
+
"loss": 2.6708,
|
23 |
+
"step": 5
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.7692307692307693,
|
27 |
+
"eval_loss": 1.937098503112793,
|
28 |
+
"eval_runtime": 2.5272,
|
29 |
+
"eval_samples_per_second": 7.914,
|
30 |
+
"eval_steps_per_second": 1.187,
|
31 |
+
"step": 5
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 1.5384615384615383,
|
35 |
+
"grad_norm": 1.244018594872834,
|
36 |
+
"learning_rate": 0.00011736481776669306,
|
37 |
+
"loss": 1.627,
|
38 |
+
"step": 10
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"epoch": 1.5384615384615383,
|
42 |
+
"eval_loss": 1.690708875656128,
|
43 |
+
"eval_runtime": 1.2876,
|
44 |
+
"eval_samples_per_second": 15.533,
|
45 |
+
"eval_steps_per_second": 2.33,
|
46 |
+
"step": 10
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 2.3076923076923075,
|
50 |
+
"grad_norm": 1.2737122598991255,
|
51 |
+
"learning_rate": 3.5721239031346066e-05,
|
52 |
+
"loss": 1.422,
|
53 |
+
"step": 15
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 2.3076923076923075,
|
57 |
+
"eval_loss": 1.603790283203125,
|
58 |
+
"eval_runtime": 1.2814,
|
59 |
+
"eval_samples_per_second": 15.608,
|
60 |
+
"eval_steps_per_second": 2.341,
|
61 |
+
"step": 15
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 3.076923076923077,
|
65 |
+
"grad_norm": 1.3878615177459241,
|
66 |
+
"learning_rate": 0.0,
|
67 |
+
"loss": 1.1894,
|
68 |
+
"step": 20
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"epoch": 3.076923076923077,
|
72 |
+
"eval_loss": 1.5896568298339844,
|
73 |
+
"eval_runtime": 1.2884,
|
74 |
+
"eval_samples_per_second": 15.523,
|
75 |
+
"eval_steps_per_second": 2.329,
|
76 |
+
"step": 20
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 3.076923076923077,
|
80 |
+
"step": 20,
|
81 |
+
"total_flos": 507088404480.0,
|
82 |
+
"train_loss": 1.75083886384964,
|
83 |
+
"train_runtime": 83.5061,
|
84 |
+
"train_samples_per_second": 3.832,
|
85 |
+
"train_steps_per_second": 0.24
|
86 |
+
}
|
87 |
+
],
|
88 |
+
"logging_steps": 5,
|
89 |
+
"max_steps": 20,
|
90 |
+
"num_input_tokens_seen": 0,
|
91 |
+
"num_train_epochs": 4,
|
92 |
+
"save_steps": 1000,
|
93 |
+
"stateful_callbacks": {
|
94 |
+
"TrainerControl": {
|
95 |
+
"args": {
|
96 |
+
"should_epoch_stop": false,
|
97 |
+
"should_evaluate": false,
|
98 |
+
"should_log": false,
|
99 |
+
"should_save": true,
|
100 |
+
"should_training_stop": true
|
101 |
+
},
|
102 |
+
"attributes": {}
|
103 |
+
}
|
104 |
+
},
|
105 |
+
"total_flos": 507088404480.0,
|
106 |
+
"train_batch_size": 4,
|
107 |
+
"trial_name": null,
|
108 |
+
"trial_params": null
|
109 |
+
}
|