PocketDoc commited on
Commit
0992019
·
verified ·
1 Parent(s): 0b6cc2f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +278 -350
README.md CHANGED
@@ -3,9 +3,8 @@ library_name: transformers
3
  license: apache-2.0
4
  language:
5
  - en
6
- base_model:
7
  - mistralai/Mistral-Nemo-Base-2407
8
- - Dans-DiscountModels/Mistral-Nemo-Base-2407-ChatML-Mod
9
  tags:
10
  - general-purpose
11
  - roleplay
@@ -79,43 +78,45 @@ model-index:
79
  results: []
80
  pipeline_tag: text-generation
81
  ---
82
- <html lang="en">
83
- <head>
84
- <meta charset="UTF-8">
85
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
86
- </head>
87
- <div class="crt-container">
88
- <div class="crt-case">
89
- <div class="crt-inner-case">
90
- <div class="crt-bezel">
91
- <div class="terminal-screen">
92
- <h2>Dans-PersonalityEngine-V1.1.0-12b</h2>
93
- <p>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.</p>
94
- <h3>Key Details</h3>
95
- <pre>
96
- BASE MODEL: mistralai/Mistral-Nemo-Base-2407
97
- LICENSE: apache-2.0
98
- LANGUAGE: English
99
- CONTEXT LENGTH: 32768 tokens</pre>
100
- <h3>Recommended Settings</h3>
101
- <pre>
102
- TEMPERATURE: 1.0
103
- TOP_P: 0.95
104
- MIN_P: 0.05</pre>
105
- <h3>Prompting Format</h3>
106
- <p>The model uses standard "ChatML" format:</p>
107
- <pre>
108
  <|im_start|>system
109
  system prompt<|im_end|>
110
  <|im_start|>user
111
  Hi there!<|im_end|>
112
  <|im_start|>assistant
113
- Nice to meet you!<|im_end|></pre>
 
 
 
 
 
114
 
115
- <h3>SillyTavern Templates</h3>
116
- <details>
117
- <summary>Context Template</summary>
118
- <pre>
 
 
 
119
  {
120
  "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",
121
  "example_separator": "",
@@ -127,12 +128,13 @@ Nice to meet you!<|im_end|></pre>
127
  "include_newline": false,
128
  "single_line": false,
129
  "name": "Dan-ChatML"
130
- }</pre>
131
- </details>
132
 
133
- <details>
134
- <summary>Instruct Template</summary>
135
- <pre>
 
136
  {
137
  "system_prompt": "Write {{char}}'s actions and dialogue, user will write {{user}}'s.",
138
  "input_sequence": "<|im_start|>user\n",
@@ -158,44 +160,135 @@ Nice to meet you!<|im_end|></pre>
158
  "first_input_sequence": "",
159
  "last_input_sequence": "",
160
  "name": "Dan-ChatML"
161
- }</pre>
162
- </details>
163
 
164
- <h3>Example Outputs</h3>
165
-
166
- <details>
167
- <summary>General Assistance Example</summary>
168
- <p><em>System: Act as a personable virtual assistant.</em></p>
169
- <p><strong>User:</strong> I'm going to be in Chicago soon can you help me work up some restaurant ideas?</p>
170
- <p><strong>Assistant:</strong> I'd love to! Here are a few suggestions for restaurants in Chicago:</p>
171
- <ul>
172
- <li>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.</li>
173
- <li>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.</li>
174
- <li>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.</li>
175
- <li>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.</li>
176
- </ul>
177
- <p>Let me know if you need any other recommendations or have specific dietary restrictions or preferences!</p>
178
- </details>
179
-
180
- <details>
181
- <summary>Basic Programming Example</summary>
182
- <p><em>System: Answer the question or perform the task.</em></p>
183
- <p><strong>User:</strong> Explain the bug in the following code:</p>
184
- <pre>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  from time import sleep
186
  from multiprocessing.pool import ThreadPool
