mjmanashti
commited on
Commit
•
49ad511
1
Parent(s):
befbd4e
Upload folder using huggingface_hub
Browse files- .gitattributes +2 -0
- README.md +40 -0
- adapter_config.json +33 -0
- adapter_model.safetensors +3 -0
- checkpoint-204/README.md +202 -0
- checkpoint-204/adapter_config.json +33 -0
- checkpoint-204/adapter_model.safetensors +3 -0
- checkpoint-204/optimizer.pt +3 -0
- checkpoint-204/pytorch_model.bin +3 -0
- checkpoint-204/rng_state.pth +3 -0
- checkpoint-204/scheduler.pt +3 -0
- checkpoint-204/special_tokens_map.json +34 -0
- checkpoint-204/tokenizer.json +3 -0
- checkpoint-204/tokenizer.model +3 -0
- checkpoint-204/tokenizer_config.json +70 -0
- checkpoint-204/trainer_state.json +735 -0
- checkpoint-204/training_args.bin +3 -0
- handler.py +32 -0
- requirements.txt +2 -0
- runs/Mar20_21-51-31_r-mjmanashti-fine-tuning-models-z9zxggp6-28099-uqwsz/events.out.tfevents.1710971493.r-mjmanashti-fine-tuning-models-z9zxggp6-28099-uqwsz.54.0 +2 -2
- special_tokens_map.json +34 -0
- tokenizer.json +3 -0
- tokenizer.model +3 -0
- tokenizer_config.json +70 -0
- training_args.bin +3 -0
- training_params.json +47 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
checkpoint-204/tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
37 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- autotrain
|
4 |
+
- text-generation
|
5 |
+
widget:
|
6 |
+
- text: "I love AutoTrain because "
|
7 |
+
license: other
|
8 |
+
---
|
9 |
+
|
10 |
+
# Model Trained Using AutoTrain
|
11 |
+
|
12 |
+
This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
|
13 |
+
|
14 |
+
# Usage
|
15 |
+
|
16 |
+
```python
|
17 |
+
|
18 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
19 |
+
|
20 |
+
model_path = "PATH_TO_THIS_REPO"
|
21 |
+
|
22 |
+
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
23 |
+
model = AutoModelForCausalLM.from_pretrained(
|
24 |
+
model_path,
|
25 |
+
device_map="auto",
|
26 |
+
torch_dtype='auto'
|
27 |
+
).eval()
|
28 |
+
|
29 |
+
# Prompt content: "hi"
|
30 |
+
messages = [
|
31 |
+
{"role": "user", "content": "hi"}
|
32 |
+
]
|
33 |
+
|
34 |
+
input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
|
35 |
+
output_ids = model.generate(input_ids.to('cuda'))
|
36 |
+
response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
|
37 |
+
|
38 |
+
# Model response: "Hello! How can I assist you today?"
|
39 |
+
print(response)
|
40 |
+
```
|
adapter_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google/gemma-2b-it",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 32,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 16,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"o_proj",
|
23 |
+
"v_proj",
|
24 |
+
"up_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"k_proj",
|
27 |
+
"q_proj",
|
28 |
+
"down_proj"
|
29 |
+
],
|
30 |
+
"task_type": "CAUSAL_LM",
|
31 |
+
"use_dora": false,
|
32 |
+
"use_rslora": false
|
33 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e9fa71e39dbd2326f8614effad2ef4f6709472d5276904dceeed757fd65b366
|
3 |
+
size 78480072
|
checkpoint-204/README.md
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: peft
|
3 |
+
base_model: google/gemma-2b-it
|
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.9.0
|
checkpoint-204/adapter_config.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "google/gemma-2b-it",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layers_pattern": null,
|
10 |
+
"layers_to_transform": null,
|
11 |
+
"loftq_config": {},
|
12 |
+
"lora_alpha": 32,
|
13 |
+
"lora_dropout": 0.05,
|
14 |
+
"megatron_config": null,
|
15 |
+
"megatron_core": "megatron.core",
|
16 |
+
"modules_to_save": null,
|
17 |
+
"peft_type": "LORA",
|
18 |
+
"r": 16,
|
19 |
+
"rank_pattern": {},
|
20 |
+
"revision": null,
|
21 |
+
"target_modules": [
|
22 |
+
"o_proj",
|
23 |
+
"v_proj",
|
24 |
+
"up_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"k_proj",
|
27 |
+
"q_proj",
|
28 |
+
"down_proj"
|
29 |
+
],
|
30 |
+
"task_type": "CAUSAL_LM",
|
31 |
+
"use_dora": false,
|
32 |
+
"use_rslora": false
|
33 |
+
}
|
checkpoint-204/adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7e9fa71e39dbd2326f8614effad2ef4f6709472d5276904dceeed757fd65b366
|
3 |
+
size 78480072
|
checkpoint-204/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64978afba9bcf378d7b62f2269e614ee6fc357a8e7ec9aa0fc88c5f8f22f05d8
|
3 |
+
size 157104826
|
checkpoint-204/pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:049c26b844b79121ddd8379f7f69194e63f6fbf6aa007eeac0c66f17eebb8893
|
3 |
+
size 888
|
checkpoint-204/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9578f66dec159cafd72f71d5014289b4c3d8bfc20011c2c6da34e199dbf5ae2e
|
3 |
+
size 14244
|
checkpoint-204/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bff6be810637e6e4d65b7e39f3beb2f888d1079c25156eef09d7d3c242c50f42
|
3 |
+
size 1064
|
checkpoint-204/special_tokens_map.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<start_of_turn>",
|
4 |
+
"<end_of_turn>"
|
5 |
+
],
|
6 |
+
"bos_token": {
|
7 |
+
"content": "<bos>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"eos_token": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"pad_token": {
|
21 |
+
"content": "<pad>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"unk_token": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
}
|
34 |
+
}
|
checkpoint-204/tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05e97791a5e007260de1db7e1692e53150e08cea481e2bf25435553380c147ee
|
3 |
+
size 17477929
|
checkpoint-204/tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
|
3 |
+
size 4241003
|
checkpoint-204/tokenizer_config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<pad>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "<bos>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"3": {
|
30 |
+
"content": "<unk>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"106": {
|
38 |
+
"content": "<start_of_turn>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"107": {
|
46 |
+
"content": "<end_of_turn>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"additional_special_tokens": [
|
55 |
+
"<start_of_turn>",
|
56 |
+
"<end_of_turn>"
|
57 |
+
],
|
58 |
+
"bos_token": "<bos>",
|
59 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
60 |
+
"clean_up_tokenization_spaces": false,
|
61 |
+
"eos_token": "<eos>",
|
62 |
+
"legacy": null,
|
63 |
+
"model_max_length": 2048,
|
64 |
+
"pad_token": "<pad>",
|
65 |
+
"sp_model_kwargs": {},
|
66 |
+
"spaces_between_special_tokens": false,
|
67 |
+
"tokenizer_class": "GemmaTokenizer",
|
68 |
+
"unk_token": "<unk>",
|
69 |
+
"use_default_system_prompt": false
|
70 |
+
}
|
checkpoint-204/trainer_state.json
ADDED
@@ -0,0 +1,735 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 3.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 204,
|
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.03,
|
13 |
+
"grad_norm": 6.950901508331299,
|
14 |
+
"learning_rate": 1.4285714285714286e-06,
|
15 |
+
"loss": 1.8735,
|
16 |
+
"step": 2
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.06,
|
20 |
+
"grad_norm": 8.133766174316406,
|
21 |
+
"learning_rate": 4.2857142857142855e-06,
|
22 |
+
"loss": 2.126,
|
23 |
+
"step": 4
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.09,
|
27 |
+
"grad_norm": 6.692324161529541,
|
28 |
+
"learning_rate": 7.142857142857143e-06,
|
29 |
+
"loss": 1.926,
|
30 |
+
"step": 6
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.12,
|
34 |
+
"grad_norm": 6.0254693031311035,
|
35 |
+
"learning_rate": 9.999999999999999e-06,
|
36 |
+
"loss": 1.9762,
|
37 |
+
"step": 8
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.15,
|
41 |
+
"grad_norm": 5.805467128753662,
|
42 |
+
"learning_rate": 1.2857142857142857e-05,
|
43 |
+
"loss": 1.7727,
|
44 |
+
"step": 10
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.18,
|
48 |
+
"grad_norm": 6.195497989654541,
|
49 |
+
"learning_rate": 1.5714285714285715e-05,
|
50 |
+
"loss": 1.6793,
|
51 |
+
"step": 12
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.21,
|
55 |
+
"grad_norm": 4.377630710601807,
|
56 |
+
"learning_rate": 1.8571428571428572e-05,
|
57 |
+
"loss": 1.629,
|
58 |
+
"step": 14
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.24,
|
62 |
+
"grad_norm": 3.5771281719207764,
|
63 |
+
"learning_rate": 2.1428571428571428e-05,
|
64 |
+
"loss": 1.4296,
|
65 |
+
"step": 16
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 0.26,
|
69 |
+
"grad_norm": 2.8232216835021973,
|
70 |
+
"learning_rate": 2.4285714285714288e-05,
|
71 |
+
"loss": 1.4971,
|
72 |
+
"step": 18
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"epoch": 0.29,
|
76 |
+
"grad_norm": 2.096635341644287,
|
77 |
+
"learning_rate": 2.7142857142857144e-05,
|
78 |
+
"loss": 1.2129,
|
79 |
+
"step": 20
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"epoch": 0.32,
|
83 |
+
"grad_norm": 1.4359596967697144,
|
84 |
+
"learning_rate": 3e-05,
|
85 |
+
"loss": 1.0623,
|
86 |
+
"step": 22
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 0.35,
|
90 |
+
"grad_norm": 1.3408057689666748,
|
91 |
+
"learning_rate": 2.9672131147540984e-05,
|
92 |
+
"loss": 1.1274,
|
93 |
+
"step": 24
|
94 |
+
},
|
95 |
+
{
|
96 |
+
"epoch": 0.38,
|
97 |
+
"grad_norm": 1.5449613332748413,
|
98 |
+
"learning_rate": 2.9344262295081968e-05,
|
99 |
+
"loss": 1.0534,
|
100 |
+
"step": 26
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"epoch": 0.41,
|
104 |
+
"grad_norm": 1.266711950302124,
|
105 |
+
"learning_rate": 2.901639344262295e-05,
|
106 |
+
"loss": 1.0022,
|
107 |
+
"step": 28
|
108 |
+
},
|
109 |
+
{
|
110 |
+
"epoch": 0.44,
|
111 |
+
"grad_norm": 1.2879749536514282,
|
112 |
+
"learning_rate": 2.8688524590163935e-05,
|
113 |
+
"loss": 0.8819,
|
114 |
+
"step": 30
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"epoch": 0.47,
|
118 |
+
"grad_norm": 1.1592856645584106,
|
119 |
+
"learning_rate": 2.836065573770492e-05,
|
120 |
+
"loss": 0.9526,
|
121 |
+
"step": 32
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"epoch": 0.5,
|
125 |
+
"grad_norm": 1.3098297119140625,
|
126 |
+
"learning_rate": 2.8032786885245902e-05,
|
127 |
+
"loss": 0.8577,
|
128 |
+
"step": 34
|
129 |
+
},
|
130 |
+
{
|
131 |
+
"epoch": 0.53,
|
132 |
+
"grad_norm": 1.294083833694458,
|
133 |
+
"learning_rate": 2.7704918032786886e-05,
|
134 |
+
"loss": 0.8352,
|
135 |
+
"step": 36
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"epoch": 0.56,
|
139 |
+
"grad_norm": 1.0912269353866577,
|
140 |
+
"learning_rate": 2.737704918032787e-05,
|
141 |
+
"loss": 0.7198,
|
142 |
+
"step": 38
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"epoch": 0.59,
|
146 |
+
"grad_norm": 1.0710548162460327,
|
147 |
+
"learning_rate": 2.7049180327868853e-05,
|
148 |
+
"loss": 0.7445,
|
149 |
+
"step": 40
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 0.62,
|
153 |
+
"grad_norm": 1.0573712587356567,
|
154 |
+
"learning_rate": 2.6721311475409837e-05,
|
155 |
+
"loss": 0.6865,
|
156 |
+
"step": 42
|
157 |
+
},
|
158 |
+
{
|
159 |
+
"epoch": 0.65,
|
160 |
+
"grad_norm": 1.0720133781433105,
|
161 |
+
"learning_rate": 2.639344262295082e-05,
|
162 |
+
"loss": 0.6729,
|
163 |
+
"step": 44
|
164 |
+
},
|
165 |
+
{
|
166 |
+
"epoch": 0.68,
|
167 |
+
"grad_norm": 1.1398358345031738,
|
168 |
+
"learning_rate": 2.6065573770491804e-05,
|
169 |
+
"loss": 0.6805,
|
170 |
+
"step": 46
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 0.71,
|
174 |
+
"grad_norm": 1.3724112510681152,
|
175 |
+
"learning_rate": 2.5737704918032787e-05,
|
176 |
+
"loss": 0.6923,
|
177 |
+
"step": 48
|
178 |
+
},
|
179 |
+
{
|
180 |
+
"epoch": 0.74,
|
181 |
+
"grad_norm": 1.1828075647354126,
|
182 |
+
"learning_rate": 2.5409836065573774e-05,
|
183 |
+
"loss": 0.6927,
|
184 |
+
"step": 50
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"epoch": 0.76,
|
188 |
+
"grad_norm": 0.9459984302520752,
|
189 |
+
"learning_rate": 2.5081967213114754e-05,
|
190 |
+
"loss": 0.6539,
|
191 |
+
"step": 52
|
192 |
+
},
|
193 |
+
{
|
194 |
+
"epoch": 0.79,
|
195 |
+
"grad_norm": 1.0317862033843994,
|
196 |
+
"learning_rate": 2.4754098360655738e-05,
|
197 |
+
"loss": 0.6816,
|
198 |
+
"step": 54
|
199 |
+
},
|
200 |
+
{
|
201 |
+
"epoch": 0.82,
|
202 |
+
"grad_norm": 0.9241882562637329,
|
203 |
+
"learning_rate": 2.442622950819672e-05,
|
204 |
+
"loss": 0.6342,
|
205 |
+
"step": 56
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"epoch": 0.85,
|
209 |
+
"grad_norm": 1.2747896909713745,
|
210 |
+
"learning_rate": 2.4098360655737705e-05,
|
211 |
+
"loss": 0.6752,
|
212 |
+
"step": 58
|
213 |
+
},
|
214 |
+
{
|
215 |
+
"epoch": 0.88,
|
216 |
+
"grad_norm": 1.2308931350708008,
|
217 |
+
"learning_rate": 2.377049180327869e-05,
|
218 |
+
"loss": 0.6703,
|
219 |
+
"step": 60
|
220 |
+
},
|
221 |
+
{
|
222 |
+
"epoch": 0.91,
|
223 |
+
"grad_norm": 0.9486699104309082,
|
224 |
+
"learning_rate": 2.3442622950819672e-05,
|
225 |
+
"loss": 0.6265,
|
226 |
+
"step": 62
|
227 |
+
},
|
228 |
+
{
|
229 |
+
"epoch": 0.94,
|
230 |
+
"grad_norm": 0.9226927757263184,
|
231 |
+
"learning_rate": 2.3114754098360656e-05,
|
232 |
+
"loss": 0.6806,
|
233 |
+
"step": 64
|
234 |
+
},
|
235 |
+
{
|
236 |
+
"epoch": 0.97,
|
237 |
+
"grad_norm": 0.9970481991767883,
|
238 |
+
"learning_rate": 2.278688524590164e-05,
|
239 |
+
"loss": 0.6684,
|
240 |
+
"step": 66
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"epoch": 1.0,
|
244 |
+
"grad_norm": 0.9154540300369263,
|
245 |
+
"learning_rate": 2.2459016393442626e-05,
|
246 |
+
"loss": 0.6076,
|
247 |
+
"step": 68
|
248 |
+
},
|
249 |
+
{
|
250 |
+
"epoch": 1.03,
|
251 |
+
"grad_norm": 0.9942613840103149,
|
252 |
+
"learning_rate": 2.213114754098361e-05,
|
253 |
+
"loss": 0.6423,
|
254 |
+
"step": 70
|
255 |
+
},
|
256 |
+
{
|
257 |
+
"epoch": 1.06,
|
258 |
+
"grad_norm": 0.7813049554824829,
|
259 |
+
"learning_rate": 2.180327868852459e-05,
|
260 |
+
"loss": 0.6045,
|
261 |
+
"step": 72
|
262 |
+
},
|
263 |
+
{
|
264 |
+
"epoch": 1.09,
|
265 |
+
"grad_norm": 0.8933289051055908,
|
266 |
+
"learning_rate": 2.1475409836065574e-05,
|
267 |
+
"loss": 0.6022,
|
268 |
+
"step": 74
|
269 |
+
},
|
270 |
+
{
|
271 |
+
"epoch": 1.12,
|
272 |
+
"grad_norm": 1.1493891477584839,
|
273 |
+
"learning_rate": 2.1147540983606557e-05,
|
274 |
+
"loss": 0.6012,
|
275 |
+
"step": 76
|
276 |
+
},
|
277 |
+
{
|
278 |
+
"epoch": 1.15,
|
279 |
+
"grad_norm": 1.102952480316162,
|
280 |
+
"learning_rate": 2.081967213114754e-05,
|
281 |
+
"loss": 0.6232,
|
282 |
+
"step": 78
|
283 |
+
},
|
284 |
+
{
|
285 |
+
"epoch": 1.18,
|
286 |
+
"grad_norm": 1.0626366138458252,
|
287 |
+
"learning_rate": 2.0491803278688525e-05,
|
288 |
+
"loss": 0.6064,
|
289 |
+
"step": 80
|
290 |
+
},
|
291 |
+
{
|
292 |
+
"epoch": 1.21,
|
293 |
+
"grad_norm": 1.103053331375122,
|
294 |
+
"learning_rate": 2.0163934426229508e-05,
|
295 |
+
"loss": 0.5939,
|
296 |
+
"step": 82
|
297 |
+
},
|
298 |
+
{
|
299 |
+
"epoch": 1.24,
|
300 |
+
"grad_norm": 1.2533128261566162,
|
301 |
+
"learning_rate": 1.9836065573770492e-05,
|
302 |
+
"loss": 0.6151,
|
303 |
+
"step": 84
|
304 |
+
},
|
305 |
+
{
|
306 |
+
"epoch": 1.26,
|
307 |
+
"grad_norm": 1.1883020401000977,
|
308 |
+
"learning_rate": 1.9508196721311475e-05,
|
309 |
+
"loss": 0.5898,
|
310 |
+
"step": 86
|
311 |
+
},
|
312 |
+
{
|
313 |
+
"epoch": 1.29,
|
314 |
+
"grad_norm": 0.941169023513794,
|
315 |
+
"learning_rate": 1.9180327868852462e-05,
|
316 |
+
"loss": 0.5877,
|
317 |
+
"step": 88
|
318 |
+
},
|
319 |
+
{
|
320 |
+
"epoch": 1.32,
|
321 |
+
"grad_norm": 1.0497690439224243,
|
322 |
+
"learning_rate": 1.8852459016393442e-05,
|
323 |
+
"loss": 0.603,
|
324 |
+
"step": 90
|
325 |
+
},
|
326 |
+
{
|
327 |
+
"epoch": 1.35,
|
328 |
+
"grad_norm": 1.006282091140747,
|
329 |
+
"learning_rate": 1.8524590163934426e-05,
|
330 |
+
"loss": 0.5779,
|
331 |
+
"step": 92
|
332 |
+
},
|
333 |
+
{
|
334 |
+
"epoch": 1.38,
|
335 |
+
"grad_norm": 0.8880963325500488,
|
336 |
+
"learning_rate": 1.819672131147541e-05,
|
337 |
+
"loss": 0.5785,
|
338 |
+
"step": 94
|
339 |
+
},
|
340 |
+
{
|
341 |
+
"epoch": 1.41,
|
342 |
+
"grad_norm": 0.8170259594917297,
|
343 |
+
"learning_rate": 1.7868852459016393e-05,
|
344 |
+
"loss": 0.5973,
|
345 |
+
"step": 96
|
346 |
+
},
|
347 |
+
{
|
348 |
+
"epoch": 1.44,
|
349 |
+
"grad_norm": 0.9137255549430847,
|
350 |
+
"learning_rate": 1.7540983606557377e-05,
|
351 |
+
"loss": 0.5859,
|
352 |
+
"step": 98
|
353 |
+
},
|
354 |
+
{
|
355 |
+
"epoch": 1.47,
|
356 |
+
"grad_norm": 0.8934600353240967,
|
357 |
+
"learning_rate": 1.721311475409836e-05,
|
358 |
+
"loss": 0.5712,
|
359 |
+
"step": 100
|
360 |
+
},
|
361 |
+
{
|
362 |
+
"epoch": 1.5,
|
363 |
+
"grad_norm": 0.9546217322349548,
|
364 |
+
"learning_rate": 1.6885245901639344e-05,
|
365 |
+
"loss": 0.5977,
|
366 |
+
"step": 102
|
367 |
+
},
|
368 |
+
{
|
369 |
+
"epoch": 1.53,
|
370 |
+
"grad_norm": 1.1362155675888062,
|
371 |
+
"learning_rate": 1.6557377049180328e-05,
|
372 |
+
"loss": 0.5957,
|
373 |
+
"step": 104
|
374 |
+
},
|
375 |
+
{
|
376 |
+
"epoch": 1.56,
|
377 |
+
"grad_norm": 1.0691664218902588,
|
378 |
+
"learning_rate": 1.6229508196721314e-05,
|
379 |
+
"loss": 0.6303,
|
380 |
+
"step": 106
|
381 |
+
},
|
382 |
+
{
|
383 |
+
"epoch": 1.59,
|
384 |
+
"grad_norm": 1.1143447160720825,
|
385 |
+
"learning_rate": 1.5901639344262298e-05,
|
386 |
+
"loss": 0.5946,
|
387 |
+
"step": 108
|
388 |
+
},
|
389 |
+
{
|
390 |
+
"epoch": 1.62,
|
391 |
+
"grad_norm": 0.9838765859603882,
|
392 |
+
"learning_rate": 1.5573770491803278e-05,
|
393 |
+
"loss": 0.6253,
|
394 |
+
"step": 110
|
395 |
+
},
|
396 |
+
{
|
397 |
+
"epoch": 1.65,
|
398 |
+
"grad_norm": 1.0309878587722778,
|
399 |
+
"learning_rate": 1.5245901639344264e-05,
|
400 |
+
"loss": 0.5695,
|
401 |
+
"step": 112
|
402 |
+
},
|
403 |
+
{
|
404 |
+
"epoch": 1.68,
|
405 |
+
"grad_norm": 1.0644599199295044,
|
406 |
+
"learning_rate": 1.4918032786885245e-05,
|
407 |
+
"loss": 0.5974,
|
408 |
+
"step": 114
|
409 |
+
},
|
410 |
+
{
|
411 |
+
"epoch": 1.71,
|
412 |
+
"grad_norm": 0.9344809651374817,
|
413 |
+
"learning_rate": 1.4590163934426229e-05,
|
414 |
+
"loss": 0.5772,
|
415 |
+
"step": 116
|
416 |
+
},
|
417 |
+
{
|
418 |
+
"epoch": 1.74,
|
419 |
+
"grad_norm": 0.9217023253440857,
|
420 |
+
"learning_rate": 1.4262295081967213e-05,
|
421 |
+
"loss": 0.5659,
|
422 |
+
"step": 118
|
423 |
+
},
|
424 |
+
{
|
425 |
+
"epoch": 1.76,
|
426 |
+
"grad_norm": 1.1142168045043945,
|
427 |
+
"learning_rate": 1.3934426229508198e-05,
|
428 |
+
"loss": 0.5811,
|
429 |
+
"step": 120
|
430 |
+
},
|
431 |
+
{
|
432 |
+
"epoch": 1.79,
|
433 |
+
"grad_norm": 1.1095991134643555,
|
434 |
+
"learning_rate": 1.3606557377049181e-05,
|
435 |
+
"loss": 0.6029,
|
436 |
+
"step": 122
|
437 |
+
},
|
438 |
+
{
|
439 |
+
"epoch": 1.82,
|
440 |
+
"grad_norm": 1.0066099166870117,
|
441 |
+
"learning_rate": 1.3278688524590163e-05,
|
442 |
+
"loss": 0.5568,
|
443 |
+
"step": 124
|
444 |
+
},
|
445 |
+
{
|
446 |
+
"epoch": 1.85,
|
447 |
+
"grad_norm": 0.8575509190559387,
|
448 |
+
"learning_rate": 1.2950819672131147e-05,
|
449 |
+
"loss": 0.5703,
|
450 |
+
"step": 126
|
451 |
+
},
|
452 |
+
{
|
453 |
+
"epoch": 1.88,
|
454 |
+
"grad_norm": 1.1447674036026,
|
455 |
+
"learning_rate": 1.2622950819672132e-05,
|
456 |
+
"loss": 0.5836,
|
457 |
+
"step": 128
|
458 |
+
},
|
459 |
+
{
|
460 |
+
"epoch": 1.91,
|
461 |
+
"grad_norm": 0.9783082604408264,
|
462 |
+
"learning_rate": 1.2295081967213116e-05,
|
463 |
+
"loss": 0.5948,
|
464 |
+
"step": 130
|
465 |
+
},
|
466 |
+
{
|
467 |
+
"epoch": 1.94,
|
468 |
+
"grad_norm": 1.0990079641342163,
|
469 |
+
"learning_rate": 1.19672131147541e-05,
|
470 |
+
"loss": 0.568,
|
471 |
+
"step": 132
|
472 |
+
},
|
473 |
+
{
|
474 |
+
"epoch": 1.97,
|
475 |
+
"grad_norm": 1.0109045505523682,
|
476 |
+
"learning_rate": 1.1639344262295081e-05,
|
477 |
+
"loss": 0.5628,
|
478 |
+
"step": 134
|
479 |
+
},
|
480 |
+
{
|
481 |
+
"epoch": 2.0,
|
482 |
+
"grad_norm": 1.0725024938583374,
|
483 |
+
"learning_rate": 1.1311475409836065e-05,
|
484 |
+
"loss": 0.5838,
|
485 |
+
"step": 136
|
486 |
+
},
|
487 |
+
{
|
488 |
+
"epoch": 2.03,
|
489 |
+
"grad_norm": 1.1007121801376343,
|
490 |
+
"learning_rate": 1.098360655737705e-05,
|
491 |
+
"loss": 0.5584,
|
492 |
+
"step": 138
|
493 |
+
},
|
494 |
+
{
|
495 |
+
"epoch": 2.06,
|
496 |
+
"grad_norm": 0.9721304774284363,
|
497 |
+
"learning_rate": 1.0655737704918034e-05,
|
498 |
+
"loss": 0.563,
|
499 |
+
"step": 140
|
500 |
+
},
|
501 |
+
{
|
502 |
+
"epoch": 2.09,
|
503 |
+
"grad_norm": 1.0708929300308228,
|
504 |
+
"learning_rate": 1.0327868852459017e-05,
|
505 |
+
"loss": 0.5351,
|
506 |
+
"step": 142
|
507 |
+
},
|
508 |
+
{
|
509 |
+
"epoch": 2.12,
|
510 |
+
"grad_norm": 1.0382109880447388,
|
511 |
+
"learning_rate": 9.999999999999999e-06,
|
512 |
+
"loss": 0.6197,
|
513 |
+
"step": 144
|
514 |
+
},
|
515 |
+
{
|
516 |
+
"epoch": 2.15,
|
517 |
+
"grad_norm": 1.1190615892410278,
|
518 |
+
"learning_rate": 9.672131147540984e-06,
|
519 |
+
"loss": 0.5663,
|
520 |
+
"step": 146
|
521 |
+
},
|
522 |
+
{
|
523 |
+
"epoch": 2.18,
|
524 |
+
"grad_norm": 1.0649045705795288,
|
525 |
+
"learning_rate": 9.344262295081968e-06,
|
526 |
+
"loss": 0.5553,
|
527 |
+
"step": 148
|
528 |
+
},
|
529 |
+
{
|
530 |
+
"epoch": 2.21,
|
531 |
+
"grad_norm": 1.201451063156128,
|
532 |
+
"learning_rate": 9.016393442622952e-06,
|
533 |
+
"loss": 0.5765,
|
534 |
+
"step": 150
|
535 |
+
},
|
536 |
+
{
|
537 |
+
"epoch": 2.24,
|
538 |
+
"grad_norm": 1.0463545322418213,
|
539 |
+
"learning_rate": 8.688524590163935e-06,
|
540 |
+
"loss": 0.5466,
|
541 |
+
"step": 152
|
542 |
+
},
|
543 |
+
{
|
544 |
+
"epoch": 2.26,
|
545 |
+
"grad_norm": 1.2062188386917114,
|
546 |
+
"learning_rate": 8.360655737704917e-06,
|
547 |
+
"loss": 0.5732,
|
548 |
+
"step": 154
|
549 |
+
},
|
550 |
+
{
|
551 |
+
"epoch": 2.29,
|
552 |
+
"grad_norm": 1.1948459148406982,
|
553 |
+
"learning_rate": 8.032786885245902e-06,
|
554 |
+
"loss": 0.554,
|
555 |
+
"step": 156
|
556 |
+
},
|
557 |
+
{
|
558 |
+
"epoch": 2.32,
|
559 |
+
"grad_norm": 1.0267665386199951,
|
560 |
+
"learning_rate": 7.704918032786886e-06,
|
561 |
+
"loss": 0.5366,
|
562 |
+
"step": 158
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"epoch": 2.35,
|
566 |
+
"grad_norm": 0.9985692501068115,
|
567 |
+
"learning_rate": 7.377049180327869e-06,
|
568 |
+
"loss": 0.5424,
|
569 |
+
"step": 160
|
570 |
+
},
|
571 |
+
{
|
572 |
+
"epoch": 2.38,
|
573 |
+
"grad_norm": 1.119655728340149,
|
574 |
+
"learning_rate": 7.049180327868853e-06,
|
575 |
+
"loss": 0.5553,
|
576 |
+
"step": 162
|
577 |
+
},
|
578 |
+
{
|
579 |
+
"epoch": 2.41,
|
580 |
+
"grad_norm": 0.9959714412689209,
|
581 |
+
"learning_rate": 6.721311475409837e-06,
|
582 |
+
"loss": 0.5895,
|
583 |
+
"step": 164
|
584 |
+
},
|
585 |
+
{
|
586 |
+
"epoch": 2.44,
|
587 |
+
"grad_norm": 1.0639784336090088,
|
588 |
+
"learning_rate": 6.393442622950819e-06,
|
589 |
+
"loss": 0.5704,
|
590 |
+
"step": 166
|
591 |
+
},
|
592 |
+
{
|
593 |
+
"epoch": 2.47,
|
594 |
+
"grad_norm": 1.1006407737731934,
|
595 |
+
"learning_rate": 6.065573770491804e-06,
|
596 |
+
"loss": 0.5416,
|
597 |
+
"step": 168
|
598 |
+
},
|
599 |
+
{
|
600 |
+
"epoch": 2.5,
|
601 |
+
"grad_norm": 0.98119056224823,
|
602 |
+
"learning_rate": 5.7377049180327865e-06,
|
603 |
+
"loss": 0.5839,
|
604 |
+
"step": 170
|
605 |
+
},
|
606 |
+
{
|
607 |
+
"epoch": 2.53,
|
608 |
+
"grad_norm": 1.1397459506988525,
|
609 |
+
"learning_rate": 5.409836065573771e-06,
|
610 |
+
"loss": 0.5604,
|
611 |
+
"step": 172
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"epoch": 2.56,
|
615 |
+
"grad_norm": 1.0882867574691772,
|
616 |
+
"learning_rate": 5.081967213114754e-06,
|
617 |
+
"loss": 0.556,
|
618 |
+
"step": 174
|
619 |
+
},
|
620 |
+
{
|
621 |
+
"epoch": 2.59,
|
622 |
+
"grad_norm": 1.1950050592422485,
|
623 |
+
"learning_rate": 4.754098360655738e-06,
|
624 |
+
"loss": 0.5694,
|
625 |
+
"step": 176
|
626 |
+
},
|
627 |
+
{
|
628 |
+
"epoch": 2.62,
|
629 |
+
"grad_norm": 1.0115201473236084,
|
630 |
+
"learning_rate": 4.426229508196722e-06,
|
631 |
+
"loss": 0.5464,
|
632 |
+
"step": 178
|
633 |
+
},
|
634 |
+
{
|
635 |
+
"epoch": 2.65,
|
636 |
+
"grad_norm": 1.1844886541366577,
|
637 |
+
"learning_rate": 4.098360655737705e-06,
|
638 |
+
"loss": 0.5489,
|
639 |
+
"step": 180
|
640 |
+
},
|
641 |
+
{
|
642 |
+
"epoch": 2.68,
|
643 |
+
"grad_norm": 1.192030668258667,
|
644 |
+
"learning_rate": 3.770491803278689e-06,
|
645 |
+
"loss": 0.5359,
|
646 |
+
"step": 182
|
647 |
+
},
|
648 |
+
{
|
649 |
+
"epoch": 2.71,
|
650 |
+
"grad_norm": 1.2273727655410767,
|
651 |
+
"learning_rate": 3.4426229508196724e-06,
|
652 |
+
"loss": 0.5721,
|
653 |
+
"step": 184
|
654 |
+
},
|
655 |
+
{
|
656 |
+
"epoch": 2.74,
|
657 |
+
"grad_norm": 0.950477123260498,
|
658 |
+
"learning_rate": 3.114754098360656e-06,
|
659 |
+
"loss": 0.5534,
|
660 |
+
"step": 186
|
661 |
+
},
|
662 |
+
{
|
663 |
+
"epoch": 2.76,
|
664 |
+
"grad_norm": 0.9607704877853394,
|
665 |
+
"learning_rate": 2.7868852459016396e-06,
|
666 |
+
"loss": 0.5706,
|
667 |
+
"step": 188
|
668 |
+
},
|
669 |
+
{
|
670 |
+
"epoch": 2.79,
|
671 |
+
"grad_norm": 1.0138517618179321,
|
672 |
+
"learning_rate": 2.4590163934426227e-06,
|
673 |
+
"loss": 0.5592,
|
674 |
+
"step": 190
|
675 |
+
},
|
676 |
+
{
|
677 |
+
"epoch": 2.82,
|
678 |
+
"grad_norm": 1.1338858604431152,
|
679 |
+
"learning_rate": 2.1311475409836063e-06,
|
680 |
+
"loss": 0.5659,
|
681 |
+
"step": 192
|
682 |
+
},
|
683 |
+
{
|
684 |
+
"epoch": 2.85,
|
685 |
+
"grad_norm": 1.057421088218689,
|
686 |
+
"learning_rate": 1.80327868852459e-06,
|
687 |
+
"loss": 0.586,
|
688 |
+
"step": 194
|
689 |
+
},
|
690 |
+
{
|
691 |
+
"epoch": 2.88,
|
692 |
+
"grad_norm": 1.1511048078536987,
|
693 |
+
"learning_rate": 1.4754098360655737e-06,
|
694 |
+
"loss": 0.5768,
|
695 |
+
"step": 196
|
696 |
+
},
|
697 |
+
{
|
698 |
+
"epoch": 2.91,
|
699 |
+
"grad_norm": 0.9774185419082642,
|
700 |
+
"learning_rate": 1.1475409836065575e-06,
|
701 |
+
"loss": 0.564,
|
702 |
+
"step": 198
|
703 |
+
},
|
704 |
+
{
|
705 |
+
"epoch": 2.94,
|
706 |
+
"grad_norm": 1.1010777950286865,
|
707 |
+
"learning_rate": 8.196721311475409e-07,
|
708 |
+
"loss": 0.5891,
|
709 |
+
"step": 200
|
710 |
+
},
|
711 |
+
{
|
712 |
+
"epoch": 2.97,
|
713 |
+
"grad_norm": 1.024880290031433,
|
714 |
+
"learning_rate": 4.918032786885246e-07,
|
715 |
+
"loss": 0.5536,
|
716 |
+
"step": 202
|
717 |
+
},
|
718 |
+
{
|
719 |
+
"epoch": 3.0,
|
720 |
+
"grad_norm": 0.9065414667129517,
|
721 |
+
"learning_rate": 1.639344262295082e-07,
|
722 |
+
"loss": 0.5979,
|
723 |
+
"step": 204
|
724 |
+
}
|
725 |
+
],
|
726 |
+
"logging_steps": 2,
|
727 |
+
"max_steps": 204,
|
728 |
+
"num_input_tokens_seen": 0,
|
729 |
+
"num_train_epochs": 3,
|
730 |
+
"save_steps": 500,
|
731 |
+
"total_flos": 5017254261424128.0,
|
732 |
+
"train_batch_size": 2,
|
733 |
+
"trial_name": null,
|
734 |
+
"trial_params": null
|
735 |
+
}
|
checkpoint-204/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63d710233b4efc4325284d83fa644be7a9b845012b5adc27d29db3f1b667db0b
|
3 |
+
size 4984
|
handler.py
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from typing import Dict, List, Any
|
2 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
|
3 |
+
import torch
|
4 |
+
from peft import PeftModel
|
5 |
+
import json
|
6 |
+
import os
|
7 |
+
|
8 |
+
|
9 |
+
class EndpointHandler():
|
10 |
+
def __init__(self, path=""):
|
11 |
+
base_model_path = json.load(open(os.path.join(path, "training_params.json")))["model"]
|
12 |
+
model = AutoModelForCausalLM.from_pretrained(
|
13 |
+
base_model_path,
|
14 |
+
torch_dtype=torch.float16,
|
15 |
+
low_cpu_mem_usage=True,
|
16 |
+
trust_remote_code=True,
|
17 |
+
device_map="auto",
|
18 |
+
)
|
19 |
+
tokenizer = AutoTokenizer.from_pretrained(path, trust_remote_code=True)
|
20 |
+
model.resize_token_embeddings(len(tokenizer))
|
21 |
+
model = PeftModel.from_pretrained(model, path)
|
22 |
+
model = model.merge_and_unload()
|
23 |
+
self.pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
|
24 |
+
|
25 |
+
def __call__(self, data: Any) -> List[List[Dict[str, float]]]:
|
26 |
+
inputs = data.pop("inputs", data)
|
27 |
+
parameters = data.pop("parameters", None)
|
28 |
+
if parameters is not None:
|
29 |
+
prediction = self.pipeline(inputs, **parameters)
|
30 |
+
else:
|
31 |
+
prediction = self.pipeline(inputs)
|
32 |
+
return prediction
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
peft==0.9.0
|
2 |
+
transformers==4.38.2
|
runs/Mar20_21-51-31_r-mjmanashti-fine-tuning-models-z9zxggp6-28099-uqwsz/events.out.tfevents.1710971493.r-mjmanashti-fine-tuning-models-z9zxggp6-28099-uqwsz.54.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c9119235d09b595a20549bc9a1053c662373dd2b3f9ce41a01b4a2c1f9d81b0f
|
3 |
+
size 26702
|
special_tokens_map.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<start_of_turn>",
|
4 |
+
"<end_of_turn>"
|
5 |
+
],
|
6 |
+
"bos_token": {
|
7 |
+
"content": "<bos>",
|
8 |
+
"lstrip": false,
|
9 |
+
"normalized": false,
|
10 |
+
"rstrip": false,
|
11 |
+
"single_word": false
|
12 |
+
},
|
13 |
+
"eos_token": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false
|
19 |
+
},
|
20 |
+
"pad_token": {
|
21 |
+
"content": "<pad>",
|
22 |
+
"lstrip": false,
|
23 |
+
"normalized": false,
|
24 |
+
"rstrip": false,
|
25 |
+
"single_word": false
|
26 |
+
},
|
27 |
+
"unk_token": {
|
28 |
+
"content": "<unk>",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false
|
33 |
+
}
|
34 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:05e97791a5e007260de1db7e1692e53150e08cea481e2bf25435553380c147ee
|
3 |
+
size 17477929
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:61a7b147390c64585d6c3543dd6fc636906c9af3865a5548f27f31aee1d4c8e2
|
3 |
+
size 4241003
|
tokenizer_config.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<pad>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<eos>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "<bos>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"3": {
|
30 |
+
"content": "<unk>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"106": {
|
38 |
+
"content": "<start_of_turn>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"107": {
|
46 |
+
"content": "<end_of_turn>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
}
|
53 |
+
},
|
54 |
+
"additional_special_tokens": [
|
55 |
+
"<start_of_turn>",
|
56 |
+
"<end_of_turn>"
|
57 |
+
],
|
58 |
+
"bos_token": "<bos>",
|
59 |
+
"chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if (message['role'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
|
60 |
+
"clean_up_tokenization_spaces": false,
|
61 |
+
"eos_token": "<eos>",
|
62 |
+
"legacy": null,
|
63 |
+
"model_max_length": 2048,
|
64 |
+
"pad_token": "<pad>",
|
65 |
+
"sp_model_kwargs": {},
|
66 |
+
"spaces_between_special_tokens": false,
|
67 |
+
"tokenizer_class": "GemmaTokenizer",
|
68 |
+
"unk_token": "<unk>",
|
69 |
+
"use_default_system_prompt": false
|
70 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63d710233b4efc4325284d83fa644be7a9b845012b5adc27d29db3f1b667db0b
|
3 |
+
size 4984
|
training_params.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model": "google/gemma-2b-it",
|
3 |
+
"project_name": "fingemma-2b-ti",
|
4 |
+
"data_path": "fingemma-2b-ti/autotrain-data",
|
5 |
+
"train_split": "train",
|
6 |
+
"valid_split": null,
|
7 |
+
"add_eos_token": true,
|
8 |
+
"block_size": 1024,
|
9 |
+
"model_max_length": 2048,
|
10 |
+
"padding": "right",
|
11 |
+
"trainer": "sft",
|
12 |
+
"use_flash_attention_2": false,
|
13 |
+
"log": "tensorboard",
|
14 |
+
"disable_gradient_checkpointing": false,
|
15 |
+
"logging_steps": -1,
|
16 |
+
"evaluation_strategy": "epoch",
|
17 |
+
"save_total_limit": 1,
|
18 |
+
"save_strategy": "epoch",
|
19 |
+
"auto_find_batch_size": false,
|
20 |
+
"mixed_precision": "fp16",
|
21 |
+
"lr": 3e-05,
|
22 |
+
"epochs": 3,
|
23 |
+
"batch_size": 2,
|
24 |
+
"warmup_ratio": 0.1,
|
25 |
+
"gradient_accumulation": 1,
|
26 |
+
"optimizer": "adamw_torch",
|
27 |
+
"scheduler": "linear",
|
28 |
+
"weight_decay": 0.0,
|
29 |
+
"max_grad_norm": 1.0,
|
30 |
+
"seed": 42,
|
31 |
+
"chat_template": "none",
|
32 |
+
"quantization": "int4",
|
33 |
+
"target_modules": "all-linear",
|
34 |
+
"merge_adapter": false,
|
35 |
+
"peft": true,
|
36 |
+
"lora_r": 16,
|
37 |
+
"lora_alpha": 32,
|
38 |
+
"lora_dropout": 0.05,
|
39 |
+
"model_ref": null,
|
40 |
+
"dpo_beta": 0.1,
|
41 |
+
"prompt_text_column": "autotrain_prompt",
|
42 |
+
"text_column": "autotrain_text",
|
43 |
+
"rejected_text_column": "autotrain_rejected_text",
|
44 |
+
"push_to_hub": true,
|
45 |
+
"repo_id": "mjmanashti/fingemma-2b-ti",
|
46 |
+
"username": "mjmanashti"
|
47 |
+
}
|