aarontrinh02
commited on
Upload folder using huggingface_hub
Browse files- README.md +61 -0
- adapter_config.json +31 -0
- adapter_model.safetensors +3 -0
- all_results.json +8 -0
- checkpoint-16/README.md +202 -0
- checkpoint-16/adapter_config.json +31 -0
- checkpoint-16/adapter_model.safetensors +3 -0
- checkpoint-16/optimizer.pt +3 -0
- checkpoint-16/rng_state_0.pth +3 -0
- checkpoint-16/rng_state_1.pth +3 -0
- checkpoint-16/rng_state_2.pth +3 -0
- checkpoint-16/rng_state_3.pth +3 -0
- checkpoint-16/rng_state_4.pth +3 -0
- checkpoint-16/rng_state_5.pth +3 -0
- checkpoint-16/scheduler.pt +3 -0
- checkpoint-16/special_tokens_map.json +24 -0
- checkpoint-16/tokenizer.json +0 -0
- checkpoint-16/tokenizer.model +3 -0
- checkpoint-16/tokenizer_config.json +46 -0
- checkpoint-16/trainer_state.json +54 -0
- checkpoint-16/training_args.bin +3 -0
- llamaboard_config.yaml +72 -0
- running_log.txt +274 -0
- special_tokens_map.json +24 -0
- tokenizer.json +0 -0
- tokenizer.model +3 -0
- tokenizer_config.json +46 -0
- train_results.json +8 -0
- trainer_log.jsonl +4 -0
- trainer_state.json +63 -0
- training_args.bin +3 -0
- training_args.yaml +32 -0
- training_loss.png +0 -0
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
license: other
|
4 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
5 |
+
tags:
|
6 |
+
- llama-factory
|
7 |
+
- lora
|
8 |
+
- generated_from_trainer
|
9 |
+
model-index:
|
10 |
+
- name: train_2025-01-06-18-43-03
|
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_2025-01-06-18-43-03
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2) on the followir_recreate_simple_1 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: 3e-05
|
39 |
+
- train_batch_size: 4
|
40 |
+
- eval_batch_size: 8
|
41 |
+
- seed: 42
|
42 |
+
- distributed_type: multi-GPU
|
43 |
+
- num_devices: 6
|
44 |
+
- gradient_accumulation_steps: 32
|
45 |
+
- total_train_batch_size: 768
|
46 |
+
- total_eval_batch_size: 48
|
47 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
48 |
+
- lr_scheduler_type: cosine
|
49 |
+
- num_epochs: 8.0
|
50 |
+
|
51 |
+
### Training results
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
### Framework versions
|
56 |
+
|
57 |
+
- PEFT 0.12.0
|
58 |
+
- Transformers 4.46.1
|
59 |
+
- Pytorch 2.5.1+cu124
|
60 |
+
- Datasets 3.1.0
|
61 |
+
- Tokenizers 0.20.3
|
adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
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 |
+
"k_proj",
|
25 |
+
"v_proj",
|
26 |
+
"q_proj"
|
27 |
+
],
|
28 |
+
"task_type": "CAUSAL_LM",
|
29 |
+
"use_dora": false,
|
30 |
+
"use_rslora": false
|
31 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3452f38812359447e0d32e15efdb355466977d2cdbc193121c250a243179498
|
3 |
+
size 27297032
|
all_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 6.918918918918919,
|
3 |
+
"total_flos": 3.566531758742569e+17,
|
4 |
+
"train_loss": 3.64303145557642,
|
5 |
+
"train_runtime": 8658.9704,
|
6 |
+
"train_samples_per_second": 1.641,
|
7 |
+
"train_steps_per_second": 0.002
|
8 |
+
}
|
checkpoint-16/README.md
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mistralai/Mistral-7B-Instruct-v0.2
|
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-16/adapter_config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
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 |
+
"k_proj",
|
25 |
+
"v_proj",
|
26 |
+
"q_proj"
|
27 |
+
],
|
28 |
+
"task_type": "CAUSAL_LM",
|
29 |
+
"use_dora": false,
|
30 |
+
"use_rslora": false
|
31 |
+
}
|
checkpoint-16/adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c3452f38812359447e0d32e15efdb355466977d2cdbc193121c250a243179498
|
3 |
+
size 27297032
|
checkpoint-16/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:52853ecc782dd7e77e09e4aa79bbdac365278dc76553033c9661d9b808670d6d
|
3 |
+
size 54740730
|
checkpoint-16/rng_state_0.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1180467ff90400659d73c4b7b0c6b5065fc1d8edf701c0358a6884bf81f5f3dd
|
3 |
+
size 15472
|
checkpoint-16/rng_state_1.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5bb4e3a848fda1abd4517b949c19a948b12c07d0e87e669de837b8946091d94d
|
3 |
+
size 15472
|
checkpoint-16/rng_state_2.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c16fa81fbffb188e2d2e3338833393e1416669cd9a2238137e94d67347e69f83
|
3 |
+
size 15472
|
checkpoint-16/rng_state_3.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:95f6f5ca133b91c415db604ea507fb5157ec109d5382fa4dfccf1ba0229aa22a
|
3 |
+
size 15472
|
checkpoint-16/rng_state_4.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1a6fddb505b25b459a0094977038bdf573e2e88076ceb8d0e39d2ebb2afc99ca
|
3 |
+
size 15472
|
checkpoint-16/rng_state_5.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02ce92e6b41f41e5f8bba6d861a7558ece511e068ca3836a0b8f85e7925f33bf
|
3 |
+
size 15472
|
checkpoint-16/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:147983c66b34a4e8e431d3d2209eb0ab4e49a59aeab3ce686b3a1528349ca8bb
|
3 |
+
size 1064
|
checkpoint-16/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-16/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
checkpoint-16/tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
checkpoint-16/tokenizer_config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"additional_special_tokens": [],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"chat_template": "{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message['role'] == 'user' %}\n {%- if loop.first and system_message is defined %}\n {{- ' [INST] ' + system_message + '\\n\\n' + message['content'] + ' [/INST]' }}\n {%- else %}\n {{- ' [INST] ' + message['content'] + ' [/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- ' ' + message['content'] + eos_token}}\n {%- else %}\n {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}\n {%- endif %}\n{%- endfor %}\n",
|
34 |
+
"clean_up_tokenization_spaces": false,
|
35 |
+
"eos_token": "</s>",
|
36 |
+
"legacy": false,
|
37 |
+
"model_max_length": 1000000000000000019884624838656,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"padding_side": "right",
|
40 |
+
"sp_model_kwargs": {},
|
41 |
+
"spaces_between_special_tokens": false,
|
42 |
+
"split_special_tokens": false,
|
43 |
+
"tokenizer_class": "LlamaTokenizer",
|
44 |
+
"unk_token": "<unk>",
|
45 |
+
"use_default_system_prompt": false
|
46 |
+
}
|
checkpoint-16/trainer_state.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 6.918918918918919,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 16,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 2.1621621621621623,
|
13 |
+
"grad_norm": 66.02604675292969,
|
14 |
+
"learning_rate": 2.3333553495294033e-05,
|
15 |
+
"loss": 9.0853,
|
16 |
+
"step": 5
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 4.324324324324325,
|
20 |
+
"grad_norm": 22.67275619506836,
|
21 |
+
"learning_rate": 9.259748514523654e-06,
|
22 |
+
"loss": 2.016,
|
23 |
+
"step": 10
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 6.486486486486487,
|
27 |
+
"grad_norm": 9.565340995788574,
|
28 |
+
"learning_rate": 2.8822079395154357e-07,
|
29 |
+
"loss": 0.5055,
|
30 |
+
"step": 15
|
31 |
+
}
|
32 |
+
],
|
33 |
+
"logging_steps": 5,
|
34 |
+
"max_steps": 16,
|
35 |
+
"num_input_tokens_seen": 0,
|
36 |
+
"num_train_epochs": 8,
|
37 |
+
"save_steps": 100,
|
38 |
+
"stateful_callbacks": {
|
39 |
+
"TrainerControl": {
|
40 |
+
"args": {
|
41 |
+
"should_epoch_stop": false,
|
42 |
+
"should_evaluate": false,
|
43 |
+
"should_log": false,
|
44 |
+
"should_save": true,
|
45 |
+
"should_training_stop": true
|
46 |
+
},
|
47 |
+
"attributes": {}
|
48 |
+
}
|
49 |
+
},
|
50 |
+
"total_flos": 3.566531758742569e+17,
|
51 |
+
"train_batch_size": 4,
|
52 |
+
"trial_name": null,
|
53 |
+
"trial_params": null
|
54 |
+
}
|
checkpoint-16/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c8768f7b05bd5b5c3b878446fc395e0602be5cc33e44a070e937be401bdc364
|
3 |
+
size 5432
|
llamaboard_config.yaml
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
top.booster: auto
|
2 |
+
top.checkpoint_path: []
|
3 |
+
top.finetuning_type: lora
|
4 |
+
top.model_name: Mistral-7B-Instruct-v0.2
|
5 |
+
top.quantization_bit: none
|
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: 4
|
15 |
+
train.compute_type: bf16
|
16 |
+
train.create_new_adapter: false
|
17 |
+
train.cutoff_len: 2048
|
18 |
+
train.dataset:
|
19 |
+
- followir_recreate_simple_1
|
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: 32
|
32 |
+
train.learning_rate: 3e-5
|
33 |
+
train.logging_steps: 5
|
34 |
+
train.lora_alpha: 16
|
35 |
+
train.lora_dropout: 0
|
36 |
+
train.lora_rank: 8
|
37 |
+
train.lora_target: q_proj,v_proj,o_proj,k_proj
|
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: '100000'
|
43 |
+
train.neat_packing: false
|
44 |
+
train.neftune_alpha: 0
|
45 |
+
train.num_train_epochs: '8.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: 100
|
56 |
+
train.shift_attn: false
|
57 |
+
train.swanlab_api_key: ''
|
58 |
+
train.swanlab_mode: cloud
|
59 |
+
train.swanlab_project: llamafactory
|
60 |
+
train.swanlab_run_name: ''
|
61 |
+
train.swanlab_workspace: ''
|
62 |
+
train.train_on_prompt: false
|
63 |
+
train.training_stage: Supervised Fine-Tuning
|
64 |
+
train.use_badam: false
|
65 |
+
train.use_dora: false
|
66 |
+
train.use_galore: false
|
67 |
+
train.use_llama_pro: false
|
68 |
+
train.use_pissa: false
|
69 |
+
train.use_rslora: false
|
70 |
+
train.use_swanlab: false
|
71 |
+
train.val_size: 0
|
72 |
+
train.warmup_steps: 0
|
running_log.txt
ADDED
@@ -0,0 +1,274 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[WARNING|2025-01-06 18:44:37] logging.py:162 >> `ddp_find_unused_parameters` needs to be set as False for LoRA in DDP training.
|
2 |
+
|
3 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 0, device: cuda:0, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
4 |
+
|
5 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 1, device: cuda:1, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
6 |
+
|
7 |
+
[INFO|2025-01-06 18:44:37] configuration_utils.py:679 >> loading configuration file config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/config.json
|
8 |
+
|
9 |
+
[INFO|2025-01-06 18:44:37] configuration_utils.py:746 >> Model config MistralConfig {
|
10 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
11 |
+
"architectures": [
|
12 |
+
"MistralForCausalLM"
|
13 |
+
],
|
14 |
+
"attention_dropout": 0.0,
|
15 |
+
"bos_token_id": 1,
|
16 |
+
"eos_token_id": 2,
|
17 |
+
"head_dim": 128,
|
18 |
+
"hidden_act": "silu",
|
19 |
+
"hidden_size": 4096,
|
20 |
+
"initializer_range": 0.02,
|
21 |
+
"intermediate_size": 14336,
|
22 |
+
"max_position_embeddings": 32768,
|
23 |
+
"model_type": "mistral",
|
24 |
+
"num_attention_heads": 32,
|
25 |
+
"num_hidden_layers": 32,
|
26 |
+
"num_key_value_heads": 8,
|
27 |
+
"rms_norm_eps": 1e-05,
|
28 |
+
"rope_theta": 1000000.0,
|
29 |
+
"sliding_window": null,
|
30 |
+
"tie_word_embeddings": false,
|
31 |
+
"torch_dtype": "bfloat16",
|
32 |
+
"transformers_version": "4.46.1",
|
33 |
+
"use_cache": true,
|
34 |
+
"vocab_size": 32000
|
35 |
+
}
|
36 |
+
|
37 |
+
|
38 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer.model from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer.model
|
39 |
+
|
40 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 3, device: cuda:3, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
41 |
+
|
42 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 4, device: cuda:4, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
43 |
+
|
44 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 2, device: cuda:2, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
45 |
+
|
46 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer.json
|
47 |
+
|
48 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file added_tokens.json from cache at None
|
49 |
+
|
50 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file special_tokens_map.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/special_tokens_map.json
|
51 |
+
|
52 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer_config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer_config.json
|
53 |
+
|
54 |
+
[INFO|2025-01-06 18:44:37] parser.py:359 >> Process rank: 5, device: cuda:5, n_gpu: 1, distributed training: True, compute dtype: torch.bfloat16
|
55 |
+
|
56 |
+
[INFO|2025-01-06 18:44:37] configuration_utils.py:679 >> loading configuration file config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/config.json
|
57 |
+
|
58 |
+
[INFO|2025-01-06 18:44:37] configuration_utils.py:746 >> Model config MistralConfig {
|
59 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
60 |
+
"architectures": [
|
61 |
+
"MistralForCausalLM"
|
62 |
+
],
|
63 |
+
"attention_dropout": 0.0,
|
64 |
+
"bos_token_id": 1,
|
65 |
+
"eos_token_id": 2,
|
66 |
+
"head_dim": 128,
|
67 |
+
"hidden_act": "silu",
|
68 |
+
"hidden_size": 4096,
|
69 |
+
"initializer_range": 0.02,
|
70 |
+
"intermediate_size": 14336,
|
71 |
+
"max_position_embeddings": 32768,
|
72 |
+
"model_type": "mistral",
|
73 |
+
"num_attention_heads": 32,
|
74 |
+
"num_hidden_layers": 32,
|
75 |
+
"num_key_value_heads": 8,
|
76 |
+
"rms_norm_eps": 1e-05,
|
77 |
+
"rope_theta": 1000000.0,
|
78 |
+
"sliding_window": null,
|
79 |
+
"tie_word_embeddings": false,
|
80 |
+
"torch_dtype": "bfloat16",
|
81 |
+
"transformers_version": "4.46.1",
|
82 |
+
"use_cache": true,
|
83 |
+
"vocab_size": 32000
|
84 |
+
}
|
85 |
+
|
86 |
+
|
87 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer.model from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer.model
|
88 |
+
|
89 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer.json
|
90 |
+
|
91 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file added_tokens.json from cache at None
|
92 |
+
|
93 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file special_tokens_map.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/special_tokens_map.json
|
94 |
+
|
95 |
+
[INFO|2025-01-06 18:44:37] tokenization_utils_base.py:2211 >> loading file tokenizer_config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/tokenizer_config.json
|
96 |
+
|
97 |
+
[INFO|2025-01-06 18:44:37] logging.py:157 >> Add pad token: </s>
|
98 |
+
|
99 |
+
[INFO|2025-01-06 18:44:37] logging.py:157 >> Loading dataset followir_recreate_simple_1.json...
|
100 |
+
|
101 |
+
[INFO|2025-01-06 18:44:39] configuration_utils.py:679 >> loading configuration file config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/config.json
|
102 |
+
|
103 |
+
[INFO|2025-01-06 18:44:39] configuration_utils.py:746 >> Model config MistralConfig {
|
104 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.2",
|
105 |
+
"architectures": [
|
106 |
+
"MistralForCausalLM"
|
107 |
+
],
|
108 |
+
"attention_dropout": 0.0,
|
109 |
+
"bos_token_id": 1,
|
110 |
+
"eos_token_id": 2,
|
111 |
+
"head_dim": 128,
|
112 |
+
"hidden_act": "silu",
|
113 |
+
"hidden_size": 4096,
|
114 |
+
"initializer_range": 0.02,
|
115 |
+
"intermediate_size": 14336,
|
116 |
+
"max_position_embeddings": 32768,
|
117 |
+
"model_type": "mistral",
|
118 |
+
"num_attention_heads": 32,
|
119 |
+
"num_hidden_layers": 32,
|
120 |
+
"num_key_value_heads": 8,
|
121 |
+
"rms_norm_eps": 1e-05,
|
122 |
+
"rope_theta": 1000000.0,
|
123 |
+
"sliding_window": null,
|
124 |
+
"tie_word_embeddings": false,
|
125 |
+
"torch_dtype": "bfloat16",
|
126 |
+
"transformers_version": "4.46.1",
|
127 |
+
"use_cache": true,
|
128 |
+
"vocab_size": 32000
|
129 |
+
}
|
130 |
+
|
131 |
+
|
132 |
+
[INFO|2025-01-06 18:44:39] modeling_utils.py:3937 >> loading weights file model.safetensors from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/model.safetensors.index.json
|
133 |
+
|
134 |
+
[INFO|2025-01-06 18:44:39] modeling_utils.py:1670 >> Instantiating MistralForCausalLM model under default dtype torch.bfloat16.
|
135 |
+
|
136 |
+
[INFO|2025-01-06 18:44:39] configuration_utils.py:1096 >> Generate config GenerationConfig {
|
137 |
+
"bos_token_id": 1,
|
138 |
+
"eos_token_id": 2
|
139 |
+
}
|
140 |
+
|
141 |
+
|
142 |
+
[INFO|2025-01-06 18:44:45] modeling_utils.py:4800 >> All model checkpoint weights were used when initializing MistralForCausalLM.
|
143 |
+
|
144 |
+
|
145 |
+
[INFO|2025-01-06 18:44:45] modeling_utils.py:4808 >> All the weights of MistralForCausalLM were initialized from the model checkpoint at mistralai/Mistral-7B-Instruct-v0.2.
|
146 |
+
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.
|
147 |
+
|
148 |
+
[INFO|2025-01-06 18:44:45] configuration_utils.py:1051 >> loading configuration file generation_config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/generation_config.json
|
149 |
+
|
150 |
+
[INFO|2025-01-06 18:44:45] configuration_utils.py:1096 >> Generate config GenerationConfig {
|
151 |
+
"bos_token_id": 1,
|
152 |
+
"eos_token_id": 2
|
153 |
+
}
|
154 |
+
|
155 |
+
|
156 |
+
[INFO|2025-01-06 18:44:45] logging.py:157 >> Gradient checkpointing enabled.
|
157 |
+
|
158 |
+
[INFO|2025-01-06 18:44:45] logging.py:157 >> Using torch SDPA for faster training and inference.
|
159 |
+
|
160 |
+
[INFO|2025-01-06 18:44:45] logging.py:157 >> Upcasting trainable params to float32.
|
161 |
+
|
162 |
+
[INFO|2025-01-06 18:44:45] logging.py:157 >> Fine-tuning method: LoRA
|
163 |
+
|
164 |
+
[INFO|2025-01-06 18:44:45] logging.py:157 >> trainable params: 6,815,744 || all params: 7,248,547,840 || trainable%: 0.0940
|
165 |
+
|
166 |
+
[INFO|2025-01-06 18:44:45] trainer.py:698 >> Using auto half precision backend
|
167 |
+
|
168 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2313 >> ***** Running training *****
|
169 |
+
|
170 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2314 >> Num examples = 1,776
|
171 |
+
|
172 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2315 >> Num Epochs = 8
|
173 |
+
|
174 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2316 >> Instantaneous batch size per device = 4
|
175 |
+
|
176 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2319 >> Total train batch size (w. parallel, distributed & accumulation) = 768
|
177 |
+
|
178 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2320 >> Gradient Accumulation steps = 32
|
179 |
+
|
180 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2321 >> Total optimization steps = 16
|
181 |
+
|
182 |
+
[INFO|2025-01-06 18:44:47] trainer.py:2322 >> Number of trainable parameters = 6,815,744
|
183 |
+
|
184 |
+
[INFO|2025-01-06 19:29:53] logging.py:157 >> {'loss': 9.0853, 'learning_rate': 2.3334e-05, 'epoch': 2.16}
|
185 |
+
|
186 |
+
[INFO|2025-01-06 20:14:35] logging.py:157 >> {'loss': 2.0160, 'learning_rate': 9.2597e-06, 'epoch': 4.32}
|
187 |
+
|
188 |
+
[INFO|2025-01-06 20:59:53] logging.py:157 >> {'loss': 0.5055, 'learning_rate': 2.8822e-07, 'epoch': 6.49}
|
189 |
+
|
190 |
+
[INFO|2025-01-06 21:09:05] trainer.py:3801 >> Saving model checkpoint to saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03/checkpoint-16
|
191 |
+
|
192 |
+
[INFO|2025-01-06 21:09:05] configuration_utils.py:679 >> loading configuration file config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/config.json
|
193 |
+
|
194 |
+
[INFO|2025-01-06 21:09:05] configuration_utils.py:746 >> Model config MistralConfig {
|
195 |
+
"architectures": [
|
196 |
+
"MistralForCausalLM"
|
197 |
+
],
|
198 |
+
"attention_dropout": 0.0,
|
199 |
+
"bos_token_id": 1,
|
200 |
+
"eos_token_id": 2,
|
201 |
+
"head_dim": 128,
|
202 |
+
"hidden_act": "silu",
|
203 |
+
"hidden_size": 4096,
|
204 |
+
"initializer_range": 0.02,
|
205 |
+
"intermediate_size": 14336,
|
206 |
+
"max_position_embeddings": 32768,
|
207 |
+
"model_type": "mistral",
|
208 |
+
"num_attention_heads": 32,
|
209 |
+
"num_hidden_layers": 32,
|
210 |
+
"num_key_value_heads": 8,
|
211 |
+
"rms_norm_eps": 1e-05,
|
212 |
+
"rope_theta": 1000000.0,
|
213 |
+
"sliding_window": null,
|
214 |
+
"tie_word_embeddings": false,
|
215 |
+
"torch_dtype": "bfloat16",
|
216 |
+
"transformers_version": "4.46.1",
|
217 |
+
"use_cache": true,
|
218 |
+
"vocab_size": 32000
|
219 |
+
}
|
220 |
+
|
221 |
+
|
222 |
+
[INFO|2025-01-06 21:09:05] tokenization_utils_base.py:2646 >> tokenizer config file saved in saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03/checkpoint-16/tokenizer_config.json
|
223 |
+
|
224 |
+
[INFO|2025-01-06 21:09:05] tokenization_utils_base.py:2655 >> Special tokens file saved in saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03/checkpoint-16/special_tokens_map.json
|
225 |
+
|
226 |
+
[INFO|2025-01-06 21:09:06] trainer.py:2584 >>
|
227 |
+
|
228 |
+
Training completed. Do not forget to share your model on huggingface.co/models =)
|
229 |
+
|
230 |
+
|
231 |
+
|
232 |
+
[INFO|2025-01-06 21:09:06] trainer.py:3801 >> Saving model checkpoint to saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03
|
233 |
+
|
234 |
+
[INFO|2025-01-06 21:09:06] configuration_utils.py:679 >> loading configuration file config.json from cache at /nethome/atrinh31/.cache/huggingface/hub/models--mistralai--Mistral-7B-Instruct-v0.2/snapshots/3ad372fc79158a2148299e3318516c786aeded6c/config.json
|
235 |
+
|
236 |
+
[INFO|2025-01-06 21:09:06] configuration_utils.py:746 >> Model config MistralConfig {
|
237 |
+
"architectures": [
|
238 |
+
"MistralForCausalLM"
|
239 |
+
],
|
240 |
+
"attention_dropout": 0.0,
|
241 |
+
"bos_token_id": 1,
|
242 |
+
"eos_token_id": 2,
|
243 |
+
"head_dim": 128,
|
244 |
+
"hidden_act": "silu",
|
245 |
+
"hidden_size": 4096,
|
246 |
+
"initializer_range": 0.02,
|
247 |
+
"intermediate_size": 14336,
|
248 |
+
"max_position_embeddings": 32768,
|
249 |
+
"model_type": "mistral",
|
250 |
+
"num_attention_heads": 32,
|
251 |
+
"num_hidden_layers": 32,
|
252 |
+
"num_key_value_heads": 8,
|
253 |
+
"rms_norm_eps": 1e-05,
|
254 |
+
"rope_theta": 1000000.0,
|
255 |
+
"sliding_window": null,
|
256 |
+
"tie_word_embeddings": false,
|
257 |
+
"torch_dtype": "bfloat16",
|
258 |
+
"transformers_version": "4.46.1",
|
259 |
+
"use_cache": true,
|
260 |
+
"vocab_size": 32000
|
261 |
+
}
|
262 |
+
|
263 |
+
|
264 |
+
[INFO|2025-01-06 21:09:06] tokenization_utils_base.py:2646 >> tokenizer config file saved in saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03/tokenizer_config.json
|
265 |
+
|
266 |
+
[INFO|2025-01-06 21:09:06] tokenization_utils_base.py:2655 >> Special tokens file saved in saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03/special_tokens_map.json
|
267 |
+
|
268 |
+
[WARNING|2025-01-06 21:09:06] logging.py:162 >> No metric eval_loss to plot.
|
269 |
+
|
270 |
+
[WARNING|2025-01-06 21:09:06] logging.py:162 >> No metric eval_accuracy to plot.
|
271 |
+
|
272 |
+
[INFO|2025-01-06 21:09:06] modelcard.py:449 >> Dropping the following result as it does not have all the necessary fields:
|
273 |
+
{'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
|
274 |
+
|
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:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
|
3 |
+
size 493443
|
tokenizer_config.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"add_prefix_space": null,
|
5 |
+
"added_tokens_decoder": {
|
6 |
+
"0": {
|
7 |
+
"content": "<unk>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false,
|
12 |
+
"special": true
|
13 |
+
},
|
14 |
+
"1": {
|
15 |
+
"content": "<s>",
|
16 |
+
"lstrip": false,
|
17 |
+
"normalized": false,
|
18 |
+
"rstrip": false,
|
19 |
+
"single_word": false,
|
20 |
+
"special": true
|
21 |
+
},
|
22 |
+
"2": {
|
23 |
+
"content": "</s>",
|
24 |
+
"lstrip": false,
|
25 |
+
"normalized": false,
|
26 |
+
"rstrip": false,
|
27 |
+
"single_word": false,
|
28 |
+
"special": true
|
29 |
+
}
|
30 |
+
},
|
31 |
+
"additional_special_tokens": [],
|
32 |
+
"bos_token": "<s>",
|
33 |
+
"chat_template": "{%- if messages[0]['role'] == 'system' %}\n {%- set system_message = messages[0]['content'] %}\n {%- set loop_messages = messages[1:] %}\n{%- else %}\n {%- set loop_messages = messages %}\n{%- endif %}\n\n{{- bos_token }}\n{%- for message in loop_messages %}\n {%- if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}\n {{- raise_exception('After the optional system message, conversation roles must alternate user/assistant/user/assistant/...') }}\n {%- endif %}\n {%- if message['role'] == 'user' %}\n {%- if loop.first and system_message is defined %}\n {{- ' [INST] ' + system_message + '\\n\\n' + message['content'] + ' [/INST]' }}\n {%- else %}\n {{- ' [INST] ' + message['content'] + ' [/INST]' }}\n {%- endif %}\n {%- elif message['role'] == 'assistant' %}\n {{- ' ' + message['content'] + eos_token}}\n {%- else %}\n {{- raise_exception('Only user and assistant roles are supported, with the exception of an initial optional system message!') }}\n {%- endif %}\n{%- endfor %}\n",
|
34 |
+
"clean_up_tokenization_spaces": false,
|
35 |
+
"eos_token": "</s>",
|
36 |
+
"legacy": false,
|
37 |
+
"model_max_length": 1000000000000000019884624838656,
|
38 |
+
"pad_token": "</s>",
|
39 |
+
"padding_side": "right",
|
40 |
+
"sp_model_kwargs": {},
|
41 |
+
"spaces_between_special_tokens": false,
|
42 |
+
"split_special_tokens": false,
|
43 |
+
"tokenizer_class": "LlamaTokenizer",
|
44 |
+
"unk_token": "<unk>",
|
45 |
+
"use_default_system_prompt": false
|
46 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 6.918918918918919,
|
3 |
+
"total_flos": 3.566531758742569e+17,
|
4 |
+
"train_loss": 3.64303145557642,
|
5 |
+
"train_runtime": 8658.9704,
|
6 |
+
"train_samples_per_second": 1.641,
|
7 |
+
"train_steps_per_second": 0.002
|
8 |
+
}
|
trainer_log.jsonl
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"current_steps": 5, "total_steps": 16, "loss": 9.0853, "lr": 2.3333553495294033e-05, "epoch": 2.1621621621621623, "percentage": 31.25, "elapsed_time": "0:45:05", "remaining_time": "1:39:13"}
|
2 |
+
{"current_steps": 10, "total_steps": 16, "loss": 2.016, "lr": 9.259748514523654e-06, "epoch": 4.324324324324325, "percentage": 62.5, "elapsed_time": "1:29:47", "remaining_time": "0:53:52"}
|
3 |
+
{"current_steps": 15, "total_steps": 16, "loss": 0.5055, "lr": 2.8822079395154357e-07, "epoch": 6.486486486486487, "percentage": 93.75, "elapsed_time": "2:15:06", "remaining_time": "0:09:00"}
|
4 |
+
{"current_steps": 16, "total_steps": 16, "epoch": 6.918918918918919, "percentage": 100.0, "elapsed_time": "2:24:18", "remaining_time": "0:00:00"}
|
trainer_state.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 6.918918918918919,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 16,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 2.1621621621621623,
|
13 |
+
"grad_norm": 66.02604675292969,
|
14 |
+
"learning_rate": 2.3333553495294033e-05,
|
15 |
+
"loss": 9.0853,
|
16 |
+
"step": 5
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 4.324324324324325,
|
20 |
+
"grad_norm": 22.67275619506836,
|
21 |
+
"learning_rate": 9.259748514523654e-06,
|
22 |
+
"loss": 2.016,
|
23 |
+
"step": 10
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 6.486486486486487,
|
27 |
+
"grad_norm": 9.565340995788574,
|
28 |
+
"learning_rate": 2.8822079395154357e-07,
|
29 |
+
"loss": 0.5055,
|
30 |
+
"step": 15
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 6.918918918918919,
|
34 |
+
"step": 16,
|
35 |
+
"total_flos": 3.566531758742569e+17,
|
36 |
+
"train_loss": 3.64303145557642,
|
37 |
+
"train_runtime": 8658.9704,
|
38 |
+
"train_samples_per_second": 1.641,
|
39 |
+
"train_steps_per_second": 0.002
|
40 |
+
}
|
41 |
+
],
|
42 |
+
"logging_steps": 5,
|
43 |
+
"max_steps": 16,
|
44 |
+
"num_input_tokens_seen": 0,
|
45 |
+
"num_train_epochs": 8,
|
46 |
+
"save_steps": 100,
|
47 |
+
"stateful_callbacks": {
|
48 |
+
"TrainerControl": {
|
49 |
+
"args": {
|
50 |
+
"should_epoch_stop": false,
|
51 |
+
"should_evaluate": false,
|
52 |
+
"should_log": false,
|
53 |
+
"should_save": true,
|
54 |
+
"should_training_stop": true
|
55 |
+
},
|
56 |
+
"attributes": {}
|
57 |
+
}
|
58 |
+
},
|
59 |
+
"total_flos": 3.566531758742569e+17,
|
60 |
+
"train_batch_size": 4,
|
61 |
+
"trial_name": null,
|
62 |
+
"trial_params": null
|
63 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3c8768f7b05bd5b5c3b878446fc395e0602be5cc33e44a070e937be401bdc364
|
3 |
+
size 5432
|
training_args.yaml
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
bf16: true
|
2 |
+
cutoff_len: 2048
|
3 |
+
dataset: followir_recreate_simple_1
|
4 |
+
dataset_dir: data
|
5 |
+
ddp_timeout: 180000000
|
6 |
+
do_train: true
|
7 |
+
finetuning_type: lora
|
8 |
+
flash_attn: auto
|
9 |
+
gradient_accumulation_steps: 32
|
10 |
+
learning_rate: 3.0e-05
|
11 |
+
logging_steps: 5
|
12 |
+
lora_alpha: 16
|
13 |
+
lora_dropout: 0
|
14 |
+
lora_rank: 8
|
15 |
+
lora_target: q_proj,v_proj,o_proj,k_proj
|
16 |
+
lr_scheduler_type: cosine
|
17 |
+
max_grad_norm: 1.0
|
18 |
+
max_samples: 100000
|
19 |
+
model_name_or_path: mistralai/Mistral-7B-Instruct-v0.2
|
20 |
+
num_train_epochs: 8.0
|
21 |
+
optim: adamw_torch
|
22 |
+
output_dir: saves/Mistral-7B-Instruct-v0.2/lora/train_2025-01-06-18-43-03
|
23 |
+
packing: false
|
24 |
+
per_device_train_batch_size: 4
|
25 |
+
plot_loss: true
|
26 |
+
preprocessing_num_workers: 16
|
27 |
+
report_to: none
|
28 |
+
save_steps: 100
|
29 |
+
stage: sft
|
30 |
+
template: mistral
|
31 |
+
trust_remote_code: true
|
32 |
+
warmup_steps: 0
|
training_loss.png
ADDED