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

Upload folder using huggingface_hub

Browse files
PosthogAgent/data/models/cluster_0_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_0_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_0_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/octffxwk)
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_0_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_0_lora/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dd893f97bcdbd75c9d27f1be68b9223b946e763f3b07d1859e68fd9d306191b
3
+ size 335604696
PosthogAgent/data/models/cluster_0_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_0_lora/checkpoint-85/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_0_lora/checkpoint-85/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_0_lora/checkpoint-85/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dd893f97bcdbd75c9d27f1be68b9223b946e763f3b07d1859e68fd9d306191b
3
+ size 335604696
PosthogAgent/data/models/cluster_0_lora/checkpoint-85/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_0_lora/checkpoint-85/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d781c9773911b562e2984b08693b71873e9eba24567a2d53a032b4ea4ed89216
3
+ size 671473443
PosthogAgent/data/models/cluster_0_lora/checkpoint-85/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_0_lora/checkpoint-85/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6a6ae75236fc6775e769748d1d9884d2915a6f97c9abf3085c78547fb15d123
3
+ size 1465
PosthogAgent/data/models/cluster_0_lora/checkpoint-85/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
PosthogAgent/data/models/cluster_0_lora/checkpoint-85/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_0_lora/checkpoint-85/trainer_state.json ADDED
@@ -0,0 +1,259 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": 85,
8
+ "is_hyper_param_search": false,
9
+ "is_local_process_zero": true,
10
+ "is_world_process_zero": true,
11
+ "log_history": [
12
+ {
13
+ "entropy": 1.8334363281726838,
14
+ "epoch": 0.29411764705882354,
15
+ "grad_norm": 1.8545987606048584,
16
+ "learning_rate": 0.000199926618105081,
17
+ "loss": 2.2091386795043944,
18
+ "mean_token_accuracy": 0.649028092622757,
19
+ "num_tokens": 155901.0,
20
+ "step": 5
21
+ },
22
+ {
23
+ "entropy": 0.5176878422498703,
24
+ "epoch": 0.5882352941176471,
25
+ "grad_norm": 0.3128144443035126,
26
+ "learning_rate": 0.00019736954238777792,
27
+ "loss": 0.6189306259155274,
28
+ "mean_token_accuracy": 0.8548313289880752,
29
+ "num_tokens": 314767.0,
30
+ "step": 10
31
+ },
32
+ {
33
+ "entropy": 0.3833584442734718,
34
+ "epoch": 0.8823529411764706,
35
+ "grad_norm": 0.22035302221775055,
36
+ "learning_rate": 0.000191250361647655,
37
+ "loss": 0.4222111701965332,
38
+ "mean_token_accuracy": 0.8876540273427963,
39
+ "num_tokens": 471502.0,
40
+ "step": 15
41
+ },
42
+ {
43
+ "epoch": 1.0,
44
+ "eval_entropy": 0.3990151807665825,
45
+ "eval_loss": 0.35258573293685913,
46
+ "eval_mean_token_accuracy": 0.8936482965946198,
47
+ "eval_num_tokens": 531236.0,
48
+ "eval_runtime": 6.1597,
49
+ "eval_samples_per_second": 5.195,
50
+ "eval_steps_per_second": 0.649,
51
+ "step": 17
52
+ },
53
+ {
54
+ "entropy": 0.39187141358852384,
55
+ "epoch": 1.1764705882352942,
56
+ "grad_norm": 0.13372336328029633,
57
+ "learning_rate": 0.00018179293607667178,
58
+ "loss": 0.3483515739440918,
59
+ "mean_token_accuracy": 0.8957118839025497,
60
+ "num_tokens": 626243.0,
61
+ "step": 20
62
+ },
63
+ {
64
+ "entropy": 0.3649876207113266,
65
+ "epoch": 1.4705882352941178,
66
+ "grad_norm": 0.13568232953548431,
67
+ "learning_rate": 0.00016934325007922417,
68
+ "loss": 0.3126405715942383,
69
+ "mean_token_accuracy": 0.9013186633586884,
70
+ "num_tokens": 783681.0,
71
+ "step": 25
72
+ },
73
+ {
74
+ "entropy": 0.3379180431365967,
75
+ "epoch": 1.7647058823529411,
76
+ "grad_norm": 0.08893899619579315,
77
+ "learning_rate": 0.00015435675500012212,
78
+ "loss": 0.2885303020477295,
79
+ "mean_token_accuracy": 0.9048597484827041,
80
+ "num_tokens": 939886.0,
81
+ "step": 30
82
+ },
83
+ {
84
+ "epoch": 2.0,
85
+ "eval_entropy": 0.3233979865908623,
86
+ "eval_loss": 0.285524845123291,
87
+ "eval_mean_token_accuracy": 0.9056155234575272,
88
+ "eval_num_tokens": 1062472.0,
89
+ "eval_runtime": 6.1561,
90
+ "eval_samples_per_second": 5.198,
91
+ "eval_steps_per_second": 0.65,
92
+ "step": 34
93
+ },
94
+ {
95
+ "entropy": 0.32396653294563293,
96
+ "epoch": 2.0588235294117645,
97
+ "grad_norm": 0.09661662578582764,
98
+ "learning_rate": 0.00013738170718407687,
99
+ "loss": 0.2859357833862305,
100
+ "mean_token_accuracy": 0.9059436947107316,
101
+ "num_tokens": 1094321.0,
102
+ "step": 35
103
+ },
104
+ {
105
+ "entropy": 0.3076239213347435,
106
+ "epoch": 2.3529411764705883,
107
+ "grad_norm": 0.07090552151203156,
108
+ "learning_rate": 0.00011903911091646684,
109
+ "loss": 0.2774367094039917,
110
+ "mean_token_accuracy": 0.9083002626895904,
111
+ "num_tokens": 1252927.0,
112
+ "step": 40
113
+ },
114
+ {
115
+ "entropy": 0.31161843091249464,
116
+ "epoch": 2.6470588235294117,
117
+ "grad_norm": 0.06575407832860947,
118
+ "learning_rate": 0.0001,
119
+ "loss": 0.2757134914398193,
120
+ "mean_token_accuracy": 0.909886708855629,
121
+ "num_tokens": 1411065.0,
122
+ "step": 45
123
+ },
124
+ {
125
+ "entropy": 0.2939224377274513,
126
+ "epoch": 2.9411764705882355,
127
+ "grad_norm": 0.07291047275066376,
128
+ "learning_rate": 8.096088908353315e-05,
129
+ "loss": 0.2671217679977417,
130
+ "mean_token_accuracy": 0.9137494266033173,
131
+ "num_tokens": 1566441.0,
132
+ "step": 50
133
+ },
134
+ {
135
+ "epoch": 3.0,
136
+ "eval_entropy": 0.3115631192922592,
137
+ "eval_loss": 0.27641046047210693,
138
+ "eval_mean_token_accuracy": 0.9095478951931,
139
+ "eval_num_tokens": 1593708.0,
140
+ "eval_runtime": 6.1474,
141
+ "eval_samples_per_second": 5.205,
142
+ "eval_steps_per_second": 0.651,
143
+ "step": 51
144
+ },
145
+ {
146
+ "entropy": 0.30940164178609847,
147
+ "epoch": 3.235294117647059,
148
+ "grad_norm": 0.06909104436635971,
149
+ "learning_rate": 6.261829281592314e-05,
150
+ "loss": 0.2742582082748413,
151
+ "mean_token_accuracy": 0.9103405773639679,
152
+ "num_tokens": 1720754.0,
153
+ "step": 55
154
+ },
155
+ {
156
+ "entropy": 0.29637852013111116,
157
+ "epoch": 3.5294117647058822,
158
+ "grad_norm": 0.05777778849005699,
159
+ "learning_rate": 4.56432449998779e-05,
160
+ "loss": 0.2619441747665405,
161
+ "mean_token_accuracy": 0.9152446120977402,
162
+ "num_tokens": 1877258.0,
163
+ "step": 60
164
+ },
165
+ {
166
+ "entropy": 0.29939648061990737,
167
+ "epoch": 3.8235294117647056,
168
+ "grad_norm": 0.0680684745311737,
169
+ "learning_rate": 3.065674992077584e-05,
170
+ "loss": 0.26411483287811277,
171
+ "mean_token_accuracy": 0.9143152892589569,
172
+ "num_tokens": 2033336.0,
173
+ "step": 65
174
+ },
175
+ {
176
+ "epoch": 4.0,
177
+ "eval_entropy": 0.2924557253718376,
178
+ "eval_loss": 0.2721189260482788,
179
+ "eval_mean_token_accuracy": 0.911041259765625,
180
+ "eval_num_tokens": 2124944.0,
181
+ "eval_runtime": 6.1524,
182
+ "eval_samples_per_second": 5.201,
183
+ "eval_steps_per_second": 0.65,
184
+ "step": 68
185
+ },
186
+ {
187
+ "entropy": 0.29475061744451525,
188
+ "epoch": 4.117647058823529,
189
+ "grad_norm": 0.05317465960979462,
190
+ "learning_rate": 1.8207063923328237e-05,
191
+ "loss": 0.2643876075744629,
192
+ "mean_token_accuracy": 0.9139553159475327,
193
+ "num_tokens": 2188076.0,
194
+ "step": 70
195
+ },
196
+ {
197
+ "entropy": 0.2941878780722618,
198
+ "epoch": 4.411764705882353,
199
+ "grad_norm": 0.0484347939491272,
200
+ "learning_rate": 8.749638352345002e-06,
201
+ "loss": 0.2619620323181152,
202
+ "mean_token_accuracy": 0.9148574978113174,
203
+ "num_tokens": 2345481.0,
204
+ "step": 75
205
+ },
206
+ {
207
+ "entropy": 0.29366316497325895,
208
+ "epoch": 4.705882352941177,
209
+ "grad_norm": 0.05014990270137787,
210
+ "learning_rate": 2.6304576122221035e-06,
211
+ "loss": 0.2590233087539673,
212
+ "mean_token_accuracy": 0.9161737859249115,
213
+ "num_tokens": 2501922.0,
214
+ "step": 80
215
+ },
216
+ {
217
+ "entropy": 0.29574155658483503,
218
+ "epoch": 5.0,
219
+ "grad_norm": 0.05177079513669014,
220
+ "learning_rate": 7.338189491900016e-08,
221
+ "loss": 0.2599493980407715,
222
+ "mean_token_accuracy": 0.916091114282608,
223
+ "num_tokens": 2656180.0,
224
+ "step": 85
225
+ },
226
+ {
227
+ "epoch": 5.0,
228
+ "eval_entropy": 0.29599621891975403,
229
+ "eval_loss": 0.27076640725135803,
230
+ "eval_mean_token_accuracy": 0.9115611612796783,
231
+ "eval_num_tokens": 2656180.0,
232
+ "eval_runtime": 6.1568,
233
+ "eval_samples_per_second": 5.198,
234
+ "eval_steps_per_second": 0.65,
235
+ "step": 85
236
+ }
237
+ ],
238
+ "logging_steps": 5,
239
+ "max_steps": 85,
240
+ "num_input_tokens_seen": 0,
241
+ "num_train_epochs": 5,
242
+ "save_steps": 500,
243
+ "stateful_callbacks": {
244
+ "TrainerControl": {
245
+ "args": {
246
+ "should_epoch_stop": false,
247
+ "should_evaluate": false,
248
+ "should_log": false,
249
+ "should_save": true,
250
+ "should_training_stop": true
251
+ },
252
+ "attributes": {}
253
+ }
254
+ },
255
+ "total_flos": 1.1471019168940032e+17,
256
+ "train_batch_size": 4,
257
+ "trial_name": null,
258
+ "trial_params": null
259
+ }
PosthogAgent/data/models/cluster_0_lora/checkpoint-85/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64bb22527a4f5c27eb109a9344cccfbcca0a6c72193206a445ba784bef97b1d1
3
+ size 5713
PosthogAgent/data/models/cluster_0_lora/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
PosthogAgent/data/models/cluster_0_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_0_lora/training_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cluster_id": 0,
3
+ "cluster_label": "Focused Speedster",
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": 2486,
11
+ "eval_examples": 276,
12
+ "final_train_loss": 0.42068530811982996,
13
+ "final_eval_loss": 0.27076640725135803,
14
+ "training_time_s": 826.985,
15
+ "peak_vram_gb": 21.318359375
16
+ }