187
-
188
  def task():
189
  sleep(1)
190
  return 'all done'
191
 
192
  if __name__ == '__main__':
193
  with ThreadPool() as pool:
194
- result = pool.apply_async(task())</pre>
195
- <p><strong>Assistant:</strong> 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.</p>
196
- <p>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.</p>
197
- <p>To fix this bug, you need to pass the `task` function itself to `apply_async()`, rather than calling `task()` beforehand. Here's the corrected code:</p>
198
- <pre>
 
 
 
 
 
 
 
 
 
199
  from time import sleep
200
  from multiprocessing.pool import ThreadPool
201
 
@@ -207,286 +300,121 @@ if __name__ == '__main__':
207
  with ThreadPool() as pool:
208
  result = pool.apply_async(task) # Pass the function, not the result
209
  value = result.get() # Wait for the result
210
- print(value)</pre>
211
- </details>
212
-
213
- <details>
214
- <summary>Writing Example</summary>
215
- <p><em>System: Take the users messages and use them as a writing prompt. Write 5 sentences.</em></p>
216
- <p><strong>User:</strong> Alpha Centauri has fallen, to the bears. This is a point of view tale about a soldier on the ground.</p>
217
- <p><strong>Assistant:</strong> "Sir, they are gone sir." The young corporal was out of breath.</p>
218
- <p>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.</p>
219
- <p><strong>User:</strong> "Who?"</p>
220
- <p><strong>Assistant:</strong> He turned and looked at the corporal.</p>
221
- <p>"The bears. They left. We checked the entire perimeter. No bears to be found sir."</p>
222
- <p>"Did you check the air?"</p>
223
- <p>"Not the air, sir. We didn't see any shuttles. But we have drones out now."</p>
224
- <p><strong>User:</strong> "*Sigh*"</p>
225
- <p><strong>Assistant:</strong> "Ok, get me the status report. I need to know how many dead we have."</p>
226
- <p>"Yes sir." The corporal turned to leave.</p>
227
- <p>"Corporal…"</p>
228
- <p>"Sir?"</p>
229
- <p>"Get me a fresh cup of coffee. Black. I need the caffeine."</p>
230
- </details>
231
-
232
- <details>
233
- <summary>Text Editing Example</summary>
234
- <p><em>System: You are a professional editor with decades of experience, help the user with any task they have for you.</em></p>
235
- <p><strong>User:</strong> 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"</p>
236
- <p><strong>Assistant:</strong> 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.</p>
237
- </details>
238
-
239
- <h3>Datasets</h3>
240
-
241
- <details>
242
- <summary>Breakdown</summary>
243
- <ul>
244
- <li>Memory & Core Curriculum
245
- <ul>
246
- <li>Dans-MemoryCore-CoreCurriculum-Small - Base knowledge</li>
247
- </ul>
248
- </li>
249
- <li>Military & Survival Knowledge
250
- <ul>
251
- <li>Energetic-Materials - Understanding of explosives and related chemistry</li>
252
- <li>Chemical-Biological-Safety-Applications - Safety protocols, handling procedures, etc.</li>
253
- <li>US-Army-Survival - Survival techniques and field craft</li>
254
- <li>Resistance - Resistance operations and tactics</li>
255
- <li>Interrogation - Interview and interrogation techniques</li>
256
- <li>Multi-Environment-Operations - Operations across different environments</li>
257
- </ul>
258
- </li>
259
- <li>Mathematics & Problem Solving
260
- <ul>
261
- <li>Dans-Mathmaxx - Core mathematics capabilities</li>
262
- <li>Dans-Mathmaxx-Numina-CoT - Chain of thought mathematical reasoning</li>
263
- <li>Math-Multiturn-1K-ShareGPT - Multi-turn math problem solving</li>
264
- </ul>
265
- </li>
266
- <li>Benchmarking & Testing
267
- <ul>
268
- <li>Dans-Benchmaxx - Prepares model for "answer only" style benchmarks. Helps prevent the model from talking too much when the situation calls for it.</li>
269
- <li>Dans-Benchmaxx-COT - The same but for COT then answer based testing.</li>
270
- </ul>
271
- </li>
272
- <li>Programming & Code
273
- <ul>
274
- <li>Dans-Codemaxx-LeetCode - Programmatically produced from rosettacode</li>
275
- <li>Dans-Codemaxx-CodeFeedback - Dataset focused on correction after producing incorrect code.</li>
276
- <li>Dans-Codemaxx-Bigcode-SelfInstruct - Subset from the Bigcode SelfInstruct dataset</li>
277
- </ul>
278
- </li>
279
- <li>Task Specific Training
280
- <ul>
281
- <li>Dans-Taskmaxx - General task handling</li>
282
- <li>Dans-Taskmaxx-DataPrepper - Data preparation and cleaning</li>
283
- <li>Dans-Taskmaxx-ConcurrentQA - Multi hop retrieval based tasks</li>
284
- <li>Dans-Taskmaxx-TableGPT - Table data processing</li>
285
- <li>Dans-Taskmaxx-SciRIFF - Scientific paper analysis</li>
286
- <li>Dans-Taskmaxx-Edit - Text editing and revision</li>
287
- </ul>
288
- </li>
289
- <li>System & Tool Usage
290
- <ul>
291
- <li>Dans-Toolmaxx-Agent - Tool usage and agent behavior</li>
292
- <li>Dans-Toolmaxx-ShellCommands - Command line operations</li>
293
- <li>Dans-Toolmaxx-Functions - API and function calling</li>
294
- </ul>
295
- </li>
296
- <li>Creative & Writing
297
- <ul>
298
- <li>Dans-ASCIIMaxx-Wordart - ASCII word art creation</li>
299
- <li>Dans-Prosemaxx-Gutenberg - Summary style prompt writing instructions sourced from the Gutenberg project.</li>
300
- <li>Dans-Prosemaxx-Cowriter - Back and forth co-writing dataset sourced from human written literature</li>
301
- <li>Dans-Prosemaxx-Adventure - Interactive fiction throwbacks such as Zork, Anchorhead, and Hunting the Ripper</li>
302
- <li>Dans-Prosemaxx-WritingPrompts - Prompt based writing instructions</li>
303
- </ul>
304
- </li>
305
- <li>Assistant & Personality
306
- <ul>
307
- <li>Dans-Assistantmaxx series - Various assistant behaviors and capabilities</li>
308
- <li>Dans-Personamaxx series - Personality and character development</li>
309
- <li>Dans-Logicmaxx series - Logical reasoning and problem solving</li>
310
- </ul>
311
- </li>
312
- <li>Instruction Following
313
- <ul>
314
- <li>Dans-Systemmaxx - System message training data optimized to help the model reject bad patterns</li>
315
- </ul>
316
- </li>
317
- </ul>
318
- </details>
319
-
320
- <h3>Training</h3>
321
- <p>Full finetuned for 2 epochs on 1x H200 SXM (88 hours of training)</p>
322
- <p class="badge-container">
323
- <a href="https://github.com/OpenAccess-AI-Collective/axolotl" target="_blank" rel="noopener noreferrer">
324
- <img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>
325
- </a>
326
- </p>
327
- <h3>Support Development</h3>
328
- <p>Development is limited by funding and resources. To help support:</p>
329
- <p>- Contact on HF</p>
330
- <p>- Email: visuallyadequate@gmail.com</p>
331
- <p class="coffee-container">
332
- <a href="https://www.buymeacoffee.com/visually" target="_blank" rel="noopener noreferrer">
333
- <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="45" width="162">
334
- </a>
335
- </p>
336
- </div>
337
- </div>
338
- </div>
339
- </div>
340
- </div>
341
- <style>
342
- @import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
343
- .crt-container {
344
- padding: 10px;
345
- max-width: 1000px;
346
- margin: 0 auto;
347
- width: 95%;
348
- }
349
- .crt-case {
350
- background: #e8d7c3;
351
- border-radius: 10px;
352
- padding: 15px;
353
- box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3), 2px 2px 5px rgba(0,0,0,0.2);
354
- }
355
- .crt-inner-case {
356
- background: #e8d7c3;
357
- border-radius: 8px;
358
- padding: 3px;
359
- box-shadow: inset -1px -1px 4px rgba(0,0,0,0.3), 1px 1px 4px rgba(0,0,0,0.2);
360
- }
361
- .crt-bezel {
362
- background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
363
- padding: 15px;
364
- border-radius: 5px;
365
- border: 3px solid #0a0a0a;
366
- position: relative;
367
- box-shadow:
368
- inset 0 0 20px rgba(0,0,0,0.5),
369
- inset 0 0 4px rgba(0,0,0,0.4),
370
- inset 2px 2px 4px rgba(255,255,255,0.05),
371
- inset -2px -2px 4px rgba(0,0,0,0.8),
372
- 0 0 2px rgba(0,0,0,0.6),
373
- -1px -1px 4px rgba(255,255,255,0.1),
374
- 1px 1px 4px rgba(0,0,0,0.3);
375
- }
376
- .crt-bezel::before {
377
- content: '';
378
- position: absolute;
379
- top: 0;
380
- left: 0;
381
- right: 0;
382
- bottom: 0;
383
- background: linear-gradient(45deg,
384
- rgba(255,255,255,0.03) 0%,
385
- rgba(255,255,255,0) 40%,
386
- rgba(0,0,0,0.1) 60%,
387
- rgba(0,0,0,0.2) 100%);
388
- border-radius: 3px;
389
- pointer-events: none;
390
- }
391
- .terminal-screen {
392
- background: #111112;
393
- padding: 20px;
394
- border-radius: 15px;
395
- position: relative;
396
- overflow: hidden;
397
- font-family: 'VT323', monospace;
398
- font-size: clamp(12px, 1.5vw, 16px);
399
- color: #e49b3e;
400
- line-height: 1.4;
401
- text-shadow: 0 0 2px #e49b3e;
402
- animation: flicker 0.15s infinite;
403
- filter: brightness(1.1) contrast(1.1);
404
- box-shadow:
405
- inset 0 0 30px rgba(0,0,0,0.9),
406
- inset 0 0 8px rgba(0,0,0,0.8),
407
- 0 0 5px rgba(0,0,0,0.6);
408
- max-width: 80ch;
409
- margin: 0 auto;
410
- }
411
- .terminal-screen h2, .terminal-screen h3 {
412
- font-size: clamp(16px, 2vw, 20px);
413
- margin-bottom: 1em;
414
- }
415
- .terminal-screen pre {
416
- font-size: clamp(11px, 1.3vw, 14px);
417
- white-space: pre-wrap;
418
- margin: 1em 0;
419
- }
420
- .terminal-screen::before {
421
- content: "";
422
- position: absolute;
423
- top: 0;
424
- left: 0;
425
- right: 0;
426
- bottom: 0;
427
- background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4o8JoAAAAB3RSTlMAGwQIEQMYADcPzwAAACJJREFUKM9jYBgFo2AU0Beg+A8YMCLxGYZCbNQEo4BaAAD5TQiR5wU9vAAAAABJRU5ErkJggg==');
428
- background-size: 100% 2.5px;
429
- animation: scan 1s linear infinite;
430
- pointer-events: none;
431
- z-index: 2;
432
- }
433
- .terminal-screen::after {
434
- content: "";
435
- position: absolute;
436
- top: 0;
437
- left: 0;
438
- right: 0;
439
- bottom: 0;
440
- background: radial-gradient(circle at center, rgba(17, 17, 18, 0) 0%, rgba(17, 17, 18, 0.1) 75%, rgba(17, 17, 18, 0.4) 100%);
441
- border-radius: 20px;
442
- animation: vignette-pulse 3s infinite;
443
- pointer-events: none;
444
- z-index: 1;
445
- }
446
- .terminal-screen details {
447
- margin: 1em 0;
448
- padding: 0.5em;
449
- border: 1px solid #e49b3e;
450
- border-radius: 4px;
451
- }
452
- .terminal-screen summary {
453
- cursor: pointer;
454
- font-weight: bold;
455
- margin: -0.5em;
456
- padding: 0.5em;
457
- border-bottom: 1px solid #e49b3e;
458
- }
459
- .terminal-screen details[open] summary {
460
- margin-bottom: 0.5em;
461
- }
462
- .badge-container, .coffee-container {
463
- text-align: center;
464
- margin: 1em 0;
465
- }
466
- .badge-container img, .coffee-container img {
467
- max-width: 100%;
468
- height: auto;
469
- }
470
- .terminal-screen a {
471
- color: #e49b3e;
472
- text-decoration: underline;
473
- transition: opacity 0.2s;
474
- }
475
- .terminal-screen a:hover {
476
- opacity: 0.8;
477
- }
478
- @keyframes flicker {
479
- 0% { opacity: 0.98; }
480
- 50% { opacity: 1; }
481
- 100% { opacity: 0.99; }
482
- }
483
- @keyframes scan {
484
- 0% { transform: translateY(0); }
485
- 100% { transform: translateY(4px); }
486
- }
487
- @keyframes vignette-pulse {
488
- 0% { opacity: 0.8; }
489
- 50% { opacity: 1; }
490
- 100% { opacity: 0.8; }
491
- }
492
- </style>
 
