amaan784 commited on
Commit
a8a871f
·
verified ·
1 Parent(s): 24a85e1

Upload folder using huggingface_hub

Browse files
PosthogAgent/data/models/cluster_1_lora/README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ model_name: cluster_1_lora
5
+ tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-Instruct-v0.3
7
+ - lora
8
+ - sft
9
+ - transformers
10
+ - trl
11
+ licence: license
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ # Model Card for cluster_1_lora
16
+
17
+ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3).
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
+ [<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/amaan784-columbia-university/agentic-world/runs/zu49jn56)
34
+
35
+
36
+
37
+ This model was trained with SFT.
38
+
39
+ ### Framework versions
40
+
41
+ - PEFT 0.18.1
42
+ - TRL: 0.29.0
43
+ - Transformers: 5.2.0
44
+ - Pytorch: 2.10.0
45
+ - Datasets: 4.6.1
46
+ - Tokenizers: 0.22.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
+ ```
PosthogAgent/data/models/cluster_1_lora/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
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
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 64,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.0,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 32,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "k_proj",
33
+ "down_proj",
34
+ "v_proj",
35
+ "gate_proj",
36
+ "up_proj",
37
+ "q_proj",
38
+ "o_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
PosthogAgent/data/models/cluster_1_lora/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7f58ea7575f179d4b49f94e663e849bda8b19a89d645bd3ea019edc1f3ae86f
3
+ size 335604696
PosthogAgent/data/models/cluster_1_lora/chat_template.jinja ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if messages[0]["role"] == "system" %}
2
+ {%- set system_message = messages[0]["content"] %}
3
+ {%- set loop_messages = messages[1:] %}
4
+ {%- else %}
5
+ {%- set loop_messages = messages %}
6
+ {%- endif %}
7
+ {%- if not tools is defined %}
8
+ {%- set tools = none %}
9
+ {%- endif %}
10
+ {%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %}
11
+
12
+ {#- This block checks for alternating user/assistant messages, skipping tool calling messages #}
13
+ {%- set ns = namespace() %}
14
+ {%- set ns.index = 0 %}
15
+ {%- for message in loop_messages %}
16
+ {%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %}
17
+ {%- if (message["role"] == "user") != (ns.index % 2 == 0) %}
18
+ {{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }}
19
+ {%- endif %}
20
+ {%- set ns.index = ns.index + 1 %}
21
+ {%- endif %}
22
+ {%- endfor %}
23
+
24
+ {{- bos_token }}
25
+ {%- for message in loop_messages %}
26
+ {%- if message["role"] == "user" %}
27
+ {%- if tools is not none and (message == user_messages[-1]) %}
28
+ {{- "[AVAILABLE_TOOLS] [" }}
29
+ {%- for tool in tools %}
30
+ {%- set tool = tool.function %}
31
+ {{- '{"type": "function", "function": {' }}
32
+ {%- for key, val in tool.items() if key != "return" %}
33
+ {%- if val is string %}
34
+ {{- '"' + key + '": "' + val + '"' }}
35
+ {%- else %}
36
+ {{- '"' + key + '": ' + val|tojson }}
37
+ {%- endif %}
38
+ {%- if not loop.last %}
39
+ {{- ", " }}
40
+ {%- endif %}
41
+ {%- endfor %}
42
+ {{- "}}" }}
43
+ {%- if not loop.last %}
44
+ {{- ", " }}
45
+ {%- else %}
46
+ {{- "]" }}
47
+ {%- endif %}
48
+ {%- endfor %}
49
+ {{- "[/AVAILABLE_TOOLS]" }}
50
+ {%- endif %}
51
+ {%- if loop.last and system_message is defined %}
52
+ {{- "[INST] " + system_message + "\n\n" + message["content"] + "[/INST]" }}
53
+ {%- else %}
54
+ {{- "[INST] " + message["content"] + "[/INST]" }}
55
+ {%- endif %}
56
+ {%- elif message.tool_calls is defined and message.tool_calls is not none %}
57
+ {{- "[TOOL_CALLS] [" }}
58
+ {%- for tool_call in message.tool_calls %}
59
+ {%- set out = tool_call.function|tojson %}
60
+ {{- out[:-1] }}
61
+ {%- if not tool_call.id is defined or tool_call.id|length != 9 %}
62
+ {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
63
+ {%- endif %}
64
+ {{- ', "id": "' + tool_call.id + '"}' }}
65
+ {%- if not loop.last %}
66
+ {{- ", " }}
67
+ {%- else %}
68
+ {{- "]" + eos_token }}
69
+ {%- endif %}
70
+ {%- endfor %}
71
+ {%- elif message["role"] == "assistant" %}
72
+ {{- " " + message["content"]|trim + eos_token}}
73
+ {%- elif message["role"] == "tool_results" or message["role"] == "tool" %}
74
+ {%- if message.content is defined and message.content.content is defined %}
75
+ {%- set content = message.content.content %}
76
+ {%- else %}
77
+ {%- set content = message.content %}
78
+ {%- endif %}
79
+ {{- '[TOOL_RESULTS] {"content": ' + content|string + ", " }}
80
+ {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}
81
+ {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
82
+ {%- endif %}
83
+ {{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }}
84
+ {%- else %}
85
+ {{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }}
86
+ {%- endif %}
87
+ {%- endfor %}
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/README.md ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ tags:
6
+ - base_model:adapter:mistralai/Mistral-7B-Instruct-v0.3
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.18.1
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/adapter_config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alora_invocation_tokens": null,
3
+ "alpha_pattern": {},
4
+ "arrow_config": null,
5
+ "auto_mapping": null,
6
+ "base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.3",
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
+ "layer_replication": null,
16
+ "layers_pattern": null,
17
+ "layers_to_transform": null,
18
+ "loftq_config": {},
19
+ "lora_alpha": 64,
20
+ "lora_bias": false,
21
+ "lora_dropout": 0.0,
22
+ "megatron_config": null,
23
+ "megatron_core": "megatron.core",
24
+ "modules_to_save": null,
25
+ "peft_type": "LORA",
26
+ "peft_version": "0.18.1",
27
+ "qalora_group_size": 16,
28
+ "r": 32,
29
+ "rank_pattern": {},
30
+ "revision": null,
31
+ "target_modules": [
32
+ "k_proj",
33
+ "down_proj",
34
+ "v_proj",
35
+ "gate_proj",
36
+ "up_proj",
37
+ "q_proj",
38
+ "o_proj"
39
+ ],
40
+ "target_parameters": null,
41
+ "task_type": "CAUSAL_LM",
42
+ "trainable_token_indices": null,
43
+ "use_dora": false,
44
+ "use_qalora": false,
45
+ "use_rslora": false
46
+ }
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7f58ea7575f179d4b49f94e663e849bda8b19a89d645bd3ea019edc1f3ae86f
3
+ size 335604696
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/chat_template.jinja ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- if messages[0]["role"] == "system" %}
2
+ {%- set system_message = messages[0]["content"] %}
3
+ {%- set loop_messages = messages[1:] %}
4
+ {%- else %}
5
+ {%- set loop_messages = messages %}
6
+ {%- endif %}
7
+ {%- if not tools is defined %}
8
+ {%- set tools = none %}
9
+ {%- endif %}
10
+ {%- set user_messages = loop_messages | selectattr("role", "equalto", "user") | list %}
11
+
12
+ {#- This block checks for alternating user/assistant messages, skipping tool calling messages #}
13
+ {%- set ns = namespace() %}
14
+ {%- set ns.index = 0 %}
15
+ {%- for message in loop_messages %}
16
+ {%- if not (message.role == "tool" or message.role == "tool_results" or (message.tool_calls is defined and message.tool_calls is not none)) %}
17
+ {%- if (message["role"] == "user") != (ns.index % 2 == 0) %}
18
+ {{- raise_exception("After the optional system message, conversation roles must alternate user/assistant/user/assistant/...") }}
19
+ {%- endif %}
20
+ {%- set ns.index = ns.index + 1 %}
21
+ {%- endif %}
22
+ {%- endfor %}
23
+
24
+ {{- bos_token }}
25
+ {%- for message in loop_messages %}
26
+ {%- if message["role"] == "user" %}
27
+ {%- if tools is not none and (message == user_messages[-1]) %}
28
+ {{- "[AVAILABLE_TOOLS] [" }}
29
+ {%- for tool in tools %}
30
+ {%- set tool = tool.function %}
31
+ {{- '{"type": "function", "function": {' }}
32
+ {%- for key, val in tool.items() if key != "return" %}
33
+ {%- if val is string %}
34
+ {{- '"' + key + '": "' + val + '"' }}
35
+ {%- else %}
36
+ {{- '"' + key + '": ' + val|tojson }}
37
+ {%- endif %}
38
+ {%- if not loop.last %}
39
+ {{- ", " }}
40
+ {%- endif %}
41
+ {%- endfor %}
42
+ {{- "}}" }}
43
+ {%- if not loop.last %}
44
+ {{- ", " }}
45
+ {%- else %}
46
+ {{- "]" }}
47
+ {%- endif %}
48
+ {%- endfor %}
49
+ {{- "[/AVAILABLE_TOOLS]" }}
50
+ {%- endif %}
51
+ {%- if loop.last and system_message is defined %}
52
+ {{- "[INST] " + system_message + "\n\n" + message["content"] + "[/INST]" }}
53
+ {%- else %}
54
+ {{- "[INST] " + message["content"] + "[/INST]" }}
55
+ {%- endif %}
56
+ {%- elif message.tool_calls is defined and message.tool_calls is not none %}
57
+ {{- "[TOOL_CALLS] [" }}
58
+ {%- for tool_call in message.tool_calls %}
59
+ {%- set out = tool_call.function|tojson %}
60
+ {{- out[:-1] }}
61
+ {%- if not tool_call.id is defined or tool_call.id|length != 9 %}
62
+ {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
63
+ {%- endif %}
64
+ {{- ', "id": "' + tool_call.id + '"}' }}
65
+ {%- if not loop.last %}
66
+ {{- ", " }}
67
+ {%- else %}
68
+ {{- "]" + eos_token }}
69
+ {%- endif %}
70
+ {%- endfor %}
71
+ {%- elif message["role"] == "assistant" %}
72
+ {{- " " + message["content"]|trim + eos_token}}
73
+ {%- elif message["role"] == "tool_results" or message["role"] == "tool" %}
74
+ {%- if message.content is defined and message.content.content is defined %}
75
+ {%- set content = message.content.content %}
76
+ {%- else %}
77
+ {%- set content = message.content %}
78
+ {%- endif %}
79
+ {{- '[TOOL_RESULTS] {"content": ' + content|string + ", " }}
80
+ {%- if not message.tool_call_id is defined or message.tool_call_id|length != 9 %}
81
+ {{- raise_exception("Tool call IDs should be alphanumeric strings with length 9!") }}
82
+ {%- endif %}
83
+ {{- '"call_id": "' + message.tool_call_id + '"}[/TOOL_RESULTS]' }}
84
+ {%- else %}
85
+ {{- raise_exception("Only user and assistant roles are supported, with the exception of an initial optional system message!") }}
86
+ {%- endif %}
87
+ {%- endfor %}
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1cab8626a8c13c61bb53a6052febd62ab23055ca3e103dcd8ef486476ae7f550
3
+ size 671473443
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:17cd930da9783ca70bad4b9cdeee6a06c0acea8f34645a333c93341f487f66a3
3
+ size 14645
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d45e8eec5254d8ec807c973096f22e5047dcf3514b729e396607ea934d9479b
3
+ size 1465
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "legacy": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "</s>",
11
+ "sp_model_kwargs": {},
12
+ "spaces_between_special_tokens": false,
13
+ "tokenizer_class": "TokenizersBackend",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/trainer_state.json ADDED
@@ -0,0 +1,269 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_global_step": null,
3
+ "best_metric": null,
4
+ "best_model_checkpoint": null,
5
+ "epoch": 5.0,
6
+ "eval_steps": 500,
7
+ "global_step": 90,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 2.064946526288986,
14
+ "epoch": 0.2898550724637681,
15
+ "grad_norm": 6.806929588317871,
16
+ "learning_rate": 0.0001999348095389677,
17
+ "loss": 2.2583621978759765,
18
+ "mean_token_accuracy": 0.6467842936515809,
19
+ "num_tokens": 159612.0,
20
+ "step": 5
21
+ },
22
+ {
23
+ "entropy": 0.591124665737152,
24
+ "epoch": 0.5797101449275363,
25
+ "grad_norm": 0.26109248399734497,
26
+ "learning_rate": 0.00019766205557100868,
27
+ "loss": 0.6537456035614013,
28
+ "mean_token_accuracy": 0.8480004876852035,
29
+ "num_tokens": 316162.0,
30
+ "step": 10
31
+ },
32
+ {
33
+ "entropy": 0.40020936280488967,
34
+ "epoch": 0.8695652173913043,
35
+ "grad_norm": 0.21699745953083038,
36
+ "learning_rate": 0.00019221427769259333,
37
+ "loss": 0.43981084823608396,
38
+ "mean_token_accuracy": 0.8878119915723801,
39
+ "num_tokens": 473008.0,
40
+ "step": 15
41
+ },
42
+ {
43
+ "epoch": 1.0,
44
+ "eval_entropy": 0.38582224398851395,
45
+ "eval_loss": 0.35000964999198914,
46
+ "eval_mean_token_accuracy": 0.8948687613010406,
47
+ "eval_num_tokens": 541487.0,
48
+ "eval_runtime": 6.2607,
49
+ "eval_samples_per_second": 5.111,
50
+ "eval_steps_per_second": 0.639,
51
+ "step": 18
52
+ },
53
+ {
54
+ "entropy": 0.3864067231907564,
55
+ "epoch": 1.1159420289855073,
56
+ "grad_norm": 0.1347266137599945,
57
+ "learning_rate": 0.00018376858486299647,
58
+ "loss": 0.36007487773895264,
59
+ "mean_token_accuracy": 0.8958466193255257,
60
+ "num_tokens": 605121.0,
61
+ "step": 20
62
+ },
63
+ {
64
+ "entropy": 0.3705523297190666,
65
+ "epoch": 1.4057971014492754,
66
+ "grad_norm": 0.1416688859462738,
67
+ "learning_rate": 0.0001725995491923131,
68
+ "loss": 0.32240240573883056,
69
+ "mean_token_accuracy": 0.8998520106077195,
70
+ "num_tokens": 761321.0,
71
+ "step": 25
72
+ },
73
+ {
74
+ "entropy": 0.332508085668087,
75
+ "epoch": 1.6956521739130435,
76
+ "grad_norm": 0.09218495339155197,
77
+ "learning_rate": 0.0001590702795164551,
78
+ "loss": 0.2923795223236084,
79
+ "mean_token_accuracy": 0.9062400549650192,
80
+ "num_tokens": 918753.0,
81
+ "step": 30
82
+ },
83
+ {
84
+ "entropy": 0.31754949539899824,
85
+ "epoch": 1.9855072463768115,
86
+ "grad_norm": 0.0927763357758522,
87
+ "learning_rate": 0.00014362061661555675,
88
+ "loss": 0.28774323463439944,
89
+ "mean_token_accuracy": 0.9054431676864624,
90
+ "num_tokens": 1077052.0,
91
+ "step": 35
92
+ },
93
+ {
94
+ "epoch": 2.0,
95
+ "eval_entropy": 0.30885834991931915,
96
+ "eval_loss": 0.2812090516090393,
97
+ "eval_mean_token_accuracy": 0.9082985669374466,
98
+ "eval_num_tokens": 1082974.0,
99
+ "eval_runtime": 6.2474,
100
+ "eval_samples_per_second": 5.122,
101
+ "eval_steps_per_second": 0.64,
102
+ "step": 36
103
+ },
104
+ {
105
+ "entropy": 0.3044724481947282,
106
+ "epoch": 2.2318840579710146,
107
+ "grad_norm": 0.10141431540250778,
108
+ "learning_rate": 0.00012675283385292212,
109
+ "loss": 0.281050968170166,
110
+ "mean_token_accuracy": 0.9086612252628102,
111
+ "num_tokens": 1206756.0,
112
+ "step": 40
113
+ },
114
+ {
115
+ "entropy": 0.3089854046702385,
116
+ "epoch": 2.5217391304347827,
117
+ "grad_norm": 0.059645846486091614,
118
+ "learning_rate": 0.00010901530811120655,
119
+ "loss": 0.2783233165740967,
120
+ "mean_token_accuracy": 0.9090369939804077,
121
+ "num_tokens": 1363981.0,
122
+ "step": 45
123
+ },
124
+ {
125
+ "entropy": 0.29840159714221953,
126
+ "epoch": 2.8115942028985508,
127
+ "grad_norm": 0.0479370653629303,
128
+ "learning_rate": 9.098469188879349e-05,
129
+ "loss": 0.2722867250442505,
130
+ "mean_token_accuracy": 0.9118370771408081,
131
+ "num_tokens": 1523060.0,
132
+ "step": 50
133
+ },
134
+ {
135
+ "epoch": 3.0,
136
+ "eval_entropy": 0.2942015156149864,
137
+ "eval_loss": 0.27183061838150024,
138
+ "eval_mean_token_accuracy": 0.9116572588682175,
139
+ "eval_num_tokens": 1624461.0,
140
+ "eval_runtime": 6.2548,
141
+ "eval_samples_per_second": 5.116,
142
+ "eval_steps_per_second": 0.64,
143
+ "step": 54
144
+ },
145
+ {
146
+ "entropy": 0.30148569100043354,
147
+ "epoch": 3.0579710144927534,
148
+ "grad_norm": 0.06451989710330963,
149
+ "learning_rate": 7.324716614707793e-05,
150
+ "loss": 0.27319085597991943,
151
+ "mean_token_accuracy": 0.9126589298248291,
152
+ "num_tokens": 1656299.0,
153
+ "step": 55
154
+ },
155
+ {
156
+ "entropy": 0.2942150741815567,
157
+ "epoch": 3.3478260869565215,
158
+ "grad_norm": 0.061239030212163925,
159
+ "learning_rate": 5.6379383384443255e-05,
160
+ "loss": 0.2690553665161133,
161
+ "mean_token_accuracy": 0.9137291342020035,
162
+ "num_tokens": 1814171.0,
163
+ "step": 60
164
+ },
165
+ {
166
+ "entropy": 0.29443189650774004,
167
+ "epoch": 3.63768115942029,
168
+ "grad_norm": 0.047705043107271194,
169
+ "learning_rate": 4.092972048354491e-05,
170
+ "loss": 0.26580204963684084,
171
+ "mean_token_accuracy": 0.9145404130220414,
172
+ "num_tokens": 1971361.0,
173
+ "step": 65
174
+ },
175
+ {
176
+ "entropy": 0.29738335460424425,
177
+ "epoch": 3.927536231884058,
178
+ "grad_norm": 0.04782764986157417,
179
+ "learning_rate": 2.7400450807686938e-05,
180
+ "loss": 0.2684621810913086,
181
+ "mean_token_accuracy": 0.9125285893678665,
182
+ "num_tokens": 2128123.0,
183
+ "step": 70
184
+ },
185
+ {
186
+ "epoch": 4.0,
187
+ "eval_entropy": 0.2937370389699936,
188
+ "eval_loss": 0.26698678731918335,
189
+ "eval_mean_token_accuracy": 0.9135445058345795,
190
+ "eval_num_tokens": 2165948.0,
191
+ "eval_runtime": 6.2513,
192
+ "eval_samples_per_second": 5.119,
193
+ "eval_steps_per_second": 0.64,
194
+ "step": 72
195
+ },
196
+ {
197
+ "entropy": 0.29317329210393567,
198
+ "epoch": 4.173913043478261,
199
+ "grad_norm": 0.04594368860125542,
200
+ "learning_rate": 1.6231415137003537e-05,
201
+ "loss": 0.2640077114105225,
202
+ "mean_token_accuracy": 0.9161312650231754,
203
+ "num_tokens": 2261057.0,
204
+ "step": 75
205
+ },
206
+ {
207
+ "entropy": 0.2909219741821289,
208
+ "epoch": 4.463768115942029,
209
+ "grad_norm": 0.05090672895312309,
210
+ "learning_rate": 7.785722307406684e-06,
211
+ "loss": 0.25984725952148435,
212
+ "mean_token_accuracy": 0.9169878989458085,
213
+ "num_tokens": 2416224.0,
214
+ "step": 80
215
+ },
216
+ {
217
+ "entropy": 0.2909898474812508,
218
+ "epoch": 4.753623188405797,
219
+ "grad_norm": 0.043142933398485184,
220
+ "learning_rate": 2.3379444289913342e-06,
221
+ "loss": 0.2622442483901978,
222
+ "mean_token_accuracy": 0.915747606754303,
223
+ "num_tokens": 2573802.0,
224
+ "step": 85
225
+ },
226
+ {
227
+ "entropy": 0.29236104383188133,
228
+ "epoch": 5.0,
229
+ "grad_norm": 0.10205884277820587,
230
+ "learning_rate": 6.519046103230508e-08,
231
+ "loss": 0.2647502899169922,
232
+ "mean_token_accuracy": 0.9155822536524605,
233
+ "num_tokens": 2707435.0,
234
+ "step": 90
235
+ },
236
+ {
237
+ "epoch": 5.0,
238
+ "eval_entropy": 0.2886781841516495,
239
+ "eval_loss": 0.26640117168426514,
240
+ "eval_mean_token_accuracy": 0.9140467047691345,
241
+ "eval_num_tokens": 2707435.0,
242
+ "eval_runtime": 6.2483,
243
+ "eval_samples_per_second": 5.121,
244
+ "eval_steps_per_second": 0.64,
245
+ "step": 90
246
+ }
247
+ ],
248
+ "logging_steps": 5,
249
+ "max_steps": 90,
250
+ "num_input_tokens_seen": 0,
251
+ "num_train_epochs": 5,
252
+ "save_steps": 500,
253
+ "stateful_callbacks": {
254
+ "TrainerControl": {
255
+ "args": {
256
+ "should_epoch_stop": false,
257
+ "should_evaluate": false,
258
+ "should_log": false,
259
+ "should_save": true,
260
+ "should_training_stop": true
261
+ },
262
+ "attributes": {}
263
+ }
264
+ },
265
+ "total_flos": 1.1692369788063744e+17,
266
+ "train_batch_size": 4,
267
+ "trial_name": null,
268
+ "trial_params": null
269
+ }
PosthogAgent/data/models/cluster_1_lora/checkpoint-90/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67446de8c6fa0c01efc704b90c7c150d72fc88ee8a7b5e70e5793ef9f8343a44
3
+ size 5713
PosthogAgent/data/models/cluster_1_lora/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
PosthogAgent/data/models/cluster_1_lora/tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "is_local": false,
8
+ "legacy": false,
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "</s>",
11
+ "sp_model_kwargs": {},
12
+ "spaces_between_special_tokens": false,
13
+ "tokenizer_class": "TokenizersBackend",
14
+ "unk_token": "<unk>",
15
+ "use_default_system_prompt": false
16
+ }
PosthogAgent/data/models/cluster_1_lora/training_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cluster_id": 1,
3
+ "cluster_label": "Erratic Scanner",
4
+ "base_model": "mistralai/Mistral-7B-Instruct-v0.3",
5
+ "lora_rank": 32,
6
+ "lora_alpha": 64,
7
+ "epochs": 5,
8
+ "learning_rate": 0.0002,
9
+ "max_seq_length": 2048,
10
+ "train_examples": 2530,
11
+ "eval_examples": 281,
12
+ "final_train_loss": 0.42075220346450803,
13
+ "final_eval_loss": 0.26640117168426514,
14
+ "training_time_s": 843.5332,
15
+ "peak_vram_gb": 21.396484375
16
+ }