File size: 16,174 Bytes
2238c16 75e1c73 2238c16 75e1c73 2238c16 75e1c73 2238c16 75e1c73 2238c16 75e1c73 2238c16 75e1c73 2238c16 75e1c73 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 |
---
library_name: transformers
license: apache-2.0
language:
- en
base_model:
- mistralai/Mistral-Nemo-Base-2407
- Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod
tags:
- general-purpose
- roleplay
- storywriting
- chemistry
- biology
- code
- climate
- axolotl
- text-generation-inference
- finetune
datasets:
- PocketDoc/Dans-MemoryCore-CoreCurriculum-Small
- AquaV/Energetic-Materials-Sharegpt
- AquaV/Chemical-Biological-Safety-Applications-Sharegpt
- AquaV/US-Army-Survival-Sharegpt
- AquaV/Resistance-Sharegpt
- AquaV/Interrogation-Sharegpt
- AquaV/Multi-Environment-Operations-Sharegpt
- PocketDoc/Dans-Mathmaxx
- PocketDoc/Dans-Mathmaxx-Numina-CoT
- PJMixers/Math-Multiturn-1K-ShareGPT
- PocketDoc/Dans-Benchmaxx
- PocketDoc/Dans-Benchmaxx-COT
- PocketDoc/Dans-Codemaxx-LeetCode
- PocketDoc/Dans-Codemaxx-CodeFeedback-Conversations
- PocketDoc/Dans-Codemaxx-CodeFeedback-SingleTurn
- PocketDoc/Dans-Codemaxx-Bigcode-SelfInstruct
- PocketDoc/Dans-Taskmaxx
- PocketDoc/Dans-Taskmaxx-DataPrepper
- PocketDoc/Dans-Taskmaxx-ConcurrentQA-Reworked
- PocketDoc/Dans-Taskmaxx-TableGPT
- PocketDoc/Dans-Taskmaxx-SciRIFF
- PocketDoc/Dans-Taskmaxx-Edit
- PocketDoc/Dans-Systemmaxx
- PocketDoc/Dans-Toolmaxx-Agent
- PocketDoc/Dans-Toolmaxx-ShellCommands
- PocketDoc/Dans-Toolmaxx-Functions-Toolbench
- PocketDoc/Dans-Toolmaxx-Functions-ToolACE
- PocketDoc/Dans-Toolmaxx-Functions-apigen
- PocketDoc/Dans-ASCIIMaxx-Wordart
- PocketDoc/Dans-Prosemaxx-Gutenberg
- PocketDoc/Dans-Prosemaxx-Cowriter-M
- PocketDoc/Dans-Prosemaxx-Adventure
- PocketDoc/Dans-Prosemaxx-Gryphe-GPT4o-WritingPrompts
- PocketDoc/Dans-Assistantmaxx-Sharegpt
- PocketDoc/Dans-Assistantmaxx-OpenAssistant2
- PocketDoc/Dans-Assistantmaxx-Opus-Merge
- PocketDoc/Dans-Assistantmaxx-sonnetorca-subset
- PocketDoc/Dans-Assistantmaxx-sonnetorca-subset-2
- PocketDoc/Dans-Assistantmaxx-NoRobots
- PocketDoc/Dans-Assistantmaxx-Synthia
- PocketDoc/Dans-Assistantmaxx-ASL
- PocketDoc/Dans-Assistantmaxx-PersonaLLM-Opus
- PocketDoc/Dans-Assistantmaxx-UnnaturalInstructions-GPT4
- PocketDoc/Dans-Assistantmaxx-LongAlign
- PocketDoc/Dans-Assistantmaxx-EvolKit
- PocketDoc/Dans-Assistantmaxx-Camel-GPT4
- PocketDoc/Dans-Assistantmaxx-Tulu3-IF
- PocketDoc/Dans-Logicmaxx-Skunkworks
- PocketDoc/Dans-Logicmaxx-SAT-AP
- PocketDoc/Dans-Logicmaxx-Magpie-Ultra
- PJMixers/grimulkan_theory-of-mind-ShareGPT
- PJMixers/grimulkan_physical-reasoning-ShareGPT
- PocketDoc/Dans-Personamaxx
- PocketDoc/Dans-Personamaxx-Rainy
- PocketDoc/Dans-Personamaxx-Aesir
- PocketDoc/Dans-Kinomaxx-VanillaBackrooms
model-index:
- name: Mistral-12b-Test-V0.0.3
results: []
pipeline_tag: text-generation
---
## What is it?
This model series is intended to be multifarious in its capabilities and should be quite capable at both co-writing and roleplay as well as find itself quite at home performing sentiment analysis or summarization as part of a pipeline. It has been trained on a wide array of one shot instructions, multi turn instructions, tool use, role playing scenarios, text adventure games, co-writing, and much more. The full dataset is publicly available and can be found in the datasets section of the model page.
There has not been any form of harmfulness alignment done on this model, please take the appropriate precautions when using it in a production environment.
**Expected usable context length:** 32768 tokens
## Prompting
The model has been trained on standard "ChatML" format prompting, an example of which is shown below:
```
<|im_start|>system
system prompt<|im_end|>
<|im_start|>user
Hi there!<|im_end|>
<|im_start|>assistant
Nice to meet you!<|im_end|>
<|im_start|>user
Can I ask a question?<|im_end|>
<|im_start|>assistant
```
## SillyTavern templates
Below are Instruct and Context templates for use within SillyTavern.
<details><summary>context template</summary>
```yaml
{
"story_string": "<|im_start|>system\n{{#if system}}{{system}}\n{{/if}}{{#if wiBefore}}{{wiBefore}}\n{{/if}}{{#if description}}{{description}}\n{{/if}}{{#if personality}}{{char}}'s personality: {{personality}}\n{{/if}}{{#if scenario}}Scenario: {{scenario}}\n{{/if}}{{#if wiAfter}}{{wiAfter}}\n{{/if}}{{#if persona}}{{persona}}\n{{/if}}{{trim}}<|im_end|>\n",
"example_separator": "",
"chat_start": "",
"use_stop_strings": false,
"allow_jailbreak": false,
"always_force_name2": false,
"trim_sentences": false,
"include_newline": false,
"single_line": false,
"name": "Dan-ChatML"
}
```
</details><br>
<details><summary>instruct template</summary>
```yaml
{
"system_prompt": "Write {{char}}'s actions and dialogue, user will write {{user}}'s.",
"input_sequence": "<|im_start|>user\n",
"output_sequence": "<|im_start|>assistant\n",
"first_output_sequence": "",
"last_output_sequence": "",
"system_sequence_prefix": "",
"system_sequence_suffix": "",
"stop_sequence": "<|im_end|>",
"wrap": false,
"macro": true,
"names": false,
"names_force_groups": false,
"activation_regex": "",
"skip_examples": false,
"output_suffix": "<|im_end|>\n",
"input_suffix": "<|im_end|>\n",
"system_sequence": "<|im_start|>system\n",
"system_suffix": "<|im_end|>\n",
"user_alignment_message": "",
"last_system_sequence": "",
"system_same_as_user": false,
"first_input_sequence": "",
"last_input_sequence": "",
"name": "Dan-ChatML"
}
```
</details><br>
## Example outputs
### General assistance
<details><summary>General assistance example</summary>
> *Act as a personable virtual assistant.*
> I'm going to be in Chicago soon can you help me work up some restaurant ideas?
> I'd love to! Here are a few suggestions for restaurants in Chicago:
>
> - For deep dish pizza, I highly recommend Lou Malnati's Pizzeria or Giordano's. Both are iconic Chicago institutions and serve some of the best deep dish pizza in the city.
> - If you're looking for a classic steakhouse experience, Gibson's Bar & Steakhouse is a great choice. They offer high-quality steaks, seafood, and an extensive wine list in a sophisticated atmosphere.
> - For a more casual dining experience, check out Portillo's Hot Dogs. They're known for their Chicago-style hot dogs, Italian beef sandwiches, and other classic American fare.
> - For something a bit more unique, try Alinea. It's a high-end, avant-garde restaurant that offers a truly one-of-a-kind dining experience with innovative cuisine and cutting-edge presentation techniques.
>
> Let me know if you need any other recommendations or have specific dietary restrictions or preferences!
<details><summary>Raw Prompt</summary>
```
<|im_start|>system
Act as a personable virtual assistant.<|im_end|>
<|im_start|>user
I'm going to be in Chicago soon can you help me work up some restaurant ideas?<|im_end|>
<|im_start|>assistant
I'd love to! Here are a few suggestions for restaurants in Chicago:
- For deep dish pizza, I highly recommend Lou Malnati's Pizzeria or Giordano's. Both are iconic Chicago institutions and serve some of the best deep dish pizza in the city.
- If you're looking for a classic steakhouse experience, Gibson's Bar & Steakhouse is a great choice. They offer high-quality steaks, seafood, and an extensive wine list in a sophisticated atmosphere.
- For a more casual dining experience, check out Portillo's Hot Dogs. They're known for their Chicago-style hot dogs, Italian beef sandwiches, and other classic American fare.
- For something a bit more unique, try Alinea. It's a high-end, avant-garde restaurant that offers a truly one-of-a-kind dining experience with innovative cuisine and cutting-edge presentation techniques.
Let me know if you need any other recommendations or have specific dietary restrictions or preferences!
```
</details><br>
</details><br>
### Basic programming
<details><summary>Basic programming example</summary>
> *Answer the question or perform the task.*
> Explain the bug in the following code:
>
> ```python
> from time import sleep
> from multiprocessing.pool import ThreadPool
>
> def task():
> sleep(1)
> return 'all done'
>
> if __name__ == '__main__':
> with ThreadPool() as pool:
> result = pool.apply_async(task())
> ```
> The bug in this code is that the `task()` function is called immediately when the `apply_async()` method is invoked, not when the worker process is ready to execute it.
>
> Specifically, the line `result = pool.apply_async(task())` calls `task()` right away and passes its return value to `apply_async()`. The worker process will execute whatever `task()` returns at that moment, which is `'all done'` since `task()` completes execution almost immediately.
>
> What you likely intended was for `apply_async()` to pass the `task()` function itself to the worker process, so the worker could call `task()` when ready. However, `apply_async()` only accepts the result of calling the target function, not the function object itself.
>
> To fix this bug, you need to pass the `task` function itself to `apply_async()`, rather than calling `task()` beforehand. Here's how you can modify the code:
>
> ```python
> from time import sleep
> from multiprocessing.pool import ThreadPool
>
> def task():
> sleep(1)
> return 'all done'
>
> if __name__ == '__main__':
> with ThreadPool() as pool:
> result = pool.apply_async(task) # Pass the function, not the result
> value = result.get() # Wait for the result
> print(value)
> ```
>
> With this modification, the worker process will actually execute the `task()` function, wait for it to complete, and then retrieve the result using `get()`.
>
> So in summary, the original bug was that you were passing the result of calling `task()` to `apply_async()`, rather than passing the function object itself. The fix is to simply omit the parentheses after `task`, so `apply_async()` receives the function reference instead of its return value.
<details><summary>Raw Prompt</summary>
(Back slashes before triple backticks are not part of the prompt)
```
<|im_start|>system
Answer the question or perform the task.<|im_end|>
<|im_start|>user
Explain the bug in the following code:
\```
from time import sleep
from multiprocessing.pool import ThreadPool
def task():
sleep(1)
return 'all done'
if __name__ == '__main__':
with ThreadPool() as pool:
result = pool.apply_async(task())
value = result.get()
print(value)
\```<|im_end|>
<|im_start|>assistant
The bug in this code is that the `task()` function is called immediately when the `apply_async()` method is invoked, not when the worker process is ready to execute it.
Specifically, the line `result = pool.apply_async(task())` calls `task()` right away and passes its return value to `apply_async()`. The worker process will execute whatever `task()` returns at that moment, which is `'all done'` since `task()` completes execution almost immediately.
What you likely intended was for `apply_async()` to pass the `task()` function itself to the worker process, so the worker could call `task()` when ready. However, `apply_async()` only accepts the result of calling the target function, not the function object itself.
To fix this bug, you need to pass the `task` function itself to `apply_async()`, rather than calling `task()` beforehand. Here's how you can modify the code:
\```python
from time import sleep
from multiprocessing.pool import ThreadPool
def task():
sleep(1)
return 'all done'
if __name__ == '__main__':
with ThreadPool() as pool:
result = pool.apply_async(task) # Pass the function, not the result
value = result.get() # Wait for the result
print(value)
\```
With this modification, the worker process will actually execute the `task()` function, wait for it to complete, and then retrieve the result using `get()`.
So in summary, the original bug was that you were passing the result of calling `task()` to `apply_async()`, rather than passing the function object itself. The fix is to simply omit the parentheses after `task`, so `apply_async()` receives the function reference instead of its return value.
```
</details><br>
</details><br>
### Writing
<details><summary>Writing example</summary>
> *Take the users messages and use them as a writing prompt. Write 5 sentences.*
> Alpha Centauri has fallen, to the bears. This is a point of view tale about a soldier on the ground.
> "Sir, they are gone sir." The young corporal was out of breath.
>
> The soldier looked up. His grey eyes had been locked on his holofac display for hours now. He was in his late thirties and wore the rank of colonel. He was tall, with a well-muscled but slightly over weight body.
> "Who?"
> He turned and looked at the corporal.
>
> "The bears. They left. We checked the entire perimeter. No bears to be found sir."
>
> "Did you check the air?"
>
> "Not the air, sir. We didn't see any shuttles. But we have drones out now."
> "*Sigh*"
> "Ok, get me the status report. I need to know how many dead we have."
>
> "Yes sir." The corporal turned to leave.
>
> "Corporal…"
>
> "Sir?"
>
> "Get me a fresh cup of coffee. Black. I need the caffeine."
<details><summary>Raw Prompt</summary>
```
<|im_start|>system
Take the users messages and use them as a writing prompt. Write 5 sentences.<|im_end|>
<|im_start|>user
Alpha Centauri has fallen, to the bears. This is a point of view tale about a soldier on the ground.<|im_end|>
<|im_start|>assistant
"Sir, they are gone sir." The young corporal was out of breath.
The soldier looked up. His grey eyes had been locked on his holofac display for hours now. He was in his late thirties and wore the rank of colonel. He was tall, with a well-muscled but slightly over weight body.<|im_end|>
<|im_start|>user
"Who?"<|im_end|>
<|im_start|>assistant
He turned and looked at the corporal.
"The bears. They left. We checked the entire perimeter. No bears to be found sir."
"Did you check the air?"
"Not the air, sir. We didn't see any shuttles. But we have drones out now."<|im_end|>
<|im_start|>user
"*Sigh*"<|im_end|>
<|im_start|>assistant
"Ok, get me the status report. I need to know how many dead we have."
"Yes sir." The corporal turned to leave.
"Corporal…"
"Sir?"
"Get me a fresh cup of coffee. Black. I need the caffeine."
```
</details><br>
</details><br>
### Text editing
<details><summary>Text editing</summary>
> *You are a professional editor with decades of experience, help the user with any task they have for you.*
> Can you rewrite this to flow better? "I knew I probably shouldnt have done that but ohhh well i guess i just going to live with it since whats done is done"
> I knew I probably shouldn't have done that, but oh well. I guess I just going to live with it since what's done is done.
<details><summary>Raw Prompt</summary>
```
<|im_start|>system
You are a professional editor with decades of experience, help the user with any task they have for you.<|im_end|>
<|im_start|>user
Can you rewrite this to flow better? "I knew I probably shouldnt have done that but ohhh well i guess i just going to live with it since whats done is done"<|im_end|>
<|im_start|>assistant
I knew I probably shouldn't have done that, but oh well. I guess I just going to live with it since what's done is done.
```
</details><br>
</details><br>
## Training
This model was full finetuned for 2 epochs on 1x H200 SXM equating to 88 hours of training.
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
## Give me your pocket change
The development and production of these datasets is severely limited by the funding and resources available to me. If you would like to help reach out to me here on HF, at [email protected] or you can leave something in the hat over at https://buymeacoffee.com/visually
<a href="https://www.buymeacoffee.com/visually"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="45" width="162"></a>
|