3
  license: apache-2.0
4
  language:
5
  - en
6
+ base_model:
7
  - mistralai/Mistral-Nemo-Base-2407
 
8
  tags:
9
  - general-purpose
10
  - roleplay
 
78
  results: []
79
  pipeline_tag: text-generation
80
  ---
81
+ ## What is it?
82
+
83
+ 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.
84
+
85
+ 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.
86
+
87
+ **Expected usable context length:** 32768 tokens
88
+
89
+
90
+ ## Recommended samplers
91
+
92
+ **Temperature:** 1.0
93
+ **Top_P:** 0.95
94
+ **Min_P:** 0.05
95
+
96
+ ## Prompting
97
+
98
+ The model has been trained on standard "ChatML" format prompting, an example of which is shown below:
99
+
100
+ ```
 
 
 
 
 
 
101
  <|im_start|>system
102
  system prompt<|im_end|>
103
  <|im_start|>user
104
  Hi there!<|im_end|>
105
  <|im_start|>assistant
106
+ Nice to meet you!<|im_end|>
107
+ <|im_start|>user
108
+ Can I ask a question?<|im_end|>
109
+ <|im_start|>assistant
110
+ ```
111
+
112
 
113
+ ## SillyTavern templates
114
+
115
+ Below are Instruct and Context templates for use within SillyTavern.
116
+
117
+ <details><summary>context template</summary>
118
+
119
+ ```yaml
120
  {
121
  "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",
122
  "example_separator": "",
 
128
  "include_newline": false,
129
  "single_line": false,
130
  "name": "Dan-ChatML"
131
+ }
132
+ ```
133
 
