Downloads · 30 days
0
0% of all-time downloads
NewEden/PocketDoc_Dans-PersonalityEngine-V1.1.0-12b-exl2
PocketDoc_Dans-PersonalityEngine-V1.1.0-12b-exl2 is a text generation model from NewEden. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
11
Public
Repo size
55.7 GB
Likes
0
Public
Click a slice to open those files.
.json2.2 MB · 99%
From the Hugging Face model README
def task(): sleep(1) return 'all done'
if name == 'main':
with ThreadPool() as pool:
result = pool.apply_async(task())</pre>
<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>
<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>
<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>
<pre class="code-block">
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)</pre>
</details> <details> <summary>Writing Example</summary> <p><em>System: Take the users messages and use them as a writing prompt. Write 5 sentences.</em></p> <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> <p><strong>Assistant:</strong> "Sir, they are gone sir." The young corporal was out of breath.</p> <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> <p><strong>User:</strong> "Who?"</p> <p><strong>Assistant:</strong> He turned and looked at the corporal.</p> <p>"The bears. They left. We checked the entire perimeter. No bears to be found sir."</p> <p>"Did you check the air?"</p> <p>"Not the air, sir. We didn't see any shuttles. But we have drones out now."</p> <p><strong>User:</strong> "*Sigh*"</p> <p><strong>Assistant:</strong> "Ok, get me the status report. I need to know how many dead we have."</p> <p>"Yes sir." The corporal turned to leave.</p> <p>"Corporal…"</p> <p>"Sir?"</p> <p>"Get me a fresh cup of coffee. Black. I need the caffeine."</p> </details> <details> <summary>Text Editing Example</summary> <p><em>System: You are a professional editor with decades of experience, help the user with any task they have for you.</em></p> <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> <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> </details> <h3>Datasets</h3> <details> <summary>Breakdown</summary> <ul> <li>Memory & Core Curriculum <ul> <li>Dans-MemoryCore-CoreCurriculum-Small - Base knowledge</li> </ul> </li> <li>Military & Survival Knowledge <ul> <li>Energetic-Materials - Understanding of explosives and related chemistry</li> <li>Chemical-Biological-Safety-Applications - Safety protocols, handling procedures, etc.</li> <li>US-Army-Survival - Survival techniques and field craft</li> <li>Resistance - Resistance operations and tactics</li> <li>Interrogation - Interview and interrogation techniques</li> <li>Multi-Environment-Operations - Operations across different environments</li> </ul> </li> <li>Mathematics & Problem Solving <ul> <li>Dans-Mathmaxx - Core mathematics capabilities</li> <li>Dans-Mathmaxx-Numina-CoT - Chain of thought mathematical reasoning</li> <li>Math-Multiturn-1K-ShareGPT - Multi-turn math problem solving</li> </ul> </li> <li>Benchmarking & Testing <ul> <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> <li>Dans-Benchmaxx-COT - The same but for COT then answer based testing.</li> </ul> </li> <li>Programming & Code <ul> <li>Dans-Codemaxx-LeetCode - Programmatically produced from rosettacode</li> <li>Dans-Codemaxx-CodeFeedback - Dataset focused on correction after producing incorrect code.</li> <li>Dans-Codemaxx-Bigcode-SelfInstruct - Subset from the Bigcode SelfInstruct dataset</li> </ul> </li> <li>Task Specific Training <ul> <li>Dans-Taskmaxx - General task handling</li> <li>Dans-Taskmaxx-DataPrepper - Data preparation and cleaning</li> <li>Dans-Taskmaxx-ConcurrentQA - Multi hop retrieval based tasks</li> <li>Dans-Taskmaxx-TableGPT - Table data processing</li> <li>Dans-Taskmaxx-SciRIFF - Scientific paper analysis</li> <li>Dans-Taskmaxx-Edit - Text editing and revision</li> </ul> </li> <li>System & Tool Usage <ul> <li>Dans-Toolmaxx-Agent - Tool usage and agent behavior</li> <li>Dans-Toolmaxx-ShellCommands - Command line operations</li> <li>Dans-Toolmaxx-Functions - API and function calling</li> </ul> </li> <li>Creative & Writing <ul> <li>Dans-ASCIIMaxx-Wordart - ASCII word art creation</li> <li>Dans-Prosemaxx-Gutenberg - Summary style prompt writing instructions sourced from the Gutenberg project.</li> <li>Dans-Prosemaxx-Cowriter - Back and forth co-writing dataset sourced from human written literature</li> <li>Dans-Prosemaxx-Adventure - Interactive fiction throwbacks such as Zork, Anchorhead, and Hunting the Ripper</li> <li>Dans-Prosemaxx-WritingPrompts - Prompt based writing instructions</li> </ul> </li> <li>Assistant & Personality <ul> <li>Dans-Assistantmaxx series - Various assistant behaviors and capabilities</li> <li>Dans-Personamaxx series - Personality and character development</li> <li>Dans-Logicmaxx series - Logical reasoning and problem solving</li> </ul> </li> <li>Instruction Following <ul> <li>Dans-Systemmaxx - System message training data optimized to help the model reject bad patterns</li> </ul> </li> </ul> </details> <h3>Training</h3> <p>Full finetuned for 2 epochs on 1x H200 SXM (88 hours of training)</p> <p class="badge-container"> <a href="https://github.com/OpenAccess-AI-Collective/axolotl" target="_blank" rel="noopener noreferrer"> <img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/> </a> </p> <h3>Support Development</h3> <p>Development is limited by funding and resources. To help support:</p> <p>- Contact on HF</p> <p>- Email: [email protected]</p> <p class="coffee-container"> <a href="https://www.buymeacoffee.com/visually" target="_blank" rel="noopener noreferrer"> <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="45" width="162"> </a> </p> </div> </div> </div> </div> </div> <style> @import url('https://fonts.googleapis.com/css2?family=VT323&display=swap'); .crt-container { padding: 10px; max-width: 1000px; margin: 0 auto; width: 95%; } .crt-case { background: #e8d7c3; border-radius: 10px; padding: 15px; box-shadow: inset -2px -2px 5px rgba(0,0,0,0.3), 2px 2px 5px rgba(0,0,0,0.2); } .crt-inner-case { background: #e8d7c3; border-radius: 8px; padding: 3px; box-shadow: inset -1px -1px 4px rgba(0,0,0,0.3), 1px 1px 4px rgba(0,0,0,0.2); } .crt-bezel { background: linear-gradient(145deg, #1a1a1a, #2a2a2a); padding: 15px; border-radius: 5px; border: 3px solid #0a0a0a; position: relative; box-shadow: inset 0 0 20px rgba(0,0,0,0.5), inset 0 0 4px rgba(0,0,0,0.4), inset 2px 2px 4px rgba(255,255,255,0.05), inset -2px -2px 4px rgba(0,0,0,0.8), 0 0 2px rgba(0,0,0,0.6), -1px -1px 4px rgba(255,255,255,0.1), 1px 1px 4px rgba(0,0,0,0.3); } .crt-bezel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 40%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.2) 100%); border-radius: 3px; pointer-events: none; } .terminal-screen { background: #111112; padding: 20px; border-radius: 15px; position: relative; overflow: hidden; font-family: 'VT323', monospace; font-size: clamp(12px, 1.5vw, 16px); color: #e49b3e; line-height: 1.4; text-shadow: 0 0 2px #e49b3e; animation: flicker 0.15s infinite; filter: brightness(1.1) contrast(1.1); box-shadow: inset 0 0 30px rgba(0,0,0,0.9), inset 0 0 8px rgba(0,0,0,0.8), 0 0 5px rgba(0,0,0,0.6); max-width: 80ch; margin: 0 auto; } .terminal-screen h2, .terminal-screen h3 { font-size: clamp(16px, 2vw, 20px); margin-bottom: 1em; color: #e49b3e; } .terminal-screen pre.code-block { font-size: clamp(11px, 1.3vw, 14px); white-space: pre-wrap; margin: 1em 0; background-color: #1a1a1a; padding: 1em; border-radius: 4px; color: #e49b3e; } .terminal-screen::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4o8JoAAAAB3RSTlMAGwQIEQMYADcPzwAAACJJREFUKM9jYBgFo2AU0Beg+A8YMCLxGYZCbNQEo4BaAAD5TQiR5wU9vAAAAABJRU5ErkJggg=='); background-size: 100% 2.5px; animation: scan 1s linear infinite; pointer-events: none; z-index: 2; } .terminal-screen::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, rgba(17, 17, 18, 0) 0%, rgba(17, 17, 18, 0.2) 50%, rgba(17, 17, 18, 0.15) 100% ); border-radius: 20px; animation: vignette-pulse 3s infinite; pointer-events: none; z-index: 1; } .terminal-screen details { margin: 1em 0; padding: 0.5em; border: 1px solid #e49b3e; border-radius: 4px; } .terminal-screen summary { cursor: pointer; font-weight: bold; margin: -0.5em; padding: 0.5em; border-bottom: 1px solid #e49b3e; color: #e49b3e; } .terminal-screen details[open] summary { margin-bottom: 0.5em; } .badge-container, .coffee-container { text-align: center; margin: 1em 0; } .badge-container img, .coffee-container img { max-width: 100%; height: auto; } .terminal-screen a { color: #e49b3e; text-decoration: underline; transition: opacity 0.2s; } .terminal-screen a:hover { opacity: 0.8; } .terminal-screen strong, .terminal-screen em { color: #f0f0f0; /* off-white color for user/system messages */ } .terminal-screen p { color: #f0f0f0; /* off-white color for assistant responses */ } .terminal-screen p, .terminal-screen li { color: #e49b3e; } .terminal-screen code, .terminal-screen kbd, .terminal-screen samp { color: #e49b3e; font-family: 'VT323', monospace; text-shadow: 0 0 2px #e49b3e; background-color: #1a1a1a; padding: 0.2em 0.4em; border-radius: 4px; } .terminal-screen pre.code-block, .terminal-screen pre { font-size: clamp(11px, 1.3vw, 14px); white-space: pre-wrap; margin: 1em 0; background-color: #1a1a1a; padding: 1em; border-radius: 4px; color: #e49b3e; } @keyframes flicker { 0% { opacity: 0.98; } 50% { opacity: 1; } 100% { opacity: 0.99; } } @keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(4px); } } @keyframes vignette-pulse { 0% { opacity: 0.8; } 50% { opacity: 1; } 100% { opacity: 0.8; } } </style>