SamChen888 commited on
Commit
f0712ae
1 Parent(s): 9261393

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ license: other
5
+ tags:
6
+ - llama-factory
7
+ - lora
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: train_mistral
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
+ # train_mistral
18
+
19
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) on the treino_pt_rde 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-05
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 4
43
+ - total_train_batch_size: 8
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - num_epochs: 3.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - PEFT 0.12.0
55
+ - Transformers 4.44.2
56
+ - Pytorch 2.3.1+cu121
57
+ - Datasets 3.1.0
58
+ - Tokenizers 0.19.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "q_proj",
25
+ "v_proj",
26
+ "down_proj",
27
+ "gate_proj",
28
+ "k_proj",
29
+ "up_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50941bf7e860fc610e047ad5dcc0a43101b1fef8fa15fb0b226cf9ff1ceb171f
3
+ size 83945296
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.96,
3
+ "num_input_tokens_seen": 358624,
4
+ "total_flos": 1.5352214341287936e+16,
5
+ "train_loss": 0.24338918279957128,
6
+ "train_runtime": 8119.2255,
7
+ "train_samples_per_second": 0.111,
8
+ "train_steps_per_second": 0.014
9
+ }
checkpoint-111/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.12.0
checkpoint-111/adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 16,
14
+ "lora_dropout": 0,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "q_proj",
25
+ "v_proj",
26
+ "down_proj",
27
+ "gate_proj",
28
+ "k_proj",
29
+ "up_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
checkpoint-111/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:50941bf7e860fc610e047ad5dcc0a43101b1fef8fa15fb0b226cf9ff1ceb171f
3
+ size 83945296
checkpoint-111/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01e561ae4173e95edadb62264a536a40fa0f0ac13041576babe3d99f5dbfd412
3
+ size 168149074
checkpoint-111/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9196a1e708bf24d6abba41cce3f8558820acc3e50f9394c5955e29eb41ffea3d
3
+ size 14244
checkpoint-111/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cb3e701784ce7be7de0b0ccb685aded67f61dd385a4fc3b6a36f7f394ca085b
3
+ size 1064
checkpoint-111/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
checkpoint-111/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-111/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
checkpoint-111/tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-111/trainer_state.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.96,
5
+ "eval_steps": 500,
6
+ "global_step": 111,
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.26666666666666666,
13
+ "grad_norm": 2.969418525695801,
14
+ "learning_rate": 4.9005367134442235e-05,
15
+ "loss": 0.4778,
16
+ "num_input_tokens_seen": 33232,
17
+ "step": 10
18
+ },
19
+ {
20
+ "epoch": 0.5333333333333333,
21
+ "grad_norm": 2.1690313816070557,
22
+ "learning_rate": 4.6100612100748765e-05,
23
+ "loss": 0.3431,
24
+ "num_input_tokens_seen": 65520,
25
+ "step": 20
26
+ },
27
+ {
28
+ "epoch": 0.8,
29
+ "grad_norm": 6.671631813049316,
30
+ "learning_rate": 4.151686808475204e-05,
31
+ "loss": 0.318,
32
+ "num_input_tokens_seen": 97472,
33
+ "step": 30
34
+ },
35
+ {
36
+ "epoch": 1.0666666666666667,
37
+ "grad_norm": 3.928008794784546,
38
+ "learning_rate": 3.56188664821012e-05,
39
+ "loss": 0.4028,
40
+ "num_input_tokens_seen": 128928,
41
+ "step": 40
42
+ },
43
+ {
44
+ "epoch": 1.3333333333333333,
45
+ "grad_norm": 11.873285293579102,
46
+ "learning_rate": 2.8875914991604948e-05,
47
+ "loss": 0.1864,
48
+ "num_input_tokens_seen": 161248,
49
+ "step": 50
50
+ },
51
+ {
52
+ "epoch": 1.6,
53
+ "grad_norm": 11.22799301147461,
54
+ "learning_rate": 2.182455450632803e-05,
55
+ "loss": 0.218,
56
+ "num_input_tokens_seen": 193728,
57
+ "step": 60
58
+ },
59
+ {
60
+ "epoch": 1.8666666666666667,
61
+ "grad_norm": 4.876537799835205,
62
+ "learning_rate": 1.5025866217114592e-05,
63
+ "loss": 0.2257,
64
+ "num_input_tokens_seen": 226048,
65
+ "step": 70
66
+ },
67
+ {
68
+ "epoch": 2.1333333333333333,
69
+ "grad_norm": 3.1793081760406494,
70
+ "learning_rate": 9.020826029175384e-06,
71
+ "loss": 0.2099,
72
+ "num_input_tokens_seen": 258608,
73
+ "step": 80
74
+ },
75
+ {
76
+ "epoch": 2.4,
77
+ "grad_norm": 4.5291218757629395,
78
+ "learning_rate": 4.2872587689039484e-06,
79
+ "loss": 0.1456,
80
+ "num_input_tokens_seen": 290720,
81
+ "step": 90
82
+ },
83
+ {
84
+ "epoch": 2.6666666666666665,
85
+ "grad_norm": 2.929227590560913,
86
+ "learning_rate": 1.201817361771837e-06,
87
+ "loss": 0.0777,
88
+ "num_input_tokens_seen": 323584,
89
+ "step": 100
90
+ },
91
+ {
92
+ "epoch": 2.9333333333333336,
93
+ "grad_norm": 2.021867036819458,
94
+ "learning_rate": 1.0012322041960676e-08,
95
+ "loss": 0.0711,
96
+ "num_input_tokens_seen": 355456,
97
+ "step": 110
98
+ }
99
+ ],
100
+ "logging_steps": 10,
101
+ "max_steps": 111,
102
+ "num_input_tokens_seen": 358624,
103
+ "num_train_epochs": 3,
104
+ "save_steps": 1000,
105
+ "stateful_callbacks": {
106
+ "TrainerControl": {
107
+ "args": {
108
+ "should_epoch_stop": false,
109
+ "should_evaluate": false,
110
+ "should_log": false,
111
+ "should_save": true,
112
+ "should_training_stop": true
113
+ },
114
+ "attributes": {}
115
+ }
116
+ },
117
+ "total_flos": 1.5352214341287936e+16,
118
+ "train_batch_size": 2,
119
+ "trial_name": null,
120
+ "trial_params": null
121
+ }
checkpoint-111/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f425e45c06d80fc466afd9d8416f7907a8fac0b6229ea210de400d287182e686
3
+ size 5368
config.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ShashiVish/t5-small-fine-tune-cover-letter",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "classifier_dropout": 0.0,
7
+ "d_ff": 2048,
8
+ "d_kv": 64,
9
+ "d_model": 512,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "relu",
12
+ "dropout_rate": 0.1,
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "relu",
15
+ "initializer_factor": 1.0,
16
+ "is_encoder_decoder": true,
17
+ "is_gated_act": false,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "max_length": 512,
20
+ "model_type": "t5",
21
+ "n_positions": 512,
22
+ "num_decoder_layers": 6,
23
+ "num_heads": 8,
24
+ "num_layers": 6,
25
+ "output_past": true,
26
+ "pad_token_id": 0,
27
+ "relative_attention_max_distance": 128,
28
+ "relative_attention_num_buckets": 32,
29
+ "task_specific_params": {
30
+ "summarization": {
31
+ "early_stopping": true,
32
+ "length_penalty": 2.0,
33
+ "max_length": 200,
34
+ "min_length": 30,
35
+ "no_repeat_ngram_size": 3,
36
+ "num_beams": 4,
37
+ "prefix": "summarize: "
38
+ },
39
+ "translation_en_to_de": {
40
+ "early_stopping": true,
41
+ "max_length": 300,
42
+ "num_beams": 4,
43
+ "prefix": "translate English to German: "
44
+ },
45
+ "translation_en_to_fr": {
46
+ "early_stopping": true,
47
+ "max_length": 300,
48
+ "num_beams": 4,
49
+ "prefix": "translate English to French: "
50
+ },
51
+ "translation_en_to_ro": {
52
+ "early_stopping": true,
53
+ "max_length": 300,
54
+ "num_beams": 4,
55
+ "prefix": "translate English to Romanian: "
56
+ }
57
+ },
58
+ "torch_dtype": "float32",
59
+ "transformers_version": "4.44.2",
60
+ "use_cache": true,
61
+ "vocab_size": 32128
62
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "max_length": 512,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.44.2"
8
+ }
llamaboard_config.yaml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ top.booster: auto
2
+ top.checkpoint_path: []
3
+ top.finetuning_type: lora
4
+ top.model_name: Mistral-7B-Instruct-v0.3
5
+ top.quantization_bit: '4'
6
+ top.quantization_method: bitsandbytes
7
+ top.rope_scaling: none
8
+ top.template: mistral
9
+ train.additional_target: ''
10
+ train.badam_mode: layer
11
+ train.badam_switch_interval: 50
12
+ train.badam_switch_mode: ascending
13
+ train.badam_update_ratio: 0.05
14
+ train.batch_size: 2
15
+ train.compute_type: bf16
16
+ train.create_new_adapter: false
17
+ train.cutoff_len: 2048
18
+ train.dataset:
19
+ - treino_pt_rde
20
+ train.dataset_dir: data
21
+ train.ds_offload: false
22
+ train.ds_stage: none
23
+ train.extra_args: '{"optim": "adamw_torch"}'
24
+ train.freeze_extra_modules: ''
25
+ train.freeze_trainable_layers: 2
26
+ train.freeze_trainable_modules: all
27
+ train.galore_rank: 16
28
+ train.galore_scale: 0.25
29
+ train.galore_target: all
30
+ train.galore_update_interval: 200
31
+ train.gradient_accumulation_steps: 4
32
+ train.learning_rate: 5e-5
33
+ train.logging_steps: 10
34
+ train.lora_alpha: 16
35
+ train.lora_dropout: 0
36
+ train.lora_rank: 8
37
+ train.lora_target: ''
38
+ train.loraplus_lr_ratio: 0
39
+ train.lr_scheduler_type: cosine
40
+ train.mask_history: false
41
+ train.max_grad_norm: '1.0'
42
+ train.max_samples: '300'
43
+ train.neat_packing: false
44
+ train.neftune_alpha: 0
45
+ train.num_train_epochs: '3.0'
46
+ train.packing: false
47
+ train.ppo_score_norm: false
48
+ train.ppo_whiten_rewards: false
49
+ train.pref_beta: 0.1
50
+ train.pref_ftx: 0
51
+ train.pref_loss: sigmoid
52
+ train.report_to: false
53
+ train.resize_vocab: false
54
+ train.reward_model: null
55
+ train.save_steps: 1000
56
+ train.shift_attn: false
57
+ train.train_on_prompt: false
58
+ train.training_stage: Supervised Fine-Tuning
59
+ train.use_badam: false
60
+ train.use_dora: false
61
+ train.use_galore: false
62
+ train.use_llama_pro: false
63
+ train.use_pissa: false
64
+ train.use_rslora: false
65
+ train.val_size: 0
66
+ train.warmup_steps: 0
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:602a9e974b1a45a14981654c1bab1c983008b5cd624f91d11fdbf26c95eb00ec
3
+ size 242041896
running_log.txt ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [WARNING|2024-11-12 02:01:07] logging.py:162 >> We recommend enable `upcast_layernorm` in quantized training.
2
+
3
+ [INFO|2024-11-12 02:01:07] parser.py:355 >> Process rank: 0, device: cuda:0, n_gpu: 1, distributed training: False, compute dtype: torch.bfloat16
4
+
5
+ [INFO|2024-11-12 02:01:07] configuration_utils.py:733 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/config.json
6
+
7
+ [INFO|2024-11-12 02:01:07] configuration_utils.py:800 >> Model config MistralConfig {
8
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
9
+ "architectures": [
10
+ "MistralForCausalLM"
11
+ ],
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 1,
14
+ "eos_token_id": 2,
15
+ "head_dim": 128,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 4096,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 14336,
20
+ "max_position_embeddings": 32768,
21
+ "model_type": "mistral",
22
+ "num_attention_heads": 32,
23
+ "num_hidden_layers": 32,
24
+ "num_key_value_heads": 8,
25
+ "rms_norm_eps": 1e-05,
26
+ "rope_theta": 1000000.0,
27
+ "sliding_window": null,
28
+ "tie_word_embeddings": false,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.44.2",
31
+ "use_cache": true,
32
+ "vocab_size": 32768
33
+ }
34
+
35
+
36
+ [INFO|2024-11-12 02:01:08] tokenization_utils_base.py:2269 >> loading file tokenizer.model from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer.model
37
+
38
+ [INFO|2024-11-12 02:01:08] tokenization_utils_base.py:2269 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer.json
39
+
40
+ [INFO|2024-11-12 02:01:08] tokenization_utils_base.py:2269 >> loading file added_tokens.json from cache at None
41
+
42
+ [INFO|2024-11-12 02:01:08] tokenization_utils_base.py:2269 >> loading file special_tokens_map.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/special_tokens_map.json
43
+
44
+ [INFO|2024-11-12 02:01:08] tokenization_utils_base.py:2269 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer_config.json
45
+
46
+ [INFO|2024-11-12 02:01:09] configuration_utils.py:733 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/config.json
47
+
48
+ [INFO|2024-11-12 02:01:09] configuration_utils.py:800 >> Model config MistralConfig {
49
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
50
+ "architectures": [
51
+ "MistralForCausalLM"
52
+ ],
53
+ "attention_dropout": 0.0,
54
+ "bos_token_id": 1,
55
+ "eos_token_id": 2,
56
+ "head_dim": 128,
57
+ "hidden_act": "silu",
58
+ "hidden_size": 4096,
59
+ "initializer_range": 0.02,
60
+ "intermediate_size": 14336,
61
+ "max_position_embeddings": 32768,
62
+ "model_type": "mistral",
63
+ "num_attention_heads": 32,
64
+ "num_hidden_layers": 32,
65
+ "num_key_value_heads": 8,
66
+ "rms_norm_eps": 1e-05,
67
+ "rope_theta": 1000000.0,
68
+ "sliding_window": null,
69
+ "tie_word_embeddings": false,
70
+ "torch_dtype": "bfloat16",
71
+ "transformers_version": "4.44.2",
72
+ "use_cache": true,
73
+ "vocab_size": 32768
74
+ }
75
+
76
+
77
+ [INFO|2024-11-12 02:01:09] tokenization_utils_base.py:2269 >> loading file tokenizer.model from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer.model
78
+
79
+ [INFO|2024-11-12 02:01:09] tokenization_utils_base.py:2269 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer.json
80
+
81
+ [INFO|2024-11-12 02:01:09] tokenization_utils_base.py:2269 >> loading file added_tokens.json from cache at None
82
+
83
+ [INFO|2024-11-12 02:01:09] tokenization_utils_base.py:2269 >> loading file special_tokens_map.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/special_tokens_map.json
84
+
85
+ [INFO|2024-11-12 02:01:09] tokenization_utils_base.py:2269 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/tokenizer_config.json
86
+
87
+ [INFO|2024-11-12 02:01:10] logging.py:157 >> Add pad token: </s>
88
+
89
+ [INFO|2024-11-12 02:01:10] logging.py:157 >> Loading dataset treino_pt_rde.json...
90
+
91
+ [INFO|2024-11-12 02:01:15] configuration_utils.py:733 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/config.json
92
+
93
+ [INFO|2024-11-12 02:01:15] configuration_utils.py:800 >> Model config MistralConfig {
94
+ "_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
95
+ "architectures": [
96
+ "MistralForCausalLM"
97
+ ],
98
+ "attention_dropout": 0.0,
99
+ "bos_token_id": 1,
100
+ "eos_token_id": 2,
101
+ "head_dim": 128,
102
+ "hidden_act": "silu",
103
+ "hidden_size": 4096,
104
+ "initializer_range": 0.02,
105
+ "intermediate_size": 14336,
106
+ "max_position_embeddings": 32768,
107
+ "model_type": "mistral",
108
+ "num_attention_heads": 32,
109
+ "num_hidden_layers": 32,
110
+ "num_key_value_heads": 8,
111
+ "rms_norm_eps": 1e-05,
112
+ "rope_theta": 1000000.0,
113
+ "sliding_window": null,
114
+ "tie_word_embeddings": false,
115
+ "torch_dtype": "bfloat16",
116
+ "transformers_version": "4.44.2",
117
+ "use_cache": true,
118
+ "vocab_size": 32768
119
+ }
120
+
121
+
122
+ [INFO|2024-11-12 02:01:15] logging.py:157 >> Quantizing model to 4 bit with bitsandbytes.
123
+
124
+ [INFO|2024-11-12 02:01:15] modeling_utils.py:3678 >> loading weights file model.safetensors from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/model.safetensors.index.json
125
+
126
+ [INFO|2024-11-12 02:07:01] modeling_utils.py:1606 >> Instantiating MistralForCausalLM model under default dtype torch.bfloat16.
127
+
128
+ [INFO|2024-11-12 02:07:01] configuration_utils.py:1038 >> Generate config GenerationConfig {
129
+ "bos_token_id": 1,
130
+ "eos_token_id": 2
131
+ }
132
+
133
+
134
+ [INFO|2024-11-12 02:08:04] modeling_utils.py:4507 >> All model checkpoint weights were used when initializing MistralForCausalLM.
135
+
136
+
137
+ [INFO|2024-11-12 02:08:04] modeling_utils.py:4515 >> All the weights of MistralForCausalLM were initialized from the model checkpoint at mistralai/Mistral-7B-Instruct-v0.3.
138
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use MistralForCausalLM for predictions without further training.
139
+
140
+ [INFO|2024-11-12 02:08:05] configuration_utils.py:993 >> loading configuration file generation_config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/generation_config.json
141
+
142
+ [INFO|2024-11-12 02:08:05] configuration_utils.py:1038 >> Generate config GenerationConfig {
143
+ "bos_token_id": 1,
144
+ "eos_token_id": 2
145
+ }
146
+
147
+
148
+ [INFO|2024-11-12 02:08:05] logging.py:157 >> Gradient checkpointing enabled.
149
+
150
+ [INFO|2024-11-12 02:08:05] logging.py:157 >> Using torch SDPA for faster training and inference.
151
+
152
+ [INFO|2024-11-12 02:08:05] logging.py:157 >> Upcasting trainable params to float32.
153
+
154
+ [INFO|2024-11-12 02:08:05] logging.py:157 >> Fine-tuning method: LoRA
155
+
156
+ [INFO|2024-11-12 02:08:05] logging.py:157 >> Found linear modules: o_proj,q_proj,v_proj,down_proj,gate_proj,k_proj,up_proj
157
+
158
+ [INFO|2024-11-12 02:08:06] logging.py:157 >> trainable params: 20,971,520 || all params: 7,268,995,072 || trainable%: 0.2885
159
+
160
+ [INFO|2024-11-12 02:08:06] trainer.py:648 >> Using auto half precision backend
161
+
162
+ [INFO|2024-11-12 02:08:06] trainer.py:2134 >> ***** Running training *****
163
+
164
+ [INFO|2024-11-12 02:08:06] trainer.py:2135 >> Num examples = 300
165
+
166
+ [INFO|2024-11-12 02:08:06] trainer.py:2136 >> Num Epochs = 3
167
+
168
+ [INFO|2024-11-12 02:08:06] trainer.py:2137 >> Instantaneous batch size per device = 2
169
+
170
+ [INFO|2024-11-12 02:08:06] trainer.py:2140 >> Total train batch size (w. parallel, distributed & accumulation) = 8
171
+
172
+ [INFO|2024-11-12 02:08:06] trainer.py:2141 >> Gradient Accumulation steps = 4
173
+
174
+ [INFO|2024-11-12 02:08:06] trainer.py:2142 >> Total optimization steps = 111
175
+
176
+ [INFO|2024-11-12 02:08:06] trainer.py:2143 >> Number of trainable parameters = 20,971,520
177
+
178
+ [INFO|2024-11-12 02:20:35] logging.py:157 >> {'loss': 0.4778, 'learning_rate': 4.9005e-05, 'epoch': 0.27, 'throughput': 44.35}
179
+
180
+ [INFO|2024-11-12 02:32:47] logging.py:157 >> {'loss': 0.3431, 'learning_rate': 4.6101e-05, 'epoch': 0.53, 'throughput': 44.24}
181
+
182
+ [INFO|2024-11-12 02:44:52] logging.py:157 >> {'loss': 0.3180, 'learning_rate': 4.1517e-05, 'epoch': 0.80, 'throughput': 44.19}
183
+
184
+ [INFO|2024-11-12 02:56:44] logging.py:157 >> {'loss': 0.4028, 'learning_rate': 3.5619e-05, 'epoch': 1.07, 'throughput': 44.18}
185
+
186
+ [INFO|2024-11-12 03:08:54] logging.py:157 >> {'loss': 0.1864, 'learning_rate': 2.8876e-05, 'epoch': 1.33, 'throughput': 44.20}
187
+
188
+ [INFO|2024-11-12 03:21:09] logging.py:157 >> {'loss': 0.2180, 'learning_rate': 2.1825e-05, 'epoch': 1.60, 'throughput': 44.20}
189
+
190
+ [INFO|2024-11-12 03:33:22] logging.py:157 >> {'loss': 0.2257, 'learning_rate': 1.5026e-05, 'epoch': 1.87, 'throughput': 44.18}
191
+
192
+ [INFO|2024-11-12 03:45:39] logging.py:157 >> {'loss': 0.2099, 'learning_rate': 9.0208e-06, 'epoch': 2.13, 'throughput': 44.19}
193
+
194
+ [INFO|2024-11-12 03:57:47] logging.py:157 >> {'loss': 0.1456, 'learning_rate': 4.2873e-06, 'epoch': 2.40, 'throughput': 44.18}
195
+
196
+ [INFO|2024-11-12 04:10:11] logging.py:157 >> {'loss': 0.0777, 'learning_rate': 1.2018e-06, 'epoch': 2.67, 'throughput': 44.18}
197
+
198
+ [INFO|2024-11-12 04:22:13] logging.py:157 >> {'loss': 0.0711, 'learning_rate': 1.0012e-08, 'epoch': 2.93, 'throughput': 44.18}
199
+
200
+ [INFO|2024-11-12 04:23:24] trainer.py:3503 >> Saving model checkpoint to saves/Mistral-7B-Instruct-v0.3/lora/train_mistral/checkpoint-111
201
+
202
+ [INFO|2024-11-12 04:23:24] configuration_utils.py:733 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/config.json
203
+
204
+ [INFO|2024-11-12 04:23:24] configuration_utils.py:800 >> Model config MistralConfig {
205
+ "architectures": [
206
+ "MistralForCausalLM"
207
+ ],
208
+ "attention_dropout": 0.0,
209
+ "bos_token_id": 1,
210
+ "eos_token_id": 2,
211
+ "head_dim": 128,
212
+ "hidden_act": "silu",
213
+ "hidden_size": 4096,
214
+ "initializer_range": 0.02,
215
+ "intermediate_size": 14336,
216
+ "max_position_embeddings": 32768,
217
+ "model_type": "mistral",
218
+ "num_attention_heads": 32,
219
+ "num_hidden_layers": 32,
220
+ "num_key_value_heads": 8,
221
+ "rms_norm_eps": 1e-05,
222
+ "rope_theta": 1000000.0,
223
+ "sliding_window": null,
224
+ "tie_word_embeddings": false,
225
+ "torch_dtype": "bfloat16",
226
+ "transformers_version": "4.44.2",
227
+ "use_cache": true,
228
+ "vocab_size": 32768
229
+ }
230
+
231
+
232
+ [INFO|2024-11-12 04:23:25] tokenization_utils_base.py:2684 >> tokenizer config file saved in saves/Mistral-7B-Instruct-v0.3/lora/train_mistral/checkpoint-111/tokenizer_config.json
233
+
234
+ [INFO|2024-11-12 04:23:25] tokenization_utils_base.py:2693 >> Special tokens file saved in saves/Mistral-7B-Instruct-v0.3/lora/train_mistral/checkpoint-111/special_tokens_map.json
235
+
236
+ [INFO|2024-11-12 04:23:25] trainer.py:2394 >>
237
+
238
+ Training completed. Do not forget to share your model on huggingface.co/models =)
239
+
240
+
241
+
242
+ [INFO|2024-11-12 04:23:25] trainer.py:3503 >> Saving model checkpoint to saves/Mistral-7B-Instruct-v0.3/lora/train_mistral
243
+
244
+ [INFO|2024-11-12 04:23:26] configuration_utils.py:733 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.3/snapshots/e0bc86c23ce5aae1db576c8cca6f06f1f73af2db/config.json
245
+
246
+ [INFO|2024-11-12 04:23:26] configuration_utils.py:800 >> Model config MistralConfig {
247
+ "architectures": [
248
+ "MistralForCausalLM"
249
+ ],
250
+ "attention_dropout": 0.0,
251
+ "bos_token_id": 1,
252
+ "eos_token_id": 2,
253
+ "head_dim": 128,
254
+ "hidden_act": "silu",
255
+ "hidden_size": 4096,
256
+ "initializer_range": 0.02,
257
+ "intermediate_size": 14336,
258
+ "max_position_embeddings": 32768,
259
+ "model_type": "mistral",
260
+ "num_attention_heads": 32,
261
+ "num_hidden_layers": 32,
262
+ "num_key_value_heads": 8,
263
+ "rms_norm_eps": 1e-05,
264
+ "rope_theta": 1000000.0,
265
+ "sliding_window": null,
266
+ "tie_word_embeddings": false,
267
+ "torch_dtype": "bfloat16",
268
+ "transformers_version": "4.44.2",
269
+ "use_cache": true,
270
+ "vocab_size": 32768
271
+ }
272
+
273
+
274
+ [INFO|2024-11-12 04:23:26] tokenization_utils_base.py:2684 >> tokenizer config file saved in saves/Mistral-7B-Instruct-v0.3/lora/train_mistral/tokenizer_config.json
275
+
276
+ [INFO|2024-11-12 04:23:26] tokenization_utils_base.py:2693 >> Special tokens file saved in saves/Mistral-7B-Instruct-v0.3/lora/train_mistral/special_tokens_map.json
277
+
278
+ [WARNING|2024-11-12 04:23:26] logging.py:162 >> No metric eval_loss to plot.
279
+
280
+ [WARNING|2024-11-12 04:23:26] logging.py:162 >> No metric eval_accuracy to plot.
281
+
282
+ [INFO|2024-11-12 04:23:26] modelcard.py:449 >> Dropping the following result as it does not have all the necessary fields:
283
+ {'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
284
+
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "</s>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37f00374dea48658ee8f5d0f21895b9bc55cb0103939607c8185bfd1c6ca1f89
3
+ size 587404
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff
 
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.96,
3
+ "num_input_tokens_seen": 358624,
4
+ "total_flos": 1.5352214341287936e+16,
5
+ "train_loss": 0.24338918279957128,
6
+ "train_runtime": 8119.2255,
7
+ "train_samples_per_second": 0.111,
8
+ "train_steps_per_second": 0.014
9
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {"current_steps": 10, "total_steps": 111, "loss": 0.4778, "lr": 4.9005367134442235e-05, "epoch": 0.26666666666666666, "percentage": 9.01, "elapsed_time": "0:12:29", "remaining_time": "2:06:08", "throughput": 44.35, "total_tokens": 33232}
2
+ {"current_steps": 20, "total_steps": 111, "loss": 0.3431, "lr": 4.6100612100748765e-05, "epoch": 0.5333333333333333, "percentage": 18.02, "elapsed_time": "0:24:41", "remaining_time": "1:52:18", "throughput": 44.24, "total_tokens": 65520}
3
+ {"current_steps": 30, "total_steps": 111, "loss": 0.318, "lr": 4.151686808475204e-05, "epoch": 0.8, "percentage": 27.03, "elapsed_time": "0:36:45", "remaining_time": "1:39:15", "throughput": 44.19, "total_tokens": 97472}
4
+ {"current_steps": 40, "total_steps": 111, "loss": 0.4028, "lr": 3.56188664821012e-05, "epoch": 1.0666666666666667, "percentage": 36.04, "elapsed_time": "0:48:38", "remaining_time": "1:26:19", "throughput": 44.18, "total_tokens": 128928}
5
+ {"current_steps": 50, "total_steps": 111, "loss": 0.1864, "lr": 2.8875914991604948e-05, "epoch": 1.3333333333333333, "percentage": 45.05, "elapsed_time": "1:00:48", "remaining_time": "1:14:10", "throughput": 44.2, "total_tokens": 161248}
6
+ {"current_steps": 60, "total_steps": 111, "loss": 0.218, "lr": 2.182455450632803e-05, "epoch": 1.6, "percentage": 54.05, "elapsed_time": "1:13:03", "remaining_time": "1:02:05", "throughput": 44.2, "total_tokens": 193728}
7
+ {"current_steps": 70, "total_steps": 111, "loss": 0.2257, "lr": 1.5025866217114592e-05, "epoch": 1.8666666666666667, "percentage": 63.06, "elapsed_time": "1:25:15", "remaining_time": "0:49:56", "throughput": 44.18, "total_tokens": 226048}
8
+ {"current_steps": 80, "total_steps": 111, "loss": 0.2099, "lr": 9.020826029175384e-06, "epoch": 2.1333333333333333, "percentage": 72.07, "elapsed_time": "1:37:32", "remaining_time": "0:37:47", "throughput": 44.19, "total_tokens": 258608}
9
+ {"current_steps": 90, "total_steps": 111, "loss": 0.1456, "lr": 4.2872587689039484e-06, "epoch": 2.4, "percentage": 81.08, "elapsed_time": "1:49:40", "remaining_time": "0:25:35", "throughput": 44.18, "total_tokens": 290720}
10
+ {"current_steps": 100, "total_steps": 111, "loss": 0.0777, "lr": 1.201817361771837e-06, "epoch": 2.6666666666666665, "percentage": 90.09, "elapsed_time": "2:02:04", "remaining_time": "0:13:25", "throughput": 44.18, "total_tokens": 323584}
11
+ {"current_steps": 110, "total_steps": 111, "loss": 0.0711, "lr": 1.0012322041960676e-08, "epoch": 2.9333333333333336, "percentage": 99.1, "elapsed_time": "2:14:06", "remaining_time": "0:01:13", "throughput": 44.18, "total_tokens": 355456}
12
+ {"current_steps": 111, "total_steps": 111, "epoch": 2.96, "percentage": 100.0, "elapsed_time": "2:15:19", "remaining_time": "0:00:00", "throughput": 44.17, "total_tokens": 358624}
trainer_state.json ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.96,
5
+ "eval_steps": 500,
6
+ "global_step": 111,
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.26666666666666666,
13
+ "grad_norm": 2.969418525695801,
14
+ "learning_rate": 4.9005367134442235e-05,
15
+ "loss": 0.4778,
16
+ "num_input_tokens_seen": 33232,
17
+ "step": 10
18
+ },
19
+ {
20
+ "epoch": 0.5333333333333333,
21
+ "grad_norm": 2.1690313816070557,
22
+ "learning_rate": 4.6100612100748765e-05,
23
+ "loss": 0.3431,
24
+ "num_input_tokens_seen": 65520,
25
+ "step": 20
26
+ },
27
+ {
28
+ "epoch": 0.8,
29
+ "grad_norm": 6.671631813049316,
30
+ "learning_rate": 4.151686808475204e-05,
31
+ "loss": 0.318,
32
+ "num_input_tokens_seen": 97472,
33
+ "step": 30
34
+ },
35
+ {
36
+ "epoch": 1.0666666666666667,
37
+ "grad_norm": 3.928008794784546,
38
+ "learning_rate": 3.56188664821012e-05,
39
+ "loss": 0.4028,
40
+ "num_input_tokens_seen": 128928,
41
+ "step": 40
42
+ },
43
+ {
44
+ "epoch": 1.3333333333333333,
45
+ "grad_norm": 11.873285293579102,
46
+ "learning_rate": 2.8875914991604948e-05,
47
+ "loss": 0.1864,
48
+ "num_input_tokens_seen": 161248,
49
+ "step": 50
50
+ },
51
+ {
52
+ "epoch": 1.6,
53
+ "grad_norm": 11.22799301147461,
54
+ "learning_rate": 2.182455450632803e-05,
55
+ "loss": 0.218,
56
+ "num_input_tokens_seen": 193728,
57
+ "step": 60
58
+ },
59
+ {
60
+ "epoch": 1.8666666666666667,
61
+ "grad_norm": 4.876537799835205,
62
+ "learning_rate": 1.5025866217114592e-05,
63
+ "loss": 0.2257,
64
+ "num_input_tokens_seen": 226048,
65
+ "step": 70
66
+ },
67
+ {
68
+ "epoch": 2.1333333333333333,
69
+ "grad_norm": 3.1793081760406494,
70
+ "learning_rate": 9.020826029175384e-06,
71
+ "loss": 0.2099,
72
+ "num_input_tokens_seen": 258608,
73
+ "step": 80
74
+ },
75
+ {
76
+ "epoch": 2.4,
77
+ "grad_norm": 4.5291218757629395,
78
+ "learning_rate": 4.2872587689039484e-06,
79
+ "loss": 0.1456,
80
+ "num_input_tokens_seen": 290720,
81
+ "step": 90
82
+ },
83
+ {
84
+ "epoch": 2.6666666666666665,
85
+ "grad_norm": 2.929227590560913,
86
+ "learning_rate": 1.201817361771837e-06,
87
+ "loss": 0.0777,
88
+ "num_input_tokens_seen": 323584,
89
+ "step": 100
90
+ },
91
+ {
92
+ "epoch": 2.9333333333333336,
93
+ "grad_norm": 2.021867036819458,
94
+ "learning_rate": 1.0012322041960676e-08,
95
+ "loss": 0.0711,
96
+ "num_input_tokens_seen": 355456,
97
+ "step": 110
98
+ },
99
+ {
100
+ "epoch": 2.96,
101
+ "num_input_tokens_seen": 358624,
102
+ "step": 111,
103
+ "total_flos": 1.5352214341287936e+16,
104
+ "train_loss": 0.24338918279957128,
105
+ "train_runtime": 8119.2255,
106
+ "train_samples_per_second": 0.111,
107
+ "train_steps_per_second": 0.014
108
+ }
109
+ ],
110
+ "logging_steps": 10,
111
+ "max_steps": 111,
112
+ "num_input_tokens_seen": 358624,
113
+ "num_train_epochs": 3,
114
+ "save_steps": 1000,
115
+ "stateful_callbacks": {
116
+ "TrainerControl": {
117
+ "args": {
118
+ "should_epoch_stop": false,
119
+ "should_evaluate": false,
120
+ "should_log": false,
121
+ "should_save": true,
122
+ "should_training_stop": true
123
+ },
124
+ "attributes": {}
125
+ }
126
+ },
127
+ "total_flos": 1.5352214341287936e+16,
128
+ "train_batch_size": 2,
129
+ "trial_name": null,
130
+ "trial_params": null
131
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f425e45c06d80fc466afd9d8416f7907a8fac0b6229ea210de400d287182e686
3
+ size 5368
training_args.yaml ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bf16: true
2
+ cutoff_len: 2048
3
+ dataset: treino_pt_rde
4
+ dataset_dir: data
5
+ ddp_timeout: 180000000
6
+ do_train: true
7
+ finetuning_type: lora
8
+ flash_attn: auto
9
+ gradient_accumulation_steps: 4
10
+ include_num_input_tokens_seen: true
11
+ learning_rate: 5.0e-05
12
+ logging_steps: 10
13
+ lora_alpha: 16
14
+ lora_dropout: 0
15
+ lora_rank: 8
16
+ lora_target: all
17
+ lr_scheduler_type: cosine
18
+ max_grad_norm: 1.0
19
+ max_samples: 300
20
+ model_name_or_path: mistralai/Mistral-7B-Instruct-v0.3
21
+ num_train_epochs: 3.0
22
+ optim: adamw_torch
23
+ output_dir: saves/Mistral-7B-Instruct-v0.3/lora/train_mistral
24
+ packing: false
25
+ per_device_train_batch_size: 2
26
+ plot_loss: true
27
+ preprocessing_num_workers: 16
28
+ quantization_bit: 4
29
+ quantization_method: bitsandbytes
30
+ report_to: none
31
+ save_steps: 1000
32
+ stage: sft
33
+ template: mistral
34
+ warmup_steps: 0
training_loss.png ADDED