close
weep
A universal prompt for Deepseek-R1.
The open-source Deepseek-R1 (available in the API as deepseek-reasoner
) has been making the rounds as a model that's cheap, smart, interesting and just a little bit deranged. This prompt aims to influence the generated reasoning to put a greater focus on general coherence of events and writing.
Requirements
The prompt now requires the NoAss extension to turn the entire context into a single user message.
- In ST go to Extensions > Install extension,
- Put in the URL
https://gitgud.io/Monblant/noass
and install it for yourself or all users (doesn't matter which if you dont use ST's multi-user functionality),
- Configure it like this.
Why?
The idea is to send the entire context as a single User message, avoiding the User / Assistant alternating which is tuned for problem solving rather than roleplay.
Setting the first block to User role makes ST turn every block below it into User as well (check the console!) This has no effect on chat history, though; NoAss is used to turn Assistant messages in chat history into User ones too.
Usage notes
- This is tested on the official Deepseek API. There are some differences between it and unofficial hosting of the same model on OpenRouter, Kluster and others. I can't accomodate for them without making accounts everywhere myself, but if you discover an issue, please let me know.
- Update to SillyTavern Staging for the Show model thoughts checkbox when using R1 via official API. Currently not available in the source Custom (OpenAI compatible), but thoughts are visible in console if you disable Streaming.
- There's no prefill in use at the moment.
- The official API ignores all sampler parameters (Temperature, Top-P etc.) Some other providers hosting the same model have temperature available.
- Have a look at the rundown (NSFW) for more details on the model.
Changelog & old versions
Reveal
v4.1
- Modified prompt to send entire context as a user message. NoAss extension required.
- Added engagement block, teaching the model to maintain narrative focus when user is engaged.
- Modified style block for more natural writing.
- Rewrote thinking block to more effectively influence reasoning.
- Removed more redundant and ineffective instructions.
- Changed all blocks to user role. This has no effect on what gets actually sent from my testing, it's just in case ST does something weird in more exotic configurations. v4.1
- Reduced context size to 16k. Arbitrary, but closer to optimal on average. v4.1
- Changed sampler settings to 0.6 temperature, 0.9 Top-P. This only has an effect on alternate APIs; Deepseek API already sets "optimal" parameters (we don't know what they are).
- Expanded writing guidelines. Stolen from anon, sorry. I'm a writelet, I just solve problems. v4.1
- Changed the list in thinking block to numbered, to emphasize the ordering. v4.1
v3.1
- Rebuilt the prompt for the new R1 release.
- Removed CoT.
- Removed some instructions that aren't needed anymore (R1 can deduce some of the simpler rules).
- Added an extra block so that history always starts with a User message (API requirement).
- Added higher level instructions for chat tempo and consistency.
- Expanded writing style block to limit purple prose.
- Added a thinking block to influence reasoning.
- Removed more needless instructions. v3.1
- Removed consistency block; now reinforced only in the thinking block. v3.1
- Add character depiction details to make it less extreme. v3.1
v2
- Added analysis block CoT to fix repetition.
- Modified final prompt section into a prefill.
- Raised Top-P to 1.0.
v1