KaztoRay commited on
Commit
7d89a14
·
verified ·
1 Parent(s): 8a12273

RemasterPhantom v3.1 — LoRA adapter

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lora_adapter/README.md +62 -0
  2. lora_adapter/adapter_config.json +51 -0
  3. lora_adapter/adapter_model.safetensors +3 -0
  4. lora_adapter/chat_template.jinja +93 -0
  5. lora_adapter/checkpoint-150/README.md +209 -0
  6. lora_adapter/checkpoint-150/adapter_config.json +51 -0
  7. lora_adapter/checkpoint-150/adapter_model.safetensors +3 -0
  8. lora_adapter/checkpoint-150/chat_template.jinja +93 -0
  9. lora_adapter/checkpoint-150/optimizer.pt +3 -0
  10. lora_adapter/checkpoint-150/rng_state.pth +3 -0
  11. lora_adapter/checkpoint-150/scheduler.pt +3 -0
  12. lora_adapter/checkpoint-150/tokenizer.json +3 -0
  13. lora_adapter/checkpoint-150/tokenizer_config.json +17 -0
  14. lora_adapter/checkpoint-150/trainer_state.json +184 -0
  15. lora_adapter/checkpoint-150/training_args.bin +3 -0
  16. lora_adapter/checkpoint-300/README.md +209 -0
  17. lora_adapter/checkpoint-300/adapter_config.json +51 -0
  18. lora_adapter/checkpoint-300/adapter_model.safetensors +3 -0
  19. lora_adapter/checkpoint-300/chat_template.jinja +93 -0
  20. lora_adapter/checkpoint-300/optimizer.pt +3 -0
  21. lora_adapter/checkpoint-300/rng_state.pth +3 -0
  22. lora_adapter/checkpoint-300/scheduler.pt +3 -0
  23. lora_adapter/checkpoint-300/tokenizer.json +3 -0
  24. lora_adapter/checkpoint-300/tokenizer_config.json +17 -0
  25. lora_adapter/checkpoint-300/trainer_state.json +345 -0
  26. lora_adapter/checkpoint-300/training_args.bin +3 -0
  27. lora_adapter/checkpoint-450/README.md +209 -0
  28. lora_adapter/checkpoint-450/adapter_config.json +51 -0
  29. lora_adapter/checkpoint-450/adapter_model.safetensors +3 -0
  30. lora_adapter/checkpoint-450/chat_template.jinja +93 -0
  31. lora_adapter/checkpoint-450/optimizer.pt +3 -0
  32. lora_adapter/checkpoint-450/rng_state.pth +3 -0
  33. lora_adapter/checkpoint-450/scheduler.pt +3 -0
  34. lora_adapter/checkpoint-450/tokenizer.json +3 -0
  35. lora_adapter/checkpoint-450/tokenizer_config.json +17 -0
  36. lora_adapter/checkpoint-450/trainer_state.json +495 -0
  37. lora_adapter/checkpoint-450/training_args.bin +3 -0
  38. lora_adapter/checkpoint-600/README.md +209 -0
  39. lora_adapter/checkpoint-600/adapter_config.json +51 -0
  40. lora_adapter/checkpoint-600/adapter_model.safetensors +3 -0
  41. lora_adapter/checkpoint-600/chat_template.jinja +93 -0
  42. lora_adapter/checkpoint-600/optimizer.pt +3 -0
  43. lora_adapter/checkpoint-600/rng_state.pth +3 -0
  44. lora_adapter/checkpoint-600/scheduler.pt +3 -0
  45. lora_adapter/checkpoint-600/tokenizer.json +3 -0
  46. lora_adapter/checkpoint-600/tokenizer_config.json +17 -0
  47. lora_adapter/checkpoint-600/trainer_state.json +656 -0
  48. lora_adapter/checkpoint-600/training_args.bin +3 -0
  49. lora_adapter/checkpoint-693/README.md +209 -0
  50. lora_adapter/checkpoint-693/adapter_config.json +51 -0
