LAPINILLA commited on
Commit
77c88bc
1 Parent(s): dc45d12

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-generation-inference
5
+ - text-generation
6
+ - peft
7
+ library_name: transformers
8
+ widget:
9
+ - messages:
10
+ - role: user
11
+ content: What is your favorite condiment?
12
+ license: other
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
18
+
19
+ # Usage
20
+
21
+ ```python
22
+
23
+ from transformers import AutoModelForCausalLM, AutoTokenizer
24
+
25
+ model_path = "PATH_TO_THIS_REPO"
26
+
27
+ tokenizer = AutoTokenizer.from_pretrained(model_path)
28
+ model = AutoModelForCausalLM.from_pretrained(
29
+ model_path,
30
+ device_map="auto",
31
+ torch_dtype='auto'
32
+ ).eval()
33
+
34
+ # Prompt content: "hi"
35
+ messages = [
36
+ {"role": "user", "content": "hi"}
37
+ ]
38
+
39
+ input_ids = tokenizer.apply_chat_template(conversation=messages, tokenize=True, add_generation_prompt=True, return_tensors='pt')
40
+ output_ids = model.generate(input_ids.to('cuda'))
41
+ response = tokenizer.decode(output_ids[0][input_ids.shape[1]:], skip_special_tokens=True)
42
+
43
+ # Model response: "Hello! How can I assist you today?"
44
+ print(response)
45
+ ```
adapter_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
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": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "v_proj",
24
+ "q_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM",
27
+ "use_dora": false,
28
+ "use_rslora": false
29
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e827e9f44d48dc607ad24db60f71c319f4e1ad200950ad61c7ca83fc60d5369e
3
+ size 27280152
checkpoint-2028/README.md ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ base_model: mistralai/Mistral-7B-v0.1
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
+
201
+
202
+ ### Framework versions
203
+
204
+ - PEFT 0.10.0
checkpoint-2028/adapter_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "mistralai/Mistral-7B-v0.1",
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": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "v_proj",
24
+ "q_proj"
25
+ ],
26
+ "task_type": "CAUSAL_LM",
27
+ "use_dora": false,
28
+ "use_rslora": false
29
+ }
checkpoint-2028/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e827e9f44d48dc607ad24db60f71c319f4e1ad200950ad61c7ca83fc60d5369e
3
+ size 27280152
checkpoint-2028/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68af5f408fc3fda0d72a5b5f89ee30f115875ad1e7c506faa87d430288c5c420
3
+ size 54633978
checkpoint-2028/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-2028/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:613611840b6fdb474430bcd9f9eed5c24a27d8a9d52fe7406c5b135f947d7dc7
3
+ size 14244
checkpoint-2028/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7da6bddee70b0d47372d821660d86c3c3e068bf627293a4c8bea4c9a24a320c
3
+ size 1064
checkpoint-2028/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-2028/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-2028/tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dadfd56d766715c61d2ef780a525ab43b8e6da4de6865bda3d95fdef5e134055
3
+ size 493443
checkpoint-2028/tokenizer_config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1024,
37
+ "pad_token": "</s>",
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }
checkpoint-2028/trainer_state.json ADDED
@@ -0,0 +1,588 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 6.0,
5
+ "eval_steps": 500,
6
+ "global_step": 2028,
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.07,
13
+ "grad_norm": 1.6387559175491333,
14
+ "learning_rate": 2.4630541871921184e-05,
15
+ "loss": 1.3637,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.15,
20
+ "grad_norm": 1.9441598653793335,
21
+ "learning_rate": 4.926108374384237e-05,
22
+ "loss": 1.2291,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.22,
27
+ "grad_norm": 2.4013047218322754,
28
+ "learning_rate": 7.389162561576355e-05,
29
+ "loss": 1.1296,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.3,
34
+ "grad_norm": 2.915468215942383,
35
+ "learning_rate": 9.852216748768474e-05,
36
+ "loss": 1.0603,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 0.37,
41
+ "grad_norm": 2.2165613174438477,
42
+ "learning_rate": 0.00012315270935960593,
43
+ "loss": 0.9742,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 0.44,
48
+ "grad_norm": 2.0160369873046875,
49
+ "learning_rate": 0.0001477832512315271,
50
+ "loss": 1.0095,
51
+ "step": 150
52
+ },
53
+ {
54
+ "epoch": 0.52,
55
+ "grad_norm": 1.840472936630249,
56
+ "learning_rate": 0.00017241379310344826,
57
+ "loss": 0.9758,
58
+ "step": 175
59
+ },
60
+ {
61
+ "epoch": 0.59,
62
+ "grad_norm": 1.7259827852249146,
63
+ "learning_rate": 0.00019704433497536947,
64
+ "loss": 0.9755,
65
+ "step": 200
66
+ },
67
+ {
68
+ "epoch": 0.67,
69
+ "grad_norm": 1.8914766311645508,
70
+ "learning_rate": 0.00019758904109589044,
71
+ "loss": 1.0167,
72
+ "step": 225
73
+ },
74
+ {
75
+ "epoch": 0.74,
76
+ "grad_norm": 1.5285598039627075,
77
+ "learning_rate": 0.00019484931506849316,
78
+ "loss": 0.9205,
79
+ "step": 250
80
+ },
81
+ {
82
+ "epoch": 0.81,
83
+ "grad_norm": 1.6174041032791138,
84
+ "learning_rate": 0.00019210958904109592,
85
+ "loss": 0.9171,
86
+ "step": 275
87
+ },
88
+ {
89
+ "epoch": 0.89,
90
+ "grad_norm": 1.6485415697097778,
91
+ "learning_rate": 0.00018936986301369864,
92
+ "loss": 0.9214,
93
+ "step": 300
94
+ },
95
+ {
96
+ "epoch": 0.96,
97
+ "grad_norm": 1.6646627187728882,
98
+ "learning_rate": 0.0001866301369863014,
99
+ "loss": 0.9161,
100
+ "step": 325
101
+ },
102
+ {
103
+ "epoch": 1.04,
104
+ "grad_norm": 1.58356511592865,
105
+ "learning_rate": 0.00018400000000000003,
106
+ "loss": 0.8968,
107
+ "step": 350
108
+ },
109
+ {
110
+ "epoch": 1.11,
111
+ "grad_norm": 1.722945213317871,
112
+ "learning_rate": 0.00018126027397260275,
113
+ "loss": 0.8365,
114
+ "step": 375
115
+ },
116
+ {
117
+ "epoch": 1.18,
118
+ "grad_norm": 1.9991916418075562,
119
+ "learning_rate": 0.0001785205479452055,
120
+ "loss": 0.8648,
121
+ "step": 400
122
+ },
123
+ {
124
+ "epoch": 1.26,
125
+ "grad_norm": 3.0022475719451904,
126
+ "learning_rate": 0.00017578082191780823,
127
+ "loss": 0.8409,
128
+ "step": 425
129
+ },
130
+ {
131
+ "epoch": 1.33,
132
+ "grad_norm": 1.5056065320968628,
133
+ "learning_rate": 0.00017304109589041098,
134
+ "loss": 0.7653,
135
+ "step": 450
136
+ },
137
+ {
138
+ "epoch": 1.41,
139
+ "grad_norm": 1.5764682292938232,
140
+ "learning_rate": 0.0001703013698630137,
141
+ "loss": 0.8132,
142
+ "step": 475
143
+ },
144
+ {
145
+ "epoch": 1.48,
146
+ "grad_norm": 1.6800600290298462,
147
+ "learning_rate": 0.00016756164383561646,
148
+ "loss": 0.8424,
149
+ "step": 500
150
+ },
151
+ {
152
+ "epoch": 1.55,
153
+ "grad_norm": 1.5748885869979858,
154
+ "learning_rate": 0.00016482191780821918,
155
+ "loss": 0.8225,
156
+ "step": 525
157
+ },
158
+ {
159
+ "epoch": 1.63,
160
+ "grad_norm": 1.8514370918273926,
161
+ "learning_rate": 0.00016208219178082193,
162
+ "loss": 0.782,
163
+ "step": 550
164
+ },
165
+ {
166
+ "epoch": 1.7,
167
+ "grad_norm": 1.6620662212371826,
168
+ "learning_rate": 0.00015934246575342466,
169
+ "loss": 0.8057,
170
+ "step": 575
171
+ },
172
+ {
173
+ "epoch": 1.78,
174
+ "grad_norm": 1.5210013389587402,
175
+ "learning_rate": 0.0001566027397260274,
176
+ "loss": 0.8187,
177
+ "step": 600
178
+ },
179
+ {
180
+ "epoch": 1.85,
181
+ "grad_norm": 1.831774353981018,
182
+ "learning_rate": 0.00015386301369863013,
183
+ "loss": 0.8243,
184
+ "step": 625
185
+ },
186
+ {
187
+ "epoch": 1.92,
188
+ "grad_norm": 1.578306794166565,
189
+ "learning_rate": 0.0001511232876712329,
190
+ "loss": 0.8339,
191
+ "step": 650
192
+ },
193
+ {
194
+ "epoch": 2.0,
195
+ "grad_norm": 1.6106500625610352,
196
+ "learning_rate": 0.0001483835616438356,
197
+ "loss": 0.8359,
198
+ "step": 675
199
+ },
200
+ {
201
+ "epoch": 2.07,
202
+ "grad_norm": 2.1241354942321777,
203
+ "learning_rate": 0.00014564383561643836,
204
+ "loss": 0.711,
205
+ "step": 700
206
+ },
207
+ {
208
+ "epoch": 2.14,
209
+ "grad_norm": 2.0171968936920166,
210
+ "learning_rate": 0.00014290410958904112,
211
+ "loss": 0.6632,
212
+ "step": 725
213
+ },
214
+ {
215
+ "epoch": 2.22,
216
+ "grad_norm": 1.9910348653793335,
217
+ "learning_rate": 0.00014016438356164384,
218
+ "loss": 0.6418,
219
+ "step": 750
220
+ },
221
+ {
222
+ "epoch": 2.29,
223
+ "grad_norm": 2.025341749191284,
224
+ "learning_rate": 0.0001374246575342466,
225
+ "loss": 0.673,
226
+ "step": 775
227
+ },
228
+ {
229
+ "epoch": 2.37,
230
+ "grad_norm": 1.8271619081497192,
231
+ "learning_rate": 0.00013468493150684934,
232
+ "loss": 0.6392,
233
+ "step": 800
234
+ },
235
+ {
236
+ "epoch": 2.44,
237
+ "grad_norm": 2.3863108158111572,
238
+ "learning_rate": 0.00013194520547945207,
239
+ "loss": 0.6239,
240
+ "step": 825
241
+ },
242
+ {
243
+ "epoch": 2.51,
244
+ "grad_norm": 2.1700851917266846,
245
+ "learning_rate": 0.00012920547945205482,
246
+ "loss": 0.6683,
247
+ "step": 850
248
+ },
249
+ {
250
+ "epoch": 2.59,
251
+ "grad_norm": 1.662989616394043,
252
+ "learning_rate": 0.00012646575342465755,
253
+ "loss": 0.6566,
254
+ "step": 875
255
+ },
256
+ {
257
+ "epoch": 2.66,
258
+ "grad_norm": 2.041293144226074,
259
+ "learning_rate": 0.00012372602739726027,
260
+ "loss": 0.6954,
261
+ "step": 900
262
+ },
263
+ {
264
+ "epoch": 2.74,
265
+ "grad_norm": 1.8853856325149536,
266
+ "learning_rate": 0.00012098630136986302,
267
+ "loss": 0.6824,
268
+ "step": 925
269
+ },
270
+ {
271
+ "epoch": 2.81,
272
+ "grad_norm": 2.2064335346221924,
273
+ "learning_rate": 0.00011824657534246575,
274
+ "loss": 0.638,
275
+ "step": 950
276
+ },
277
+ {
278
+ "epoch": 2.88,
279
+ "grad_norm": 2.4988508224487305,
280
+ "learning_rate": 0.0001155068493150685,
281
+ "loss": 0.6586,
282
+ "step": 975
283
+ },
284
+ {
285
+ "epoch": 2.96,
286
+ "grad_norm": 1.8918757438659668,
287
+ "learning_rate": 0.00011276712328767122,
288
+ "loss": 0.6704,
289
+ "step": 1000
290
+ },
291
+ {
292
+ "epoch": 3.03,
293
+ "grad_norm": 2.117297410964966,
294
+ "learning_rate": 0.00011002739726027397,
295
+ "loss": 0.5681,
296
+ "step": 1025
297
+ },
298
+ {
299
+ "epoch": 3.11,
300
+ "grad_norm": 1.9822639226913452,
301
+ "learning_rate": 0.00010728767123287671,
302
+ "loss": 0.507,
303
+ "step": 1050
304
+ },
305
+ {
306
+ "epoch": 3.18,
307
+ "grad_norm": 2.404207706451416,
308
+ "learning_rate": 0.00010454794520547946,
309
+ "loss": 0.5017,
310
+ "step": 1075
311
+ },
312
+ {
313
+ "epoch": 3.25,
314
+ "grad_norm": 2.122673273086548,
315
+ "learning_rate": 0.00010180821917808219,
316
+ "loss": 0.4803,
317
+ "step": 1100
318
+ },
319
+ {
320
+ "epoch": 3.33,
321
+ "grad_norm": 2.590771436691284,
322
+ "learning_rate": 9.906849315068494e-05,
323
+ "loss": 0.5102,
324
+ "step": 1125
325
+ },
326
+ {
327
+ "epoch": 3.4,
328
+ "grad_norm": 2.141523838043213,
329
+ "learning_rate": 9.632876712328768e-05,
330
+ "loss": 0.5011,
331
+ "step": 1150
332
+ },
333
+ {
334
+ "epoch": 3.48,
335
+ "grad_norm": 2.4209084510803223,
336
+ "learning_rate": 9.358904109589042e-05,
337
+ "loss": 0.5235,
338
+ "step": 1175
339
+ },
340
+ {
341
+ "epoch": 3.55,
342
+ "grad_norm": 2.436467170715332,
343
+ "learning_rate": 9.084931506849316e-05,
344
+ "loss": 0.5421,
345
+ "step": 1200
346
+ },
347
+ {
348
+ "epoch": 3.62,
349
+ "grad_norm": 2.52020001411438,
350
+ "learning_rate": 8.81095890410959e-05,
351
+ "loss": 0.5186,
352
+ "step": 1225
353
+ },
354
+ {
355
+ "epoch": 3.7,
356
+ "grad_norm": 2.1507699489593506,
357
+ "learning_rate": 8.536986301369863e-05,
358
+ "loss": 0.5135,
359
+ "step": 1250
360
+ },
361
+ {
362
+ "epoch": 3.77,
363
+ "grad_norm": 2.4909422397613525,
364
+ "learning_rate": 8.263013698630137e-05,
365
+ "loss": 0.5494,
366
+ "step": 1275
367
+ },
368
+ {
369
+ "epoch": 3.85,
370
+ "grad_norm": 2.0679502487182617,
371
+ "learning_rate": 7.989041095890411e-05,
372
+ "loss": 0.4808,
373
+ "step": 1300
374
+ },
375
+ {
376
+ "epoch": 3.92,
377
+ "grad_norm": 2.8978271484375,
378
+ "learning_rate": 7.715068493150686e-05,
379
+ "loss": 0.5453,
380
+ "step": 1325
381
+ },
382
+ {
383
+ "epoch": 3.99,
384
+ "grad_norm": 2.301755428314209,
385
+ "learning_rate": 7.44109589041096e-05,
386
+ "loss": 0.4995,
387
+ "step": 1350
388
+ },
389
+ {
390
+ "epoch": 4.07,
391
+ "grad_norm": 2.578835964202881,
392
+ "learning_rate": 7.167123287671234e-05,
393
+ "loss": 0.3984,
394
+ "step": 1375
395
+ },
396
+ {
397
+ "epoch": 4.14,
398
+ "grad_norm": 2.900747299194336,
399
+ "learning_rate": 6.893150684931508e-05,
400
+ "loss": 0.3675,
401
+ "step": 1400
402
+ },
403
+ {
404
+ "epoch": 4.22,
405
+ "grad_norm": 3.3370769023895264,
406
+ "learning_rate": 6.619178082191781e-05,
407
+ "loss": 0.3662,
408
+ "step": 1425
409
+ },
410
+ {
411
+ "epoch": 4.29,
412
+ "grad_norm": 2.989133834838867,
413
+ "learning_rate": 6.345205479452055e-05,
414
+ "loss": 0.3756,
415
+ "step": 1450
416
+ },
417
+ {
418
+ "epoch": 4.36,
419
+ "grad_norm": 2.7858242988586426,
420
+ "learning_rate": 6.071232876712329e-05,
421
+ "loss": 0.3816,
422
+ "step": 1475
423
+ },
424
+ {
425
+ "epoch": 4.44,
426
+ "grad_norm": 2.5152714252471924,
427
+ "learning_rate": 5.7972602739726036e-05,
428
+ "loss": 0.3561,
429
+ "step": 1500
430
+ },
431
+ {
432
+ "epoch": 4.51,
433
+ "grad_norm": 2.771308660507202,
434
+ "learning_rate": 5.5232876712328775e-05,
435
+ "loss": 0.3699,
436
+ "step": 1525
437
+ },
438
+ {
439
+ "epoch": 4.59,
440
+ "grad_norm": 3.1365509033203125,
441
+ "learning_rate": 5.249315068493151e-05,
442
+ "loss": 0.3843,
443
+ "step": 1550
444
+ },
445
+ {
446
+ "epoch": 4.66,
447
+ "grad_norm": 3.3356099128723145,
448
+ "learning_rate": 4.9753424657534244e-05,
449
+ "loss": 0.419,
450
+ "step": 1575
451
+ },
452
+ {
453
+ "epoch": 4.73,
454
+ "grad_norm": 3.6290457248687744,
455
+ "learning_rate": 4.701369863013699e-05,
456
+ "loss": 0.3759,
457
+ "step": 1600
458
+ },
459
+ {
460
+ "epoch": 4.81,
461
+ "grad_norm": 2.340773344039917,
462
+ "learning_rate": 4.427397260273973e-05,
463
+ "loss": 0.3608,
464
+ "step": 1625
465
+ },
466
+ {
467
+ "epoch": 4.88,
468
+ "grad_norm": 2.5572738647460938,
469
+ "learning_rate": 4.1534246575342466e-05,
470
+ "loss": 0.3827,
471
+ "step": 1650
472
+ },
473
+ {
474
+ "epoch": 4.96,
475
+ "grad_norm": 2.8399617671966553,
476
+ "learning_rate": 3.8794520547945204e-05,
477
+ "loss": 0.3946,
478
+ "step": 1675
479
+ },
480
+ {
481
+ "epoch": 5.03,
482
+ "grad_norm": 2.2290821075439453,
483
+ "learning_rate": 3.605479452054795e-05,
484
+ "loss": 0.3155,
485
+ "step": 1700
486
+ },
487
+ {
488
+ "epoch": 5.1,
489
+ "grad_norm": 2.295093536376953,
490
+ "learning_rate": 3.331506849315069e-05,
491
+ "loss": 0.2648,
492
+ "step": 1725
493
+ },
494
+ {
495
+ "epoch": 5.18,
496
+ "grad_norm": 2.754384756088257,
497
+ "learning_rate": 3.0575342465753426e-05,
498
+ "loss": 0.2921,
499
+ "step": 1750
500
+ },
501
+ {
502
+ "epoch": 5.25,
503
+ "grad_norm": 3.0329742431640625,
504
+ "learning_rate": 2.7835616438356164e-05,
505
+ "loss": 0.2801,
506
+ "step": 1775
507
+ },
508
+ {
509
+ "epoch": 5.33,
510
+ "grad_norm": 2.5985870361328125,
511
+ "learning_rate": 2.5095890410958906e-05,
512
+ "loss": 0.262,
513
+ "step": 1800
514
+ },
515
+ {
516
+ "epoch": 5.4,
517
+ "grad_norm": 3.2596547603607178,
518
+ "learning_rate": 2.2356164383561644e-05,
519
+ "loss": 0.2742,
520
+ "step": 1825
521
+ },
522
+ {
523
+ "epoch": 5.47,
524
+ "grad_norm": 2.7161920070648193,
525
+ "learning_rate": 1.9616438356164386e-05,
526
+ "loss": 0.2609,
527
+ "step": 1850
528
+ },
529
+ {
530
+ "epoch": 5.55,
531
+ "grad_norm": 2.671105146408081,
532
+ "learning_rate": 1.6876712328767124e-05,
533
+ "loss": 0.2906,
534
+ "step": 1875
535
+ },
536
+ {
537
+ "epoch": 5.62,
538
+ "grad_norm": 2.5027403831481934,
539
+ "learning_rate": 1.4136986301369864e-05,
540
+ "loss": 0.2491,
541
+ "step": 1900
542
+ },
543
+ {
544
+ "epoch": 5.7,
545
+ "grad_norm": 3.0660693645477295,
546
+ "learning_rate": 1.1397260273972603e-05,
547
+ "loss": 0.2869,
548
+ "step": 1925
549
+ },
550
+ {
551
+ "epoch": 5.77,
552
+ "grad_norm": 2.5826847553253174,
553
+ "learning_rate": 8.657534246575343e-06,
554
+ "loss": 0.2624,
555
+ "step": 1950
556
+ },
557
+ {
558
+ "epoch": 5.84,
559
+ "grad_norm": 2.695078134536743,
560
+ "learning_rate": 5.9178082191780825e-06,
561
+ "loss": 0.2477,
562
+ "step": 1975
563
+ },
564
+ {
565
+ "epoch": 5.92,
566
+ "grad_norm": 2.729051113128662,
567
+ "learning_rate": 3.178082191780822e-06,
568
+ "loss": 0.2862,
569
+ "step": 2000
570
+ },
571
+ {
572
+ "epoch": 5.99,
573
+ "grad_norm": 3.2778682708740234,
574
+ "learning_rate": 4.3835616438356164e-07,
575
+ "loss": 0.2722,
576
+ "step": 2025
577
+ }
578
+ ],
579
+ "logging_steps": 25,
580
+ "max_steps": 2028,
581
+ "num_input_tokens_seen": 0,
582
+ "num_train_epochs": 6,
583
+ "save_steps": 500,
584
+ "total_flos": 8.868397672562688e+16,
585
+ "train_batch_size": 1,
586
+ "trial_name": null,
587
+ "trial_params": null
588
+ }
checkpoint-2028/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c0bcbbea33b9f1a3c1ae28f9f507ae53daaa999ed65f2fcb77bb3dbe1104be
3
+ size 4920
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,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "additional_special_tokens": [],
31
+ "bos_token": "<s>",
32
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
33
+ "clean_up_tokenization_spaces": false,
34
+ "eos_token": "</s>",
35
+ "legacy": true,
36
+ "model_max_length": 1024,
37
+ "pad_token": "</s>",
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0c0bcbbea33b9f1a3c1ae28f9f507ae53daaa999ed65f2fcb77bb3dbe1104be
3
+ size 4920
training_params.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "mistralai/Mistral-7B-v0.1",
3
+ "project_name": "mistral-7b-TCIS-EW5",
4
+ "data_path": "mistral-7b-TCIS-EW5/autotrain-data",
5
+ "train_split": "train",
6
+ "valid_split": null,
7
+ "add_eos_token": false,
8
+ "block_size": -1,
9
+ "model_max_length": 1024,
10
+ "padding": null,
11
+ "trainer": "sft",
12
+ "use_flash_attention_2": false,
13
+ "log": "none",
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": 0.0002,
22
+ "epochs": 6,
23
+ "batch_size": 1,
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": null,
32
+ "quantization": "int4",
33
+ "target_modules": "q_proj,v_proj",
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": "LAPINILLA/TCISEW",
46
+ "username": null
47
+ }