134
+ </details><br>
135
+ <details><summary>instruct template</summary>
136
+
137
+ ```yaml
138
  {
139
  "system_prompt": "Write {{char}}'s actions and dialogue, user will write {{user}}'s.",
140
  "input_sequence": "<|im_start|>user\n",
 
160
  "first_input_sequence": "",
161
  "last_input_sequence": "",
162
  "name": "Dan-ChatML"
163
+ }
164
+ ```
165
 
166
+ </details><br>
167
+
168
+
169
+ ## Example outputs
170
+
171
+ ### General assistance
172
+
173
+ <details><summary>General assistance example</summary>
174
+
175
+ > *Act as a personable virtual assistant.*
176
+
177
+ > I'm going to be in Chicago soon can you help me work up some restaurant ideas?
178
+
179
+ > I'd love to! Here are a few suggestions for restaurants in Chicago:
180
+ >
181
+ > - 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.
182
+ > - 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.
183
+ > - 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.
184
+ > - 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.
185
+ >
186
+ > Let me know if you need any other recommendations or have specific dietary restrictions or preferences!
187
+
188
+ <details><summary>Raw Prompt</summary>
189
+
190
+ ```
191
+ <|im_start|>system
192
+ Act as a personable virtual assistant.<|im_end|>
193
+ <|im_start|>user
194
+ I'm going to be in Chicago soon can you help me work up some restaurant ideas?<|im_end|>
195
+ <|im_start|>assistant
196
+ I'd love to! Here are a few suggestions for restaurants in Chicago:
197
+
198
+ - 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.
199
+ - 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.
200
+ - 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.
201
+ - 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.
202
+
203
+ Let me know if you need any other recommendations or have specific dietary restrictions or preferences!
204
+ ```
205
+
206
+ </details><br>
207
+ </details><br>
208
+
209
+ ### Basic programming
210
+
211
+ <details><summary>Basic programming example</summary>
212
+
213
+ > *Answer the question or perform the task.*
214
+
215
+ > Explain the bug in the following code:
216
+ >
217
+ > ```python
218
+ > from time import sleep
219
+ > from multiprocessing.pool import ThreadPool
220
+ >
221
+ > def task():
222
+ > sleep(1)
223
+ > return 'all done'
224
+ >
225
+ > if __name__ == '__main__':
226
+ > with ThreadPool() as pool:
227
+ > result = pool.apply_async(task())
228
+ > ```
229
+
230
+ > 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.
231
+ >
232
+ > 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.
233
+ >
234
+ > 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.
235
+ >
236
+ > 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:
237
+ >
238
+ > ```python
239
+ > from time import sleep
240
+ > from multiprocessing.pool import ThreadPool
241
+ >
242
+ > def task():
243
+ > sleep(1)
244
+ > return 'all done'
245
+ >
246
+ > if __name__ == '__main__':
247
+ > with ThreadPool() as pool:
248
+ > result = pool.apply_async(task) # Pass the function, not the result
249
+ > value = result.get() # Wait for the result
250
+ > print(value)
251
+ > ```
252
+ >
253
+ > With this modification, the worker process will actually execute the `task()` function, wait for it to complete, and then retrieve the result using `get()`.
254
+ >
255
+ > 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.
256
+
257
+
258
+ <details><summary>Raw Prompt</summary>
259
+
260
+ (Back slashes before triple backticks are not part of the prompt)
261
+
262
+ ```
263
+ <|im_start|>system
264
+ Answer the question or perform the task.<|im_end|>
265
+ <|im_start|>user
266
+ Explain the bug in the following code:
267
+
268
+ \```
269
  from time import sleep
270
  from multiprocessing.pool import ThreadPool
271
+
272
  def task():
273
  sleep(1)
274
  return 'all done'
275
 
276
  if __name__ == '__main__':
277
  with ThreadPool() as pool:
278
+ result = pool.apply_async(task())
279
+ value = result.get()
280
+ print(value)
281
+ \```<|im_end|>
282
+ <|im_start|>assistant
283
+ 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.
284
+
285
+ 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.
286
+
287
+ 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.
288
+
289
+ 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:
290
+
291
+ \```python
292
  from time import sleep
293
  from multiprocessing.pool import ThreadPool
294
 
 
300
  with ThreadPool() as pool:
301
  result = pool.apply_async(task) # Pass the function, not the result
302
  value = result.get() # Wait for the result
303
+ print(value)
304
+ \```
305
+
306
+ With this modification, the worker process will actually execute the `task()` function, wait for it to complete, and then retrieve the result using `get()`.
307
+
308
+ 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.
309
+ ```
310
+
311
+ </details><br>
312
+
313
+ </details><br>
314
+
315
+ ### Writing
316
+
317
+ <details><summary>Writing example</summary>
318
+
319
+ > *Take the users messages and use them as a writing prompt. Write 5 sentences.*
320
+
321
+ > Alpha Centauri has fallen, to the bears. This is a point of view tale about a soldier on the ground.
322
+
323
+ > "Sir, they are gone sir." The young corporal was out of breath.
324
+ >
325
+ > 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.
326
+
327
+ > "Who?"
328
+
329
+ > He turned and looked at the corporal.
330
+ >
331
+ > "The bears. They left. We checked the entire perimeter. No bears to be found sir."
332
+ >
333
+ > "Did you check the air?"
334
+ >
335
+ > "Not the air, sir. We didn't see any shuttles. But we have drones out now."
336
+
337
+ > "*Sigh*"
338
+
339
+ > "Ok, get me the status report. I need to know how many dead we have."
340
+ >
341
+ > "Yes sir." The corporal turned to leave.
342
+ >
343
+ > "Corporal…"
344
+ >
345
+ > "Sir?"
346
+ >
347
+ > "Get me a fresh cup of coffee. Black. I need the caffeine."
348
+
349
+ <details><summary>Raw Prompt</summary>
350
+
351
+ ```
352
+ <|im_start|>system
353
+ Take the users messages and use them as a writing prompt. Write 5 sentences.<|im_end|>
354
+ <|im_start|>user
355
+ Alpha Centauri has fallen, to the bears. This is a point of view tale about a soldier on the ground.<|im_end|>
356
+ <|im_start|>assistant
357
+ "Sir, they are gone sir." The young corporal was out of breath.
358
+
359
+ 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|>
360
+ <|im_start|>user
361
+ "Who?"<|im_end|>
362
+ <|im_start|>assistant
363
+ He turned and looked at the corporal.
364
+
365
+ "The bears. They left. We checked the entire perimeter. No bears to be found sir."
366
+
367
+ "Did you check the air?"
368
+
369
+ "Not the air, sir. We didn't see any shuttles. But we have drones out now."<|im_end|>
370
+ <|im_start|>user
371
+ "*Sigh*"<|im_end|>
372
+ <|im_start|>assistant
373
+ "Ok, get me the status report. I need to know how many dead we have."
374
+
375
+ "Yes sir." The corporal turned to leave.
376
+
377
+ "Corporal…"
378
+
379
+ "Sir?"
380
+
381
+ "Get me a fresh cup of coffee. Black. I need the caffeine."
382
+ ```
383
+
384
+ </details><br>
385
+ </details><br>
386
+
387
+ ### Text editing
388
+
389
+ <details><summary>Text editing</summary>
390
+
391
+ > *You are a professional editor with decades of experience, help the user with any task they have for you.*
392
+
393
+ > 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"
394
+
395
+ > 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.
396
+
397
+ <details><summary>Raw Prompt</summary>
398
+
399
+ ```
400
+ <|im_start|>system
401
+ You are a professional editor with decades of experience, help the user with any task they have for you.<|im_end|>
402
+ <|im_start|>user
403
+ 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|>
404
+ <|im_start|>assistant
405
+ 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.
406
+ ```
407
+
408
+ </details><br>
409
+ </details><br>
410
+
411
+ ## Training
412
+
413
+ This model was full finetuned for 2 epochs on 1x H200 SXM equating to 88 hours of training.
414
+
415
+ [<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)
416
+
417
+ ## Give me your pocket change
418
+ 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 visuallyadequate@gmail.com or you can leave something in the hat over at https://buymeacoffee.com/visually
419
+
420
+ <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>