lora_adapter/README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ model_name: remasterphantom-v3-lora
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ # Model Card for remasterphantom-v3-lora
16
+
17
+ This model is a fine-tuned version of [unsloth/Llama-3.2-1B-Instruct](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct).
18
+ It has been trained using [TRL](https://github.com/huggingface/trl).
19
+
20
+ ## Quick start
21
+
22
+ ```python
23
+ from transformers import pipeline
24
+
25
+ question = "If you had a time machine, but could only go to the past or the future once and never return, which would you choose and why?"
26
+ generator = pipeline("text-generation", model="None", device="cuda")
27
+ output = generator([{"role": "user", "content": question}], max_new_tokens=128, return_full_text=False)[0]
28
+ print(output["generated_text"])
29
+ ```
30
+
31
+ ## Training procedure
32
+
33
+
34
+
35
+
36
+
37
+ This model was trained with SFT.
38
+
39
+ ### Framework versions
40
+
41
+ - PEFT 0.21.0
42
+ - TRL: 1.13.0
43
+ - Transformers: 5.17.0
44
+ - Pytorch: 2.14.0
45
+ - Datasets: 5.0.1
46
+ - Tokenizers: 0.23.2
47
+
48
+ ## Citations
49
+
50
+
51
+
52
+ Cite TRL as:
53
+
54
+ ```bibtex
55
+ @software{vonwerra2020trl,
56
+ title = {{TRL: Transformers Reinforcement Learning}},
57
+ author = {von Werra, Leandro and Belkada, Younes and Tunstall, Lewis and Beeching, Edward and Thrush, Tristan and Lambert, Nathan and Huang, Shengyi and Rasul, Kashif and Gallouédec, Quentin},
58
+ license = {Apache-2.0},
59
+ url = {https://github.com/huggingface/trl},
60
+ year = {2020}
61
+ }
62
+ ```
lora_adapter/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
lora_adapter/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:31d1ddd1ca763194d58b9e5cf9e6f532bd715ad8726df701929745cb6a4311f5
3
+ size 45118424
lora_adapter/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
lora_adapter/checkpoint-150/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.21.0
lora_adapter/checkpoint-150/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
lora_adapter/checkpoint-150/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:071c83a50e0222dc3957633847e8133b8c0a407aa8d2a6e63bd941086afd2d53
3
+ size 45118424
lora_adapter/checkpoint-150/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
lora_adapter/checkpoint-150/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8bc3f5bbd4a3bb400b79c762ec5c07ee8e7482c5ced7070badadea5546b82b6
3
+ size 90359883
lora_adapter/checkpoint-150/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cddf27219365242ec1046a3532a63a24c3f350c77f100e4f973369db2cc849d
3
+ size 14455
lora_adapter/checkpoint-150/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60dc73bf06f1c582f0b5527719877be2fa3bfa198848a85bce18940b7bd712cf
3
+ size 1465
lora_adapter/checkpoint-150/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
lora_adapter/checkpoint-150/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|finetune_right_pad_id|>",
14
+ "padding_side": "left",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": null
17
+ }
lora_adapter/checkpoint-150/trainer_state.json ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 0.6511123168746609,
6
+ "eval_steps": 500,
7
+ "global_step": 150,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 3.268431743979454,
14
+ "epoch": 0.04340748779164406,
15
+ "grad_norm": 5.425721168518066,
16
+ "learning_rate": 3e-05,
17
+ "loss": 4.763444137573242,
18
+ "mean_token_accuracy": 0.37437669970095155,
19
+ "num_tokens": 15851.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 3.6355564504861833,
24
+ "epoch": 0.08681497558328811,
25
+ "grad_norm": 2.6653194427490234,
26
+ "learning_rate": 6.333333333333333e-05,
27
+ "loss": 3.661287307739258,
28
+ "mean_token_accuracy": 0.4522986955940723,
29
+ "num_tokens": 31565.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 3.110316979885101,
34
+ "epoch": 0.13022246337493218,
35
+ "grad_norm": 1.8292694091796875,
36
+ "learning_rate": 9.666666666666667e-05,
37
+ "loss": 2.4040077209472654,
38
+ "mean_token_accuracy": 0.6126278236508369,
39
+ "num_tokens": 47681.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.947795458137989,
44
+ "epoch": 0.17362995116657623,
45
+ "grad_norm": 1.7558073997497559,
46
+ "learning_rate": 0.00013000000000000002,
47
+ "loss": 1.4649612426757812,
48
+ "mean_token_accuracy": 0.7671711064875126,
49
+ "num_tokens": 63639.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 1.2642615631222724,
54
+ "epoch": 0.21703743895822028,
55
+ "grad_norm": 1.8000116348266602,
56
+ "learning_rate": 0.00016333333333333334,
57
+ "loss": 0.9385161399841309,
58
+ "mean_token_accuracy": 0.8446647509932518,
59
+ "num_tokens": 79224.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.9772241789847612,
64
+ "epoch": 0.26044492674986436,
65
+ "grad_norm": 1.5789580345153809,
66
+ "learning_rate": 0.00019666666666666666,
67
+ "loss": 0.6508745193481446,
68
+ "mean_token_accuracy": 0.8930118441581726,
69
+ "num_tokens": 94825.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.7386516474187375,
74
+ "epoch": 0.3038524145415084,
75
+ "grad_norm": 1.118341088294983,
76
+ "learning_rate": 0.0001999002586734068,
77
+ "loss": 0.5544538021087646,
78
+ "mean_token_accuracy": 0.9125440023839474,
79
+ "num_tokens": 110902.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.4801172070205212,
84
+ "epoch": 0.34725990233315246,
85
+ "grad_norm": 1.0871493816375732,
86
+ "learning_rate": 0.00019955572927610798,
87
+ "loss": 0.32133638858795166,
88
+ "mean_token_accuracy": 0.9453130982816219,
89
+ "num_tokens": 126758.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.4470752142369747,
94
+ "epoch": 0.3906673901247965,
95
+ "grad_norm": 0.9949904084205627,
96
+ "learning_rate": 0.00019896602868774615,
97
+ "loss": 0.33235070705413816,
98
+ "mean_token_accuracy": 0.9432531543076038,
99
+ "num_tokens": 142247.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.43914212100207806,
104
+ "epoch": 0.43407487791644056,
105
+ "grad_norm": 1.2417030334472656,
106
+ "learning_rate": 0.00019813260913610048,
107
+ "loss": 0.32300994396209715,
108
+ "mean_token_accuracy": 0.9425150409340859,
109
+ "num_tokens": 158033.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.38672009818255904,
114
+ "epoch": 0.47748236570808467,
115
+ "grad_norm": 1.4303337335586548,
116
+ "learning_rate": 0.00019705752304412648,
117
+ "loss": 0.3090308904647827,
118
+ "mean_token_accuracy": 0.9426406390964985,
119
+ "num_tokens": 173972.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.2582590217702091,
124
+ "epoch": 0.5208898534997287,
125
+ "grad_norm": 0.7586016654968262,
126
+ "learning_rate": 0.00019574341797555143,
127
+ "loss": 0.16584413051605223,
128
+ "mean_token_accuracy": 0.9635460428893566,
129
+ "num_tokens": 189557.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.29735598172992467,
134
+ "epoch": 0.5642973412913728,
135
+ "grad_norm": 1.3573423624038696,
136
+ "learning_rate": 0.00019419353011484387,
137
+ "loss": 0.23453230857849122,
138
+ "mean_token_accuracy": 0.9539774417877197,
139
+ "num_tokens": 205568.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.3157164487987757,
144
+ "epoch": 0.6077048290830168,
145
+ "grad_norm": 0.7886211276054382,
146
+ "learning_rate": 0.00019241167629761527,
147
+ "loss": 0.24561758041381837,
148
+ "mean_token_accuracy": 0.951296404749155,
149
+ "num_tokens": 221240.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.41249370062723756,
154
+ "epoch": 0.6511123168746609,
155
+ "grad_norm": 0.6835598945617676,
156
+ "learning_rate": 0.00019040224461107917,
157
+ "loss": 0.3280463695526123,
158
+ "mean_token_accuracy": 0.9425421200692654,
159
+ "num_tokens": 236889.0,
160
+ "step": 150
161
+ }
162
+ ],
163
+ "logging_steps": 10,
164
+ "max_steps": 693,
165
+ "num_input_tokens_seen": 0,
166
+ "num_train_epochs": 3,
167
+ "save_steps": 150,
168
+ "stateful_callbacks": {
169
+ "TrainerControl": {
170
+ "args": {
171
+ "should_epoch_stop": false,
172
+ "should_evaluate": false,
173
+ "should_log": false,
174
+ "should_save": true,
175
+ "should_training_stop": false
176
+ },
177
+ "attributes": {}
178
+ }
179
+ },
180
+ "total_flos": 1399187205697536.0,
181
+ "train_batch_size": 1,
182
+ "trial_name": null,
183
+ "trial_params": null
184
+ }
lora_adapter/checkpoint-150/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f02029ae097ac6a5686a868c70c7fb13e1a18c4978ab722ce3a1759ddbc101a
3
+ size 5713
lora_adapter/checkpoint-300/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.21.0
lora_adapter/checkpoint-300/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
lora_adapter/checkpoint-300/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb6259c71820f0a9cf28059bd0a7f50ba4c7d775c5508099710f54c95a16f99f
3
+ size 45118424
lora_adapter/checkpoint-300/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
lora_adapter/checkpoint-300/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b864b170703c7ff3bd4b166bc4c2496dcc068f47b21b661c0650ebbe93b358de
3
+ size 90359883
lora_adapter/checkpoint-300/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dba4fde4ee04d2f472bb4dea96a48e8fdf7891d2b0694a8f012e8133a2e176ae
3
+ size 14455
lora_adapter/checkpoint-300/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:25fcf670f053f7304b15a0d03a8d7d981c4f3341ba3098848093cb91bc25fd70
3
+ size 1465
lora_adapter/checkpoint-300/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
lora_adapter/checkpoint-300/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|finetune_right_pad_id|>",
14
+ "padding_side": "left",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": null
17
+ }
lora_adapter/checkpoint-300/trainer_state.json ADDED
@@ -0,0 +1,345 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.299511665762344,
6
+ "eval_steps": 500,
7
+ "global_step": 300,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 3.268431743979454,
14
+ "epoch": 0.04340748779164406,
15
+ "grad_norm": 5.425721168518066,
16
+ "learning_rate": 3e-05,
17
+ "loss": 4.763444137573242,
18
+ "mean_token_accuracy": 0.37437669970095155,
19
+ "num_tokens": 15851.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 3.6355564504861833,
24
+ "epoch": 0.08681497558328811,
25
+ "grad_norm": 2.6653194427490234,
26
+ "learning_rate": 6.333333333333333e-05,
27
+ "loss": 3.661287307739258,
28
+ "mean_token_accuracy": 0.4522986955940723,
29
+ "num_tokens": 31565.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 3.110316979885101,
34
+ "epoch": 0.13022246337493218,
35
+ "grad_norm": 1.8292694091796875,
36
+ "learning_rate": 9.666666666666667e-05,
37
+ "loss": 2.4040077209472654,
38
+ "mean_token_accuracy": 0.6126278236508369,
39
+ "num_tokens": 47681.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.947795458137989,
44
+ "epoch": 0.17362995116657623,
45
+ "grad_norm": 1.7558073997497559,
46
+ "learning_rate": 0.00013000000000000002,
47
+ "loss": 1.4649612426757812,
48
+ "mean_token_accuracy": 0.7671711064875126,
49
+ "num_tokens": 63639.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 1.2642615631222724,
54
+ "epoch": 0.21703743895822028,
55
+ "grad_norm": 1.8000116348266602,
56
+ "learning_rate": 0.00016333333333333334,
57
+ "loss": 0.9385161399841309,
58
+ "mean_token_accuracy": 0.8446647509932518,
59
+ "num_tokens": 79224.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.9772241789847612,
64
+ "epoch": 0.26044492674986436,
65
+ "grad_norm": 1.5789580345153809,
66
+ "learning_rate": 0.00019666666666666666,
67
+ "loss": 0.6508745193481446,
68
+ "mean_token_accuracy": 0.8930118441581726,
69
+ "num_tokens": 94825.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.7386516474187375,
74
+ "epoch": 0.3038524145415084,
75
+ "grad_norm": 1.118341088294983,
76
+ "learning_rate": 0.0001999002586734068,
77
+ "loss": 0.5544538021087646,
78
+ "mean_token_accuracy": 0.9125440023839474,
79
+ "num_tokens": 110902.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.4801172070205212,
84
+ "epoch": 0.34725990233315246,
85
+ "grad_norm": 1.0871493816375732,
86
+ "learning_rate": 0.00019955572927610798,
87
+ "loss": 0.32133638858795166,
88
+ "mean_token_accuracy": 0.9453130982816219,
89
+ "num_tokens": 126758.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.4470752142369747,
94
+ "epoch": 0.3906673901247965,
95
+ "grad_norm": 0.9949904084205627,
96
+ "learning_rate": 0.00019896602868774615,
97
+ "loss": 0.33235070705413816,
98
+ "mean_token_accuracy": 0.9432531543076038,
99
+ "num_tokens": 142247.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.43914212100207806,
104
+ "epoch": 0.43407487791644056,
105
+ "grad_norm": 1.2417030334472656,
106
+ "learning_rate": 0.00019813260913610048,
107
+ "loss": 0.32300994396209715,
108
+ "mean_token_accuracy": 0.9425150409340859,
109
+ "num_tokens": 158033.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.38672009818255904,
114
+ "epoch": 0.47748236570808467,
115
+ "grad_norm": 1.4303337335586548,
116
+ "learning_rate": 0.00019705752304412648,
117
+ "loss": 0.3090308904647827,
118
+ "mean_token_accuracy": 0.9426406390964985,
119
+ "num_tokens": 173972.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.2582590217702091,
124
+ "epoch": 0.5208898534997287,
125
+ "grad_norm": 0.7586016654968262,
126
+ "learning_rate": 0.00019574341797555143,
127
+ "loss": 0.16584413051605223,
128
+ "mean_token_accuracy": 0.9635460428893566,
129
+ "num_tokens": 189557.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.29735598172992467,
134
+ "epoch": 0.5642973412913728,
135
+ "grad_norm": 1.3573423624038696,
136
+ "learning_rate": 0.00019419353011484387,
137
+ "loss": 0.23453230857849122,
138
+ "mean_token_accuracy": 0.9539774417877197,
139
+ "num_tokens": 205568.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.3157164487987757,
144
+ "epoch": 0.6077048290830168,
145
+ "grad_norm": 0.7886211276054382,
146
+ "learning_rate": 0.00019241167629761527,
147
+ "loss": 0.24561758041381837,
148
+ "mean_token_accuracy": 0.951296404749155,
149
+ "num_tokens": 221240.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.41249370062723756,
154
+ "epoch": 0.6511123168746609,
155
+ "grad_norm": 0.6835598945617676,
156
+ "learning_rate": 0.00019040224461107917,
157
+ "loss": 0.3280463695526123,
158
+ "mean_token_accuracy": 0.9425421200692654,
159
+ "num_tokens": 236889.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.25797676630318167,
164
+ "epoch": 0.6945198046663049,
165
+ "grad_norm": 0.5169897675514221,
166
+ "learning_rate": 0.0001881701835877161,
167
+ "loss": 0.17580994367599487,
168
+ "mean_token_accuracy": 0.9615871131420135,
169
+ "num_tokens": 252552.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.3551043555140495,
174
+ "epoch": 0.737927292457949,
175
+ "grad_norm": 0.9616410136222839,
176
+ "learning_rate": 0.0001857209900187565,
177
+ "loss": 0.3012498140335083,
178
+ "mean_token_accuracy": 0.9450895473361015,
179
+ "num_tokens": 268798.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.3095861619338393,
184
+ "epoch": 0.781334780249593,
185
+ "grad_norm": 1.0524218082427979,
186
+ "learning_rate": 0.00018306069541749258,
187
+ "loss": 0.21495308876037597,
188
+ "mean_token_accuracy": 0.95635409578681,
189
+ "num_tokens": 284560.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.3253756103105843,
194
+ "epoch": 0.8247422680412371,
195
+ "grad_norm": 0.44378986954689026,
196
+ "learning_rate": 0.00018019585116575555,
197
+ "loss": 0.27938573360443114,
198
+ "mean_token_accuracy": 0.9474706895649433,
199
+ "num_tokens": 300840.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.2480218150652945,
204
+ "epoch": 0.8681497558328811,
205
+ "grad_norm": 0.376433789730072,
206
+ "learning_rate": 0.000177133512380137,
207
+ "loss": 0.18635139465332032,
208
+ "mean_token_accuracy": 0.9606560796499253,
209
+ "num_tokens": 316455.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.26516002183780074,
214
+ "epoch": 0.9115572436245253,
215
+ "grad_norm": 0.447360634803772,
216
+ "learning_rate": 0.00017388122053768674,
217
+ "loss": 0.20903537273406983,
218
+ "mean_token_accuracy": 0.9590088307857514,
219
+ "num_tokens": 332359.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.22508152723312377,
224
+ "epoch": 0.9549647314161693,
225
+ "grad_norm": 0.39458373188972473,
226
+ "learning_rate": 0.0001704469849038734,
227
+ "loss": 0.17320446968078612,
228
+ "mean_token_accuracy": 0.9621456168591976,
229
+ "num_tokens": 348219.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.1884014437906444,
234
+ "epoch": 0.9983722192078134,
235
+ "grad_norm": 0.5577853918075562,
236
+ "learning_rate": 0.00016683926280854484,
237
+ "loss": 0.14232510328292847,
238
+ "mean_token_accuracy": 0.967728354781866,
239
+ "num_tokens": 363802.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "epoch": 1.0,
244
+ "eval_entropy": 0.2500555583713006,
245
+ "eval_loss": 0.2172880917787552,
246
+ "eval_mean_token_accuracy": 0.9547121439661298,
247
+ "eval_num_tokens": 364353.0,
248
+ "eval_runtime": 43.3662,
249
+ "eval_samples_per_second": 2.26,
250
+ "eval_steps_per_second": 2.26,
251
+ "step": 231
252
+ },
253
+ {
254
+ "entropy": 0.26626345694065096,
255
+ "epoch": 1.0390667390124797,
256
+ "grad_norm": 0.36867332458496094,
257
+ "learning_rate": 0.00016306693881846152,
258
+ "loss": 0.23021941184997557,
259
+ "mean_token_accuracy": 0.9587587014834086,
260
+ "num_tokens": 378571.0,
261
+ "step": 240
262
+ },
263
+ {
264
+ "entropy": 0.1791029059328139,
265
+ "epoch": 1.0824742268041236,
266
+ "grad_norm": 0.5592738389968872,
267
+ "learning_rate": 0.00015913930285769355,
268
+ "loss": 0.1204079270362854,
269
+ "mean_token_accuracy": 0.970609325170517,
270
+ "num_tokens": 394252.0,
271
+ "step": 250
272
+ },
273
+ {
274
+ "entropy": 0.25584981925785544,
275
+ "epoch": 1.1258817145957678,
276
+ "grad_norm": 0.6882627606391907,
277
+ "learning_rate": 0.00015506602732976373,
278
+ "loss": 0.182321298122406,
279
+ "mean_token_accuracy": 0.9607684284448623,
280
+ "num_tokens": 410118.0,
281
+ "step": 260
282
+ },
283
+ {
284
+ "entropy": 0.15852767862379552,
285
+ "epoch": 1.1692892023874117,
286
+ "grad_norm": 0.47175613045692444,
287
+ "learning_rate": 0.00015085714329787631,
288
+ "loss": 0.10519710779190064,
289
+ "mean_token_accuracy": 0.9718552604317665,
290
+ "num_tokens": 425967.0,
291
+ "step": 270
292
+ },
293
+ {
294
+ "entropy": 0.224250613944605,
295
+ "epoch": 1.212696690179056,
296
+ "grad_norm": 0.8211113214492798,
297
+ "learning_rate": 0.0001465230157818914,
298
+ "loss": 0.1746065378189087,
299
+ "mean_token_accuracy": 0.9628558784723282,
300
+ "num_tokens": 441911.0,
301
+ "step": 280
302
+ },
303
+ {
304
+ "entropy": 0.2187170408666134,
305
+ "epoch": 1.2561041779707,
306
+ "grad_norm": 1.2185333967208862,
307
+ "learning_rate": 0.00014207431823288057,
308
+ "loss": 0.16913924217224122,
309
+ "mean_token_accuracy": 0.9632994569838047,
310
+ "num_tokens": 457767.0,
311
+ "step": 290
312
+ },
313
+ {
314
+ "entropy": 0.15246864631772042,
315
+ "epoch": 1.299511665762344,
316
+ "grad_norm": 0.8135276436805725,
317
+ "learning_rate": 0.00013752200624812282,
318
+ "loss": 0.10427193641662598,
319
+ "mean_token_accuracy": 0.9733581781387329,
320
+ "num_tokens": 473550.0,
321
+ "step": 300
322
+ }
323
+ ],
324
+ "logging_steps": 10,
325
+ "max_steps": 693,
326
+ "num_input_tokens_seen": 0,
327
+ "num_train_epochs": 3,
328
+ "save_steps": 150,
329
+ "stateful_callbacks": {
330
+ "TrainerControl": {
331
+ "args": {
332
+ "should_epoch_stop": false,
333
+ "should_evaluate": false,
334
+ "should_log": false,
335
+ "should_save": true,
336
+ "should_training_stop": false
337
+ },
338
+ "attributes": {}
339
+ }
340
+ },
341
+ "total_flos": 2797027727155200.0,
342
+ "train_batch_size": 1,
343
+ "trial_name": null,
344
+ "trial_params": null
345
+ }
lora_adapter/checkpoint-300/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f02029ae097ac6a5686a868c70c7fb13e1a18c4978ab722ce3a1759ddbc101a
3
+ size 5713
lora_adapter/checkpoint-450/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.21.0
lora_adapter/checkpoint-450/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
lora_adapter/checkpoint-450/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49595f0e80d22178cee488cf5349a8a1ec2790ce506b4fcdc0c4fe66171f1c2a
3
+ size 45118424
lora_adapter/checkpoint-450/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
lora_adapter/checkpoint-450/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f11166fb230a2e8a81ba006b0a02c724de952fc855a31e884c52116d990c841
3
+ size 90359883
lora_adapter/checkpoint-450/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dba4fde4ee04d2f472bb4dea96a48e8fdf7891d2b0694a8f012e8133a2e176ae
3
+ size 14455
lora_adapter/checkpoint-450/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69fc4c2aaf7d4a9f5a5ee70f8183d7f3147b251b143c2dabd876ad9f138a08b4
3
+ size 1465
lora_adapter/checkpoint-450/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
lora_adapter/checkpoint-450/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|finetune_right_pad_id|>",
14
+ "padding_side": "left",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": null
17
+ }
lora_adapter/checkpoint-450/trainer_state.json ADDED
@@ -0,0 +1,495 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 1.9506239826370049,
6
+ "eval_steps": 500,
7
+ "global_step": 450,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 3.268431743979454,
14
+ "epoch": 0.04340748779164406,
15
+ "grad_norm": 5.425721168518066,
16
+ "learning_rate": 3e-05,
17
+ "loss": 4.763444137573242,
18
+ "mean_token_accuracy": 0.37437669970095155,
19
+ "num_tokens": 15851.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 3.6355564504861833,
24
+ "epoch": 0.08681497558328811,
25
+ "grad_norm": 2.6653194427490234,
26
+ "learning_rate": 6.333333333333333e-05,
27
+ "loss": 3.661287307739258,
28
+ "mean_token_accuracy": 0.4522986955940723,
29
+ "num_tokens": 31565.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 3.110316979885101,
34
+ "epoch": 0.13022246337493218,
35
+ "grad_norm": 1.8292694091796875,
36
+ "learning_rate": 9.666666666666667e-05,
37
+ "loss": 2.4040077209472654,
38
+ "mean_token_accuracy": 0.6126278236508369,
39
+ "num_tokens": 47681.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.947795458137989,
44
+ "epoch": 0.17362995116657623,
45
+ "grad_norm": 1.7558073997497559,
46
+ "learning_rate": 0.00013000000000000002,
47
+ "loss": 1.4649612426757812,
48
+ "mean_token_accuracy": 0.7671711064875126,
49
+ "num_tokens": 63639.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 1.2642615631222724,
54
+ "epoch": 0.21703743895822028,
55
+ "grad_norm": 1.8000116348266602,
56
+ "learning_rate": 0.00016333333333333334,
57
+ "loss": 0.9385161399841309,
58
+ "mean_token_accuracy": 0.8446647509932518,
59
+ "num_tokens": 79224.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.9772241789847612,
64
+ "epoch": 0.26044492674986436,
65
+ "grad_norm": 1.5789580345153809,
66
+ "learning_rate": 0.00019666666666666666,
67
+ "loss": 0.6508745193481446,
68
+ "mean_token_accuracy": 0.8930118441581726,
69
+ "num_tokens": 94825.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.7386516474187375,
74
+ "epoch": 0.3038524145415084,
75
+ "grad_norm": 1.118341088294983,
76
+ "learning_rate": 0.0001999002586734068,
77
+ "loss": 0.5544538021087646,
78
+ "mean_token_accuracy": 0.9125440023839474,
79
+ "num_tokens": 110902.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.4801172070205212,
84
+ "epoch": 0.34725990233315246,
85
+ "grad_norm": 1.0871493816375732,
86
+ "learning_rate": 0.00019955572927610798,
87
+ "loss": 0.32133638858795166,
88
+ "mean_token_accuracy": 0.9453130982816219,
89
+ "num_tokens": 126758.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.4470752142369747,
94
+ "epoch": 0.3906673901247965,
95
+ "grad_norm": 0.9949904084205627,
96
+ "learning_rate": 0.00019896602868774615,
97
+ "loss": 0.33235070705413816,
98
+ "mean_token_accuracy": 0.9432531543076038,
99
+ "num_tokens": 142247.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.43914212100207806,
104
+ "epoch": 0.43407487791644056,
105
+ "grad_norm": 1.2417030334472656,
106
+ "learning_rate": 0.00019813260913610048,
107
+ "loss": 0.32300994396209715,
108
+ "mean_token_accuracy": 0.9425150409340859,
109
+ "num_tokens": 158033.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.38672009818255904,
114
+ "epoch": 0.47748236570808467,
115
+ "grad_norm": 1.4303337335586548,
116
+ "learning_rate": 0.00019705752304412648,
117
+ "loss": 0.3090308904647827,
118
+ "mean_token_accuracy": 0.9426406390964985,
119
+ "num_tokens": 173972.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.2582590217702091,
124
+ "epoch": 0.5208898534997287,
125
+ "grad_norm": 0.7586016654968262,
126
+ "learning_rate": 0.00019574341797555143,
127
+ "loss": 0.16584413051605223,
128
+ "mean_token_accuracy": 0.9635460428893566,
129
+ "num_tokens": 189557.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.29735598172992467,
134
+ "epoch": 0.5642973412913728,
135
+ "grad_norm": 1.3573423624038696,
136
+ "learning_rate": 0.00019419353011484387,
137
+ "loss": 0.23453230857849122,
138
+ "mean_token_accuracy": 0.9539774417877197,
139
+ "num_tokens": 205568.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.3157164487987757,
144
+ "epoch": 0.6077048290830168,
145
+ "grad_norm": 0.7886211276054382,
146
+ "learning_rate": 0.00019241167629761527,
147
+ "loss": 0.24561758041381837,
148
+ "mean_token_accuracy": 0.951296404749155,
149
+ "num_tokens": 221240.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.41249370062723756,
154
+ "epoch": 0.6511123168746609,
155
+ "grad_norm": 0.6835598945617676,
156
+ "learning_rate": 0.00019040224461107917,
157
+ "loss": 0.3280463695526123,
158
+ "mean_token_accuracy": 0.9425421200692654,
159
+ "num_tokens": 236889.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.25797676630318167,
164
+ "epoch": 0.6945198046663049,
165
+ "grad_norm": 0.5169897675514221,
166
+ "learning_rate": 0.0001881701835877161,
167
+ "loss": 0.17580994367599487,
168
+ "mean_token_accuracy": 0.9615871131420135,
169
+ "num_tokens": 252552.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.3551043555140495,
174
+ "epoch": 0.737927292457949,
175
+ "grad_norm": 0.9616410136222839,
176
+ "learning_rate": 0.0001857209900187565,
177
+ "loss": 0.3012498140335083,
178
+ "mean_token_accuracy": 0.9450895473361015,
179
+ "num_tokens": 268798.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.3095861619338393,
184
+ "epoch": 0.781334780249593,
185
+ "grad_norm": 1.0524218082427979,
186
+ "learning_rate": 0.00018306069541749258,
187
+ "loss": 0.21495308876037597,
188
+ "mean_token_accuracy": 0.95635409578681,
189
+ "num_tokens": 284560.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.3253756103105843,
194
+ "epoch": 0.8247422680412371,
195
+ "grad_norm": 0.44378986954689026,
196
+ "learning_rate": 0.00018019585116575555,
197
+ "loss": 0.27938573360443114,
198
+ "mean_token_accuracy": 0.9474706895649433,
199
+ "num_tokens": 300840.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.2480218150652945,
204
+ "epoch": 0.8681497558328811,
205
+ "grad_norm": 0.376433789730072,
206
+ "learning_rate": 0.000177133512380137,
207
+ "loss": 0.18635139465332032,
208
+ "mean_token_accuracy": 0.9606560796499253,
209
+ "num_tokens": 316455.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.26516002183780074,
214
+ "epoch": 0.9115572436245253,
215
+ "grad_norm": 0.447360634803772,
216
+ "learning_rate": 0.00017388122053768674,
217
+ "loss": 0.20903537273406983,
218
+ "mean_token_accuracy": 0.9590088307857514,
219
+ "num_tokens": 332359.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.22508152723312377,
224
+ "epoch": 0.9549647314161693,
225
+ "grad_norm": 0.39458373188972473,
226
+ "learning_rate": 0.0001704469849038734,
227
+ "loss": 0.17320446968078612,
228
+ "mean_token_accuracy": 0.9621456168591976,
229
+ "num_tokens": 348219.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.1884014437906444,
234
+ "epoch": 0.9983722192078134,
235
+ "grad_norm": 0.5577853918075562,
236
+ "learning_rate": 0.00016683926280854484,
237
+ "loss": 0.14232510328292847,
238
+ "mean_token_accuracy": 0.967728354781866,
239
+ "num_tokens": 363802.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "epoch": 1.0,
244
+ "eval_entropy": 0.2500555583713006,
245
+ "eval_loss": 0.2172880917787552,
246
+ "eval_mean_token_accuracy": 0.9547121439661298,
247
+ "eval_num_tokens": 364353.0,
248
+ "eval_runtime": 43.3662,
249
+ "eval_samples_per_second": 2.26,
250
+ "eval_steps_per_second": 2.26,
251
+ "step": 231
252
+ },
253
+ {
254
+ "entropy": 0.26626345694065096,
255
+ "epoch": 1.0390667390124797,
256
+ "grad_norm": 0.36867332458496094,
257
+ "learning_rate": 0.00016306693881846152,
258
+ "loss": 0.23021941184997557,
259
+ "mean_token_accuracy": 0.9587587014834086,
260
+ "num_tokens": 378571.0,
261
+ "step": 240
262
+ },
263
+ {
264
+ "entropy": 0.1791029059328139,
265
+ "epoch": 1.0824742268041236,
266
+ "grad_norm": 0.5592738389968872,
267
+ "learning_rate": 0.00015913930285769355,
268
+ "loss": 0.1204079270362854,
269
+ "mean_token_accuracy": 0.970609325170517,
270
+ "num_tokens": 394252.0,
271
+ "step": 250
272
+ },
273
+ {
274
+ "entropy": 0.25584981925785544,
275
+ "epoch": 1.1258817145957678,
276
+ "grad_norm": 0.6882627606391907,
277
+ "learning_rate": 0.00015506602732976373,
278
+ "loss": 0.182321298122406,
279
+ "mean_token_accuracy": 0.9607684284448623,
280
+ "num_tokens": 410118.0,
281
+ "step": 260
282
+ },
283
+ {
284
+ "entropy": 0.15852767862379552,
285
+ "epoch": 1.1692892023874117,
286
+ "grad_norm": 0.47175613045692444,
287
+ "learning_rate": 0.00015085714329787631,
288
+ "loss": 0.10519710779190064,
289
+ "mean_token_accuracy": 0.9718552604317665,
290
+ "num_tokens": 425967.0,
291
+ "step": 270
292
+ },
293
+ {
294
+ "entropy": 0.224250613944605,
295
+ "epoch": 1.212696690179056,
296
+ "grad_norm": 0.8211113214492798,
297
+ "learning_rate": 0.0001465230157818914,
298
+ "loss": 0.1746065378189087,
299
+ "mean_token_accuracy": 0.9628558784723282,
300
+ "num_tokens": 441911.0,
301
+ "step": 280
302
+ },
303
+ {
304
+ "entropy": 0.2187170408666134,
305
+ "epoch": 1.2561041779707,
306
+ "grad_norm": 1.2185333967208862,
307
+ "learning_rate": 0.00014207431823288057,
308
+ "loss": 0.16913924217224122,
309
+ "mean_token_accuracy": 0.9632994569838047,
310
+ "num_tokens": 457767.0,
311
+ "step": 290
312
+ },
313
+ {
314
+ "entropy": 0.15246864631772042,
315
+ "epoch": 1.299511665762344,
316
+ "grad_norm": 0.8135276436805725,
317
+ "learning_rate": 0.00013752200624812282,
318
+ "loss": 0.10427193641662598,
319
+ "mean_token_accuracy": 0.9733581781387329,
320
+ "num_tokens": 473550.0,
321
+ "step": 300
322
+ },
323
+ {
324
+ "entropy": 0.14296606807038187,
325
+ "epoch": 1.342919153553988,
326
+ "grad_norm": 0.4611963927745819,
327
+ "learning_rate": 0.00013287729059127288,
328
+ "loss": 0.11364473104476928,
329
+ "mean_token_accuracy": 0.9724942341446876,
330
+ "num_tokens": 489513.0,
331
+ "step": 310
332
+ },
333
+ {
334
+ "entropy": 0.18273791116662325,
335
+ "epoch": 1.386326641345632,
336
+ "grad_norm": 0.600029468536377,
337
+ "learning_rate": 0.00012815160958414332,
338
+ "loss": 0.14306700229644775,
339
+ "mean_token_accuracy": 0.9665566079318524,
340
+ "num_tokens": 505197.0,
341
+ "step": 320
342
+ },
343
+ {
344
+ "entropy": 0.12391844158992171,
345
+ "epoch": 1.4297341291372763,
346
+ "grad_norm": 0.35350969433784485,
347
+ "learning_rate": 0.0001233566009380896,
348
+ "loss": 0.08826681971549988,
349
+ "mean_token_accuracy": 0.9754320561885834,
350
+ "num_tokens": 520666.0,
351
+ "step": 330
352
+ },
353
+ {
354
+ "entropy": 0.14481371184810996,
355
+ "epoch": 1.4731416169289202,
356
+ "grad_norm": 0.6141801476478577,
357
+ "learning_rate": 0.0001185040730943683,
358
+ "loss": 0.11338310241699219,
359
+ "mean_token_accuracy": 0.9735137969255447,
360
+ "num_tokens": 536352.0,
361
+ "step": 340
362
+ },
363
+ {
364
+ "entropy": 0.18556677168235183,
365
+ "epoch": 1.5165491047205641,
366
+ "grad_norm": 0.8235384225845337,
367
+ "learning_rate": 0.00011360597614404662,
368
+ "loss": 0.13062334060668945,
369
+ "mean_token_accuracy": 0.9691525533795357,
370
+ "num_tokens": 551908.0,
371
+ "step": 350
372
+ },
373
+ {
374
+ "entropy": 0.19317283374257385,
375
+ "epoch": 1.5599565925122083,
376
+ "grad_norm": 0.7898983359336853,
377
+ "learning_rate": 0.00010867437239907765,
378
+ "loss": 0.13731375932693482,
379
+ "mean_token_accuracy": 0.9673447087407112,
380
+ "num_tokens": 567817.0,
381
+ "step": 360
382
+ },
383
+ {
384
+ "entropy": 0.23874589540064334,
385
+ "epoch": 1.6033640803038525,
386
+ "grad_norm": 0.37412697076797485,
387
+ "learning_rate": 0.00010372140668701483,
388
+ "loss": 0.16327574253082275,
389
+ "mean_token_accuracy": 0.9641537763178348,
390
+ "num_tokens": 583908.0,
391
+ "step": 370
392
+ },
393
+ {
394
+ "entropy": 0.11286464962176979,
395
+ "epoch": 1.6467715680954966,
396
+ "grad_norm": 0.4411953091621399,
397
+ "learning_rate": 9.875927644251854e-05,
398
+ "loss": 0.08702898025512695,
399
+ "mean_token_accuracy": 0.9771473661065102,
400
+ "num_tokens": 599617.0,
401
+ "step": 380
402
+ },
403
+ {
404
+ "entropy": 0.13296716185286642,
405
+ "epoch": 1.6901790558871406,
406
+ "grad_norm": 0.3289574086666107,
407
+ "learning_rate": 9.380020166931036e-05,
408
+ "loss": 0.11703462600708008,
409
+ "mean_token_accuracy": 0.9712080150842667,
410
+ "num_tokens": 615577.0,
411
+ "step": 390
412
+ },
413
+ {
414
+ "entropy": 0.1416403181385249,
415
+ "epoch": 1.7335865436787845,
416
+ "grad_norm": 0.571514368057251,
417
+ "learning_rate": 8.885639484654701e-05,
418
+ "loss": 0.11379531621932984,
419
+ "mean_token_accuracy": 0.9724767826497555,
420
+ "num_tokens": 631601.0,
421
+ "step": 400
422
+ },
423
+ {
424
+ "entropy": 0.11030569332651793,
425
+ "epoch": 1.7769940314704287,
426
+ "grad_norm": 0.4873872995376587,
427
+ "learning_rate": 8.394003085372496e-05,
428
+ "loss": 0.08141401410102844,
429
+ "mean_token_accuracy": 0.9770576477050781,
430
+ "num_tokens": 647297.0,
431
+ "step": 410
432
+ },
433
+ {
434
+ "entropy": 0.12415502546355128,
435
+ "epoch": 1.8204015192620728,
436
+ "grad_norm": 0.32351386547088623,
437
+ "learning_rate": 7.90632169881799e-05,
438
+ "loss": 0.08947296738624573,
439
+ "mean_token_accuracy": 0.9762426503002644,
440
+ "num_tokens": 663176.0,
441
+ "step": 420
442
+ },
443
+ {
444
+ "entropy": 0.16395117049105465,
445
+ "epoch": 1.8638090070537168,
446
+ "grad_norm": 0.34445416927337646,
447
+ "learning_rate": 7.423796314901768e-05,
448
+ "loss": 0.12568631172180175,
449
+ "mean_token_accuracy": 0.9712538823485375,
450
+ "num_tokens": 678975.0,
451
+ "step": 430
452
+ },
453
+ {
454
+ "entropy": 0.20411954806186258,
455
+ "epoch": 1.9072164948453607,
456
+ "grad_norm": 0.8611961603164673,
457
+ "learning_rate": 6.947615226090297e-05,
458
+ "loss": 0.16005014181137084,
459
+ "mean_token_accuracy": 0.9660855703055858,
460
+ "num_tokens": 694724.0,
461
+ "step": 440
462
+ },
463
+ {
464
+ "entropy": 0.1906371342483908,
465
+ "epoch": 1.9506239826370049,
466
+ "grad_norm": 0.3045775890350342,
467
+ "learning_rate": 6.478951101054225e-05,
468
+ "loss": 0.13002687692642212,
469
+ "mean_token_accuracy": 0.9707569405436516,
470
+ "num_tokens": 710764.0,
471
+ "step": 450
472
+ }
473
+ ],
474
+ "logging_steps": 10,
475
+ "max_steps": 693,
476
+ "num_input_tokens_seen": 0,
477
+ "num_train_epochs": 3,
478
+ "save_steps": 150,
479
+ "stateful_callbacks": {
480
+ "TrainerControl": {
481
+ "args": {
482
+ "should_epoch_stop": false,
483
+ "should_evaluate": false,
484
+ "should_log": false,
485
+ "should_save": true,
486
+ "should_training_stop": false
487
+ },
488
+ "attributes": {}
489
+ }
490
+ },
491
+ "total_flos": 4198134548545536.0,
492
+ "train_batch_size": 1,
493
+ "trial_name": null,
494
+ "trial_params": null
495
+ }
lora_adapter/checkpoint-450/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f02029ae097ac6a5686a868c70c7fb13e1a18c4978ab722ce3a1759ddbc101a
3
+ size 5713
lora_adapter/checkpoint-600/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.21.0
lora_adapter/checkpoint-600/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }
lora_adapter/checkpoint-600/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d1712ee7e7f7e4c3c777fce6e9c5403963424d3232cb0030c6d1a51d48313f81
3
+ size 45118424
lora_adapter/checkpoint-600/chat_template.jinja ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {{- bos_token }}
2
+ {%- if custom_tools is defined %}
3
+ {%- set tools = custom_tools %}
4
+ {%- endif %}
5
+ {%- if not tools_in_user_message is defined %}
6
+ {%- set tools_in_user_message = true %}
7
+ {%- endif %}
8
+ {%- if not date_string is defined %}
9
+ {%- if strftime_now is defined %}
10
+ {%- set date_string = strftime_now("%d %b %Y") %}
11
+ {%- else %}
12
+ {%- set date_string = "26 Jul 2024" %}
13
+ {%- endif %}
14
+ {%- endif %}
15
+ {%- if not tools is defined %}
16
+ {%- set tools = none %}
17
+ {%- endif %}
18
+
19
+ {#- This block extracts the system message, so we can slot it into the right place. #}
20
+ {%- if messages[0]['role'] == 'system' %}
21
+ {%- set system_message = messages[0]['content']|trim %}
22
+ {%- set messages = messages[1:] %}
23
+ {%- else %}
24
+ {%- set system_message = "" %}
25
+ {%- endif %}
26
+
27
+ {#- System message #}
28
+ {{- "<|start_header_id|>system<|end_header_id|>\n\n" }}
29
+ {%- if tools is not none %}
30
+ {{- "Environment: ipython\n" }}
31
+ {%- endif %}
32
+ {{- "Cutting Knowledge Date: December 2023\n" }}
33
+ {{- "Today Date: " + date_string + "\n\n" }}
34
+ {%- if tools is not none and not tools_in_user_message %}
35
+ {{- "You have access to the following functions. To call a function, please respond with JSON for a function call." }}
36
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
37
+ {{- "Do not use variables.\n\n" }}
38
+ {%- for t in tools %}
39
+ {{- t | tojson(indent=4) }}
40
+ {{- "\n\n" }}
41
+ {%- endfor %}
42
+ {%- endif %}
43
+ {{- system_message }}
44
+ {{- "<|eot_id|>" }}
45
+
46
+ {#- Custom tools are passed in a user message with some extra guidance #}
47
+ {%- if tools_in_user_message and not tools is none %}
48
+ {#- Extract the first user message so we can plug it in here #}
49
+ {%- if messages | length != 0 %}
50
+ {%- set first_user_message = messages[0]['content']|trim %}
51
+ {%- set messages = messages[1:] %}
52
+ {%- else %}
53
+ {{- raise_exception("Cannot put tools in the first user message when there's no first user message!") }}
54
+ {%- endif %}
55
+ {{- '<|start_header_id|>user<|end_header_id|>\n\n' -}}
56
+ {{- "Given the following functions, please respond with a JSON for a function call " }}
57
+ {{- "with its proper arguments that best answers the given prompt.\n\n" }}
58
+ {{- 'Respond in the format {"name": function name, "parameters": dictionary of argument name and its value}.' }}
59
+ {{- "Do not use variables.\n\n" }}
60
+ {%- for t in tools %}
61
+ {{- t | tojson(indent=4) }}
62
+ {{- "\n\n" }}
63
+ {%- endfor %}
64
+ {{- first_user_message + "<|eot_id|>"}}
65
+ {%- endif %}
66
+
67
+ {%- for message in messages %}
68
+ {%- if not (message.role == 'ipython' or message.role == 'tool' or 'tool_calls' in message) %}
69
+ {{- '<|start_header_id|>' + message['role'] + '<|end_header_id|>\n\n'+ message['content'] | trim + '<|eot_id|>' }}
70
+ {%- elif 'tool_calls' in message %}
71
+ {%- if not message.tool_calls|length == 1 %}
72
+ {{- raise_exception("This model only supports single tool-calls at once!") }}
73
+ {%- endif %}
74
+ {%- set tool_call = message.tool_calls[0].function %}
75
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' -}}
76
+ {{- '{"name": "' + tool_call.name + '", ' }}
77
+ {{- '"parameters": ' }}
78
+ {{- tool_call.arguments | tojson }}
79
+ {{- "}" }}
80
+ {{- "<|eot_id|>" }}
81
+ {%- elif message.role == "tool" or message.role == "ipython" %}
82
+ {{- "<|start_header_id|>ipython<|end_header_id|>\n\n" }}
83
+ {%- if message.content is mapping or message.content is iterable %}
84
+ {{- message.content | tojson }}
85
+ {%- else %}
86
+ {{- message.content }}
87
+ {%- endif %}
88
+ {{- "<|eot_id|>" }}
89
+ {%- endif %}
90
+ {%- endfor %}
91
+ {%- if add_generation_prompt %}
92
+ {{- '<|start_header_id|>assistant<|end_header_id|>\n\n' }}
93
+ {%- endif %}
lora_adapter/checkpoint-600/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68e8233b64bbb2bbb6466e698aff71715948a39cf01090d026f5eb94af9e408e
3
+ size 90359883
lora_adapter/checkpoint-600/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b1e5ce7a350c52ef18aceb7dce8450b476076d04fd51abbdfbe08e044226c5
3
+ size 14455
lora_adapter/checkpoint-600/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1ca53b508d23f29ccad5f68bc4d846fe67adee9f5b097e378caa6373300f6ccc
3
+ size 1465
lora_adapter/checkpoint-600/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9e4e7fb171f92fd137b777cc2714bf87d11576700a1dcd7a399e7bbe39537b
3
+ size 17209920
lora_adapter/checkpoint-600/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "bos_token": "<|begin_of_text|>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "eos_token": "<|eot_id|>",
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 131072,
13
+ "pad_token": "<|finetune_right_pad_id|>",
14
+ "padding_side": "left",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": null
17
+ }
lora_adapter/checkpoint-600/trainer_state.json ADDED
@@ -0,0 +1,656 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 2.599023331524688,
6
+ "eval_steps": 500,
7
+ "global_step": 600,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 3.268431743979454,
14
+ "epoch": 0.04340748779164406,
15
+ "grad_norm": 5.425721168518066,
16
+ "learning_rate": 3e-05,
17
+ "loss": 4.763444137573242,
18
+ "mean_token_accuracy": 0.37437669970095155,
19
+ "num_tokens": 15851.0,
20
+ "step": 10
21
+ },
22
+ {
23
+ "entropy": 3.6355564504861833,
24
+ "epoch": 0.08681497558328811,
25
+ "grad_norm": 2.6653194427490234,
26
+ "learning_rate": 6.333333333333333e-05,
27
+ "loss": 3.661287307739258,
28
+ "mean_token_accuracy": 0.4522986955940723,
29
+ "num_tokens": 31565.0,
30
+ "step": 20
31
+ },
32
+ {
33
+ "entropy": 3.110316979885101,
34
+ "epoch": 0.13022246337493218,
35
+ "grad_norm": 1.8292694091796875,
36
+ "learning_rate": 9.666666666666667e-05,
37
+ "loss": 2.4040077209472654,
38
+ "mean_token_accuracy": 0.6126278236508369,
39
+ "num_tokens": 47681.0,
40
+ "step": 30
41
+ },
42
+ {
43
+ "entropy": 1.947795458137989,
44
+ "epoch": 0.17362995116657623,
45
+ "grad_norm": 1.7558073997497559,
46
+ "learning_rate": 0.00013000000000000002,
47
+ "loss": 1.4649612426757812,
48
+ "mean_token_accuracy": 0.7671711064875126,
49
+ "num_tokens": 63639.0,
50
+ "step": 40
51
+ },
52
+ {
53
+ "entropy": 1.2642615631222724,
54
+ "epoch": 0.21703743895822028,
55
+ "grad_norm": 1.8000116348266602,
56
+ "learning_rate": 0.00016333333333333334,
57
+ "loss": 0.9385161399841309,
58
+ "mean_token_accuracy": 0.8446647509932518,
59
+ "num_tokens": 79224.0,
60
+ "step": 50
61
+ },
62
+ {
63
+ "entropy": 0.9772241789847612,
64
+ "epoch": 0.26044492674986436,
65
+ "grad_norm": 1.5789580345153809,
66
+ "learning_rate": 0.00019666666666666666,
67
+ "loss": 0.6508745193481446,
68
+ "mean_token_accuracy": 0.8930118441581726,
69
+ "num_tokens": 94825.0,
70
+ "step": 60
71
+ },
72
+ {
73
+ "entropy": 0.7386516474187375,
74
+ "epoch": 0.3038524145415084,
75
+ "grad_norm": 1.118341088294983,
76
+ "learning_rate": 0.0001999002586734068,
77
+ "loss": 0.5544538021087646,
78
+ "mean_token_accuracy": 0.9125440023839474,
79
+ "num_tokens": 110902.0,
80
+ "step": 70
81
+ },
82
+ {
83
+ "entropy": 0.4801172070205212,
84
+ "epoch": 0.34725990233315246,
85
+ "grad_norm": 1.0871493816375732,
86
+ "learning_rate": 0.00019955572927610798,
87
+ "loss": 0.32133638858795166,
88
+ "mean_token_accuracy": 0.9453130982816219,
89
+ "num_tokens": 126758.0,
90
+ "step": 80
91
+ },
92
+ {
93
+ "entropy": 0.4470752142369747,
94
+ "epoch": 0.3906673901247965,
95
+ "grad_norm": 0.9949904084205627,
96
+ "learning_rate": 0.00019896602868774615,
97
+ "loss": 0.33235070705413816,
98
+ "mean_token_accuracy": 0.9432531543076038,
99
+ "num_tokens": 142247.0,
100
+ "step": 90
101
+ },
102
+ {
103
+ "entropy": 0.43914212100207806,
104
+ "epoch": 0.43407487791644056,
105
+ "grad_norm": 1.2417030334472656,
106
+ "learning_rate": 0.00019813260913610048,
107
+ "loss": 0.32300994396209715,
108
+ "mean_token_accuracy": 0.9425150409340859,
109
+ "num_tokens": 158033.0,
110
+ "step": 100
111
+ },
112
+ {
113
+ "entropy": 0.38672009818255904,
114
+ "epoch": 0.47748236570808467,
115
+ "grad_norm": 1.4303337335586548,
116
+ "learning_rate": 0.00019705752304412648,
117
+ "loss": 0.3090308904647827,
118
+ "mean_token_accuracy": 0.9426406390964985,
119
+ "num_tokens": 173972.0,
120
+ "step": 110
121
+ },
122
+ {
123
+ "entropy": 0.2582590217702091,
124
+ "epoch": 0.5208898534997287,
125
+ "grad_norm": 0.7586016654968262,
126
+ "learning_rate": 0.00019574341797555143,
127
+ "loss": 0.16584413051605223,
128
+ "mean_token_accuracy": 0.9635460428893566,
129
+ "num_tokens": 189557.0,
130
+ "step": 120
131
+ },
132
+ {
133
+ "entropy": 0.29735598172992467,
134
+ "epoch": 0.5642973412913728,
135
+ "grad_norm": 1.3573423624038696,
136
+ "learning_rate": 0.00019419353011484387,
137
+ "loss": 0.23453230857849122,
138
+ "mean_token_accuracy": 0.9539774417877197,
139
+ "num_tokens": 205568.0,
140
+ "step": 130
141
+ },
142
+ {
143
+ "entropy": 0.3157164487987757,
144
+ "epoch": 0.6077048290830168,
145
+ "grad_norm": 0.7886211276054382,
146
+ "learning_rate": 0.00019241167629761527,
147
+ "loss": 0.24561758041381837,
148
+ "mean_token_accuracy": 0.951296404749155,
149
+ "num_tokens": 221240.0,
150
+ "step": 140
151
+ },
152
+ {
153
+ "entropy": 0.41249370062723756,
154
+ "epoch": 0.6511123168746609,
155
+ "grad_norm": 0.6835598945617676,
156
+ "learning_rate": 0.00019040224461107917,
157
+ "loss": 0.3280463695526123,
158
+ "mean_token_accuracy": 0.9425421200692654,
159
+ "num_tokens": 236889.0,
160
+ "step": 150
161
+ },
162
+ {
163
+ "entropy": 0.25797676630318167,
164
+ "epoch": 0.6945198046663049,
165
+ "grad_norm": 0.5169897675514221,
166
+ "learning_rate": 0.0001881701835877161,
167
+ "loss": 0.17580994367599487,
168
+ "mean_token_accuracy": 0.9615871131420135,
169
+ "num_tokens": 252552.0,
170
+ "step": 160
171
+ },
172
+ {
173
+ "entropy": 0.3551043555140495,
174
+ "epoch": 0.737927292457949,
175
+ "grad_norm": 0.9616410136222839,
176
+ "learning_rate": 0.0001857209900187565,
177
+ "loss": 0.3012498140335083,
178
+ "mean_token_accuracy": 0.9450895473361015,
179
+ "num_tokens": 268798.0,
180
+ "step": 170
181
+ },
182
+ {
183
+ "entropy": 0.3095861619338393,
184
+ "epoch": 0.781334780249593,
185
+ "grad_norm": 1.0524218082427979,
186
+ "learning_rate": 0.00018306069541749258,
187
+ "loss": 0.21495308876037597,
188
+ "mean_token_accuracy": 0.95635409578681,
189
+ "num_tokens": 284560.0,
190
+ "step": 180
191
+ },
192
+ {
193
+ "entropy": 0.3253756103105843,
194
+ "epoch": 0.8247422680412371,
195
+ "grad_norm": 0.44378986954689026,
196
+ "learning_rate": 0.00018019585116575555,
197
+ "loss": 0.27938573360443114,
198
+ "mean_token_accuracy": 0.9474706895649433,
199
+ "num_tokens": 300840.0,
200
+ "step": 190
201
+ },
202
+ {
203
+ "entropy": 0.2480218150652945,
204
+ "epoch": 0.8681497558328811,
205
+ "grad_norm": 0.376433789730072,
206
+ "learning_rate": 0.000177133512380137,
207
+ "loss": 0.18635139465332032,
208
+ "mean_token_accuracy": 0.9606560796499253,
209
+ "num_tokens": 316455.0,
210
+ "step": 200
211
+ },
212
+ {
213
+ "entropy": 0.26516002183780074,
214
+ "epoch": 0.9115572436245253,
215
+ "grad_norm": 0.447360634803772,
216
+ "learning_rate": 0.00017388122053768674,
217
+ "loss": 0.20903537273406983,
218
+ "mean_token_accuracy": 0.9590088307857514,
219
+ "num_tokens": 332359.0,
220
+ "step": 210
221
+ },
222
+ {
223
+ "entropy": 0.22508152723312377,
224
+ "epoch": 0.9549647314161693,
225
+ "grad_norm": 0.39458373188972473,
226
+ "learning_rate": 0.0001704469849038734,
227
+ "loss": 0.17320446968078612,
228
+ "mean_token_accuracy": 0.9621456168591976,
229
+ "num_tokens": 348219.0,
230
+ "step": 220
231
+ },
232
+ {
233
+ "entropy": 0.1884014437906444,
234
+ "epoch": 0.9983722192078134,
235
+ "grad_norm": 0.5577853918075562,
236
+ "learning_rate": 0.00016683926280854484,
237
+ "loss": 0.14232510328292847,
238
+ "mean_token_accuracy": 0.967728354781866,
239
+ "num_tokens": 363802.0,
240
+ "step": 230
241
+ },
242
+ {
243
+ "epoch": 1.0,
244
+ "eval_entropy": 0.2500555583713006,
245
+ "eval_loss": 0.2172880917787552,
246
+ "eval_mean_token_accuracy": 0.9547121439661298,
247
+ "eval_num_tokens": 364353.0,
248
+ "eval_runtime": 43.3662,
249
+ "eval_samples_per_second": 2.26,
250
+ "eval_steps_per_second": 2.26,
251
+ "step": 231
252
+ },
253
+ {
254
+ "entropy": 0.26626345694065096,
255
+ "epoch": 1.0390667390124797,
256
+ "grad_norm": 0.36867332458496094,
257
+ "learning_rate": 0.00016306693881846152,
258
+ "loss": 0.23021941184997557,
259
+ "mean_token_accuracy": 0.9587587014834086,
260
+ "num_tokens": 378571.0,
261
+ "step": 240
262
+ },
263
+ {
264
+ "entropy": 0.1791029059328139,
265
+ "epoch": 1.0824742268041236,
266
+ "grad_norm": 0.5592738389968872,
267
+ "learning_rate": 0.00015913930285769355,
268
+ "loss": 0.1204079270362854,
269
+ "mean_token_accuracy": 0.970609325170517,
270
+ "num_tokens": 394252.0,
271
+ "step": 250
272
+ },
273
+ {
274
+ "entropy": 0.25584981925785544,
275
+ "epoch": 1.1258817145957678,
276
+ "grad_norm": 0.6882627606391907,
277
+ "learning_rate": 0.00015506602732976373,
278
+ "loss": 0.182321298122406,
279
+ "mean_token_accuracy": 0.9607684284448623,
280
+ "num_tokens": 410118.0,
281
+ "step": 260
282
+ },
283
+ {
284
+ "entropy": 0.15852767862379552,
285
+ "epoch": 1.1692892023874117,
286
+ "grad_norm": 0.47175613045692444,
287
+ "learning_rate": 0.00015085714329787631,
288
+ "loss": 0.10519710779190064,
289
+ "mean_token_accuracy": 0.9718552604317665,
290
+ "num_tokens": 425967.0,
291
+ "step": 270
292
+ },
293
+ {
294
+ "entropy": 0.224250613944605,
295
+ "epoch": 1.212696690179056,
296
+ "grad_norm": 0.8211113214492798,
297
+ "learning_rate": 0.0001465230157818914,
298
+ "loss": 0.1746065378189087,
299
+ "mean_token_accuracy": 0.9628558784723282,
300
+ "num_tokens": 441911.0,
301
+ "step": 280
302
+ },
303
+ {
304
+ "entropy": 0.2187170408666134,
305
+ "epoch": 1.2561041779707,
306
+ "grad_norm": 1.2185333967208862,
307
+ "learning_rate": 0.00014207431823288057,
308
+ "loss": 0.16913924217224122,
309
+ "mean_token_accuracy": 0.9632994569838047,
310
+ "num_tokens": 457767.0,
311
+ "step": 290
312
+ },
313
+ {
314
+ "entropy": 0.15246864631772042,
315
+ "epoch": 1.299511665762344,
316
+ "grad_norm": 0.8135276436805725,
317
+ "learning_rate": 0.00013752200624812282,
318
+ "loss": 0.10427193641662598,
319
+ "mean_token_accuracy": 0.9733581781387329,
320
+ "num_tokens": 473550.0,
321
+ "step": 300
322
+ },
323
+ {
324
+ "entropy": 0.14296606807038187,
325
+ "epoch": 1.342919153553988,
326
+ "grad_norm": 0.4611963927745819,
327
+ "learning_rate": 0.00013287729059127288,
328
+ "loss": 0.11364473104476928,
329
+ "mean_token_accuracy": 0.9724942341446876,
330
+ "num_tokens": 489513.0,
331
+ "step": 310
332
+ },
333
+ {
334
+ "entropy": 0.18273791116662325,
335
+ "epoch": 1.386326641345632,
336
+ "grad_norm": 0.600029468536377,
337
+ "learning_rate": 0.00012815160958414332,
338
+ "loss": 0.14306700229644775,
339
+ "mean_token_accuracy": 0.9665566079318524,
340
+ "num_tokens": 505197.0,
341
+ "step": 320
342
+ },
343
+ {
344
+ "entropy": 0.12391844158992171,
345
+ "epoch": 1.4297341291372763,
346
+ "grad_norm": 0.35350969433784485,
347
+ "learning_rate": 0.0001233566009380896,
348
+ "loss": 0.08826681971549988,
349
+ "mean_token_accuracy": 0.9754320561885834,
350
+ "num_tokens": 520666.0,
351
+ "step": 330
352
+ },
353
+ {
354
+ "entropy": 0.14481371184810996,
355
+ "epoch": 1.4731416169289202,
356
+ "grad_norm": 0.6141801476478577,
357
+ "learning_rate": 0.0001185040730943683,
358
+ "loss": 0.11338310241699219,
359
+ "mean_token_accuracy": 0.9735137969255447,
360
+ "num_tokens": 536352.0,
361
+ "step": 340
362
+ },
363
+ {
364
+ "entropy": 0.18556677168235183,
365
+ "epoch": 1.5165491047205641,
366
+ "grad_norm": 0.8235384225845337,
367
+ "learning_rate": 0.00011360597614404662,
368
+ "loss": 0.13062334060668945,
369
+ "mean_token_accuracy": 0.9691525533795357,
370
+ "num_tokens": 551908.0,
371
+ "step": 350
372
+ },
373
+ {
374
+ "entropy": 0.19317283374257385,
375
+ "epoch": 1.5599565925122083,
376
+ "grad_norm": 0.7898983359336853,
377
+ "learning_rate": 0.00010867437239907765,
378
+ "loss": 0.13731375932693482,
379
+ "mean_token_accuracy": 0.9673447087407112,
380
+ "num_tokens": 567817.0,
381
+ "step": 360
382
+ },
383
+ {
384
+ "entropy": 0.23874589540064334,
385
+ "epoch": 1.6033640803038525,
386
+ "grad_norm": 0.37412697076797485,
387
+ "learning_rate": 0.00010372140668701483,
388
+ "loss": 0.16327574253082275,
389
+ "mean_token_accuracy": 0.9641537763178348,
390
+ "num_tokens": 583908.0,
391
+ "step": 370
392
+ },
393
+ {
394
+ "entropy": 0.11286464962176979,
395
+ "epoch": 1.6467715680954966,
396
+ "grad_norm": 0.4411953091621399,
397
+ "learning_rate": 9.875927644251854e-05,
398
+ "loss": 0.08702898025512695,
399
+ "mean_token_accuracy": 0.9771473661065102,
400
+ "num_tokens": 599617.0,
401
+ "step": 380
402
+ },
403
+ {
404
+ "entropy": 0.13296716185286642,
405
+ "epoch": 1.6901790558871406,
406
+ "grad_norm": 0.3289574086666107,
407
+ "learning_rate": 9.380020166931036e-05,
408
+ "loss": 0.11703462600708008,
409
+ "mean_token_accuracy": 0.9712080150842667,
410
+ "num_tokens": 615577.0,
411
+ "step": 390
412
+ },
413
+ {
414
+ "entropy": 0.1416403181385249,
415
+ "epoch": 1.7335865436787845,
416
+ "grad_norm": 0.571514368057251,
417
+ "learning_rate": 8.885639484654701e-05,
418
+ "loss": 0.11379531621932984,
419
+ "mean_token_accuracy": 0.9724767826497555,
420
+ "num_tokens": 631601.0,
421
+ "step": 400
422
+ },
423
+ {
424
+ "entropy": 0.11030569332651793,
425
+ "epoch": 1.7769940314704287,
426
+ "grad_norm": 0.4873872995376587,
427
+ "learning_rate": 8.394003085372496e-05,
428
+ "loss": 0.08141401410102844,
429
+ "mean_token_accuracy": 0.9770576477050781,
430
+ "num_tokens": 647297.0,
431
+ "step": 410
432
+ },
433
+ {
434
+ "entropy": 0.12415502546355128,
435
+ "epoch": 1.8204015192620728,
436
+ "grad_norm": 0.32351386547088623,
437
+ "learning_rate": 7.90632169881799e-05,
438
+ "loss": 0.08947296738624573,
439
+ "mean_token_accuracy": 0.9762426503002644,
440
+ "num_tokens": 663176.0,
441
+ "step": 420
442
+ },
443
+ {
444
+ "entropy": 0.16395117049105465,
445
+ "epoch": 1.8638090070537168,
446
+ "grad_norm": 0.34445416927337646,
447
+ "learning_rate": 7.423796314901768e-05,
448
+ "loss": 0.12568631172180175,
449
+ "mean_token_accuracy": 0.9712538823485375,
450
+ "num_tokens": 678975.0,
451
+ "step": 430
452
+ },
453
+ {
454
+ "entropy": 0.20411954806186258,
455
+ "epoch": 1.9072164948453607,
456
+ "grad_norm": 0.8611961603164673,
457
+ "learning_rate": 6.947615226090297e-05,
458
+ "loss": 0.16005014181137084,
459
+ "mean_token_accuracy": 0.9660855703055858,
460
+ "num_tokens": 694724.0,
461
+ "step": 440
462
+ },
463
+ {
464
+ "entropy": 0.1906371342483908,
465
+ "epoch": 1.9506239826370049,
466
+ "grad_norm": 0.3045775890350342,
467
+ "learning_rate": 6.478951101054225e-05,
468
+ "loss": 0.13002687692642212,
469
+ "mean_token_accuracy": 0.9707569405436516,
470
+ "num_tokens": 710764.0,
471
+ "step": 450
472
+ },
473
+ {
474
+ "entropy": 0.12089938684366644,
475
+ "epoch": 1.994031470428649,
476
+ "grad_norm": 0.8321558833122253,
477
+ "learning_rate": 6.018958096792642e-05,
478
+ "loss": 0.08647857308387756,
479
+ "mean_token_accuracy": 0.977338220179081,
480
+ "num_tokens": 726521.0,
481
+ "step": 460
482
+ },
483
+ {
484
+ "epoch": 2.0,
485
+ "eval_entropy": 0.18578565937980096,
486
+ "eval_loss": 0.15265728533267975,
487
+ "eval_mean_token_accuracy": 0.9647377492213736,
488
+ "eval_num_tokens": 728706.0,
489
+ "eval_runtime": 43.8011,
490
+ "eval_samples_per_second": 2.237,
491
+ "eval_steps_per_second": 2.237,
492
+ "step": 462
493
+ },
494
+ {
495
+ "entropy": 0.11111431792378426,
496
+ "epoch": 2.0347259902333152,
497
+ "grad_norm": 0.31517288088798523,
498
+ "learning_rate": 5.568769016345162e-05,
499
+ "loss": 0.07631215453147888,
500
+ "mean_token_accuracy": 0.9792846202850342,
501
+ "num_tokens": 741135.0,
502
+ "step": 470
503
+ },
504
+ {
505
+ "entropy": 0.12576794293709098,
506
+ "epoch": 2.0781334780249594,
507
+ "grad_norm": 0.6706956028938293,
508
+ "learning_rate": 5.129492519091414e-05,
509
+ "loss": 0.08828421831130981,
510
+ "mean_token_accuracy": 0.9774440720677375,
511
+ "num_tokens": 757149.0,
512
+ "step": 480
513
+ },
514
+ {
515
+ "entropy": 0.1652247125748545,
516
+ "epoch": 2.1215409658166036,
517
+ "grad_norm": 0.6188645362854004,
518
+ "learning_rate": 4.7022103905079403e-05,
519
+ "loss": 0.10453375577926635,
520
+ "mean_token_accuracy": 0.9749265879392623,
521
+ "num_tokens": 773043.0,
522
+ "step": 490
523
+ },
524
+ {
525
+ "entropy": 0.13389622955583036,
526
+ "epoch": 2.1649484536082473,
527
+ "grad_norm": 0.4554220736026764,
528
+ "learning_rate": 4.287974878106223e-05,
529
+ "loss": 0.0822334885597229,
530
+ "mean_token_accuracy": 0.9777384780347347,
531
+ "num_tokens": 788836.0,
532
+ "step": 500
533
+ },
534
+ {
535
+ "entropy": 0.1122925499919802,
536
+ "epoch": 2.2083559413998914,
537
+ "grad_norm": 0.3267352283000946,
538
+ "learning_rate": 3.887806100112449e-05,
539
+ "loss": 0.07709192037582398,
540
+ "mean_token_accuracy": 0.9793755315244198,
541
+ "num_tokens": 804610.0,
542
+ "step": 510
543
+ },
544
+ {
545
+ "entropy": 0.10615749745629728,
546
+ "epoch": 2.2517634291915356,
547
+ "grad_norm": 0.30847302079200745,
548
+ "learning_rate": 3.5026895332705504e-05,
549
+ "loss": 0.07118260264396667,
550
+ "mean_token_accuracy": 0.9799461409449577,
551
+ "num_tokens": 820138.0,
552
+ "step": 520
553
+ },
554
+ {
555
+ "entropy": 0.13317556893453003,
556
+ "epoch": 2.2951709169831798,
557
+ "grad_norm": 0.7525761127471924,
558
+ "learning_rate": 3.133573585955194e-05,
559
+ "loss": 0.08792675137519837,
560
+ "mean_token_accuracy": 0.9784041821956635,
561
+ "num_tokens": 835962.0,
562
+ "step": 530
563
+ },
564
+ {
565
+ "entropy": 0.15031940978951752,
566
+ "epoch": 2.3385784047748235,
567
+ "grad_norm": 0.36720001697540283,
568
+ "learning_rate": 2.7813672625712594e-05,
569
+ "loss": 0.08893920779228211,
570
+ "mean_token_accuracy": 0.9778918631374836,
571
+ "num_tokens": 852357.0,
572
+ "step": 540
573
+ },
574
+ {
575
+ "entropy": 0.12438173596747219,
576
+ "epoch": 2.3819858925664676,
577
+ "grad_norm": 0.7582745552062988,
578
+ "learning_rate": 2.4469379249916613e-05,
579
+ "loss": 0.08149291276931762,
580
+ "mean_token_accuracy": 0.9797964461147786,
581
+ "num_tokens": 868012.0,
582
+ "step": 550
583
+ },
584
+ {
585
+ "entropy": 0.1631687331944704,
586
+ "epoch": 2.425393380358112,
587
+ "grad_norm": 0.29170867800712585,
588
+ "learning_rate": 2.131109156546226e-05,
589
+ "loss": 0.10433924198150635,
590
+ "mean_token_accuracy": 0.9751808606088161,
591
+ "num_tokens": 884061.0,
592
+ "step": 560
593
+ },
594
+ {
595
+ "entropy": 0.10712425396777689,
596
+ "epoch": 2.468800868149756,
597
+ "grad_norm": 0.6179195642471313,
598
+ "learning_rate": 1.8346587338219455e-05,
599
+ "loss": 0.07671988606452942,
600
+ "mean_token_accuracy": 0.9794992141425609,
601
+ "num_tokens": 899982.0,
602
+ "step": 570
603
+ },
604
+ {
605
+ "entropy": 0.10620055091567338,
606
+ "epoch": 2.5122083559414,
607
+ "grad_norm": 0.3330930769443512,
608
+ "learning_rate": 1.5583167112693153e-05,
609
+ "loss": 0.06958608627319336,
610
+ "mean_token_accuracy": 0.981497923284769,
611
+ "num_tokens": 915669.0,
612
+ "step": 580
613
+ },
614
+ {
615
+ "entropy": 0.09565388238988817,
616
+ "epoch": 2.555615843733044,
617
+ "grad_norm": 0.3171375095844269,
618
+ "learning_rate": 1.3027636233317342e-05,
619
+ "loss": 0.06519963145256043,
620
+ "mean_token_accuracy": 0.9813847310841084,
621
+ "num_tokens": 931627.0,
622
+ "step": 590
623
+ },
624
+ {
625
+ "entropy": 0.11542923199012875,
626
+ "epoch": 2.599023331524688,
627
+ "grad_norm": 0.7167931199073792,
628
+ "learning_rate": 1.0686288085254781e-05,
629
+ "loss": 0.07995554804801941,
630
+ "mean_token_accuracy": 0.9791012987494468,
631
+ "num_tokens": 947380.0,
632
+ "step": 600
633
+ }
634
+ ],
635
+ "logging_steps": 10,
636
+ "max_steps": 693,
637
+ "num_input_tokens_seen": 0,
638
+ "num_train_epochs": 3,
639
+ "save_steps": 150,
640
+ "stateful_callbacks": {
641
+ "TrainerControl": {
642
+ "args": {
643
+ "should_epoch_stop": false,
644
+ "should_evaluate": false,
645
+ "should_log": false,
646
+ "should_save": true,
647
+ "should_training_stop": false
648
+ },
649
+ "attributes": {}
650
+ }
651
+ },
652
+ "total_flos": 5595709277061120.0,
653
+ "train_batch_size": 1,
654
+ "trial_name": null,
655
+ "trial_params": null
656
+ }
lora_adapter/checkpoint-600/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f02029ae097ac6a5686a868c70c7fb13e1a18c4978ab722ce3a1759ddbc101a
3
+ size 5713
lora_adapter/checkpoint-693/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Llama-3.2-1B-Instruct
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:unsloth/Llama-3.2-1B-Instruct
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ ---
12
+
13
+ # Model Card for Model ID
14
+
15
+ <!-- Provide a quick summary of what the model is/does. -->
16
+
17
+
18
+
19
+ ## Model Details
20
+
21
+ ### Model Description
22
+
23
+ <!-- Provide a longer summary of what this model is. -->
24
+
25
+
26
+
27
+ - **Developed by:** [More Information Needed]
28
+ - **Funded by [optional]:** [More Information Needed]
29
+ - **Shared by [optional]:** [More Information Needed]
30
+ - **Model type:** [More Information Needed]
31
+ - **Language(s) (NLP):** [More Information Needed]
32
+ - **License:** [More Information Needed]
33
+ - **Finetuned from model [optional]:** [More Information Needed]
34
+
35
+ ### Model Sources [optional]
36
+
37
+ <!-- Provide the basic links for the model. -->
38
+
39
+ - **Repository:** [More Information Needed]
40
+ - **Paper [optional]:** [More Information Needed]
41
+ - **Demo [optional]:** [More Information Needed]
42
+
43
+ ## Uses
44
+
45
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
46
+
47
+ ### Direct Use
48
+
49
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
50
+
51
+ [More Information Needed]
52
+
53
+ ### Downstream Use [optional]
54
+
55
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
56
+
57
+ [More Information Needed]
58
+
59
+ ### Out-of-Scope Use
60
+
61
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
62
+
63
+ [More Information Needed]
64
+
65
+ ## Bias, Risks, and Limitations
66
+
67
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
68
+
69
+ [More Information Needed]
70
+
71
+ ### Recommendations
72
+
73
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
74
+
75
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
76
+
77
+ ## How to Get Started with the Model
78
+
79
+ Use the code below to get started with the model.
80
+
81
+ [More Information Needed]
82
+
83
+ ## Training Details
84
+
85
+ ### Training Data
86
+
87
+ <!-- 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. -->
88
+
89
+ [More Information Needed]
90
+
91
+ ### Training Procedure
92
+
93
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
94
+
95
+ #### Preprocessing [optional]
96
+
97
+ [More Information Needed]
98
+
99
+
100
+ #### Training Hyperparameters
101
+
102
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
103
+
104
+ #### Speeds, Sizes, Times [optional]
105
+
106
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
107
+
108
+ [More Information Needed]
109
+
110
+ ## Evaluation
111
+
112
+ <!-- This section describes the evaluation protocols and provides the results. -->
113
+
114
+ ### Testing Data, Factors & Metrics
115
+
116
+ #### Testing Data
117
+
118
+ <!-- This should link to a Dataset Card if possible. -->
119
+
120
+ [More Information Needed]
121
+
122
+ #### Factors
123
+
124
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
125
+
126
+ [More Information Needed]
127
+
128
+ #### Metrics
129
+
130
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
131
+
132
+ [More Information Needed]
133
+
134
+ ### Results
135
+
136
+ [More Information Needed]
137
+
138
+ #### Summary
139
+
140
+
141
+
142
+ ## Model Examination [optional]
143
+
144
+ <!-- Relevant interpretability work for the model goes here -->
145
+
146
+ [More Information Needed]
147
+
148
+ ## Environmental Impact
149
+
150
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
151
+
152
+ 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).
153
+
154
+ - **Hardware Type:** [More Information Needed]
155
+ - **Hours used:** [More Information Needed]
156
+ - **Cloud Provider:** [More Information Needed]
157
+ - **Compute Region:** [More Information Needed]
158
+ - **Carbon Emitted:** [More Information Needed]
159
+
160
+ ## Technical Specifications [optional]
161
+
162
+ ### Model Architecture and Objective
163
+
164
+ [More Information Needed]
165
+
166
+ ### Compute Infrastructure
167
+
168
+ [More Information Needed]
169
+
170
+ #### Hardware
171
+
172
+ [More Information Needed]
173
+
174
+ #### Software
175
+
176
+ [More Information Needed]
177
+
178
+ ## Citation [optional]
179
+
180
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
181
+
182
+ **BibTeX:**
183
+
184
+ [More Information Needed]
185
+
186
+ **APA:**
187
+
188
+ [More Information Needed]
189
+
190
+ ## Glossary [optional]
191
+
192
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
193
+
194
+ [More Information Needed]
195
+
196
+ ## More Information [optional]
197
+
198
+ [More Information Needed]
199
+
200
+ ## Model Card Authors [optional]
201
+
202
+ [More Information Needed]
203
+
204
+ ## Model Card Contact
205
+
206
+ [More Information Needed]
207
+ ### Framework versions
208
+
209
+ - PEFT 0.21.0
lora_adapter/checkpoint-693/adapter_config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "unsloth/Llama-3.2-1B-Instruct",
7
+ "bias": "none",
8
+ "corda_config": null,
9
+ "ensure_weight_tying": false,
10
+ "eva_config": null,
11
+ "exclude_modules": null,
12
+ "fan_in_fan_out": false,
13
+ "inference_mode": true,
14
+ "init_lora_weights": true,
15
+ "kasa_config": null,
16
+ "layer_replication": null,
17
+ "layers_pattern": null,
18
+ "layers_to_transform": null,
19
+ "loftq_config": {},
20
+ "lora_alpha": 32,
21
+ "lora_bias": false,
22
+ "lora_dropout": 0.05,
23
+ "lora_ga_config": null,
24
+ "megatron_config": null,
25
+ "megatron_core": "megatron.core",
26
+ "modules_to_save": null,
27
+ "monteclora_config": null,
28
+ "peft_type": "LORA",
29
+ "peft_version": "0.21.0",
30
+ "qalora_group_size": 16,
31
+ "r": 16,
32
+ "rank_pattern": {},
33
+ "revision": null,
34
+ "target_modules": [
35
+ "up_proj",
36
+ "v_proj",
37
+ "q_proj",
38
+ "down_proj",
39
+ "gate_proj",
40
+ "o_proj",
41
+ "k_proj"
42
+ ],
43
+ "target_parameters": null,
44
+ "task_type": "CAUSAL_LM",
45
+ "trainable_token_indices": null,
46
+ "use_bdlora": null,
47
+ "use_dora": false,
48
+ "use_qalora": false,
49
+ "use_rslora": false,
50
+ "velora_config": null
51
+ }