<< Home | Prompting craft
Run roleplay beyond 40 messages without text repetition
| Area | Prompting craft |
| AI used | Any |
| Source | Reddit thread |
| Posted | 2025-08-10 |
The move
Configure DRY sampler settings and disable conflicting samplers to eliminate persistent repetition in long roleplay.| When this works | When it doesn't |
|---|---|
| When local model roleplays exceed 40 messages and begin repeating phrases or looping text. Works when lower temperatures or misconfigured samplers initiate repetition. | When heavy penalizing samplers degrade the writing style, diminish coherence, or cause the model to lose intelligence. |
Key details
- DRY sampler (multiplier 0.8, base 1.75, length 4, range 4096)
- Temperature 1.05
- MinP 0.05
- XTC sampler
Prompt for your AI
To maintain coherence and eliminate repetitive phrases in long roleplay sessions exceeding 40 messages, apply the following sampler configuration rules:
1. Temperature: Set temperature as high as possible while maintaining output coherence, ideally at 1.05. Avoid lower temperatures because they increase repeated phrases.
2. Truncating Samplers: Use truncating samplers like top-P (or top-K / top-nsigma) to filter out irrelevant tokens. Alternatively, set Minimum Probability (MinP) to 0.05 or disable low min-p settings entirely to prevent repetition loops.
3. DRY Sampler: Enable DRY to directly combat persistent token repetition. Use a multiplier of 0.8, a base of 1.75, a length of 4, and a range of 4096. Use carefully, as over-penalizing can impact writing style, coherence, and intelligence.
4. Additional Strategies: Consider exploring XTC to decrease repetition indirectly if persistent issues remain.
5. Other Samplers: Turn off all other samplers to avoid conflicts. Note that some interfaces require setting off to 1 while others require 0.
If repetition persists before incoherence arises, adjust DRY parameters or explore XTC. If output becomes incoherent or writing style degrades, lower DRY penalties or reset samplers to neutral defaults.
Before you give me the final result, check with me:
- Verify temperature is set high (ideally 1.05) and not reduced.
- Confirm DRY is set to multiplier 0.8, base 1.75, length 4, and range 4096.
- Check that MinP is set to 0.05 or disabled rather than set to a low non-zero value.
- Ensure all other samplers are turned off according to your interface's syntax (0 or 1).
What happened
A user on r/LocalLLaMA asked how to extend roleplay beyond 40 messages without repetition. Commenters advised raising temperature to 1.05, setting MinP to 0.05, and turning on DRY (multiplier 0.8, base 1.75, length 4, range 4096) while disabling extra samplers. This configuration stopped persistent token loops while keeping the output coherent.Who confirmed it
DRY can effectively reduce repetition in most models.Give it to your agent
Read https://howtheyuse.ai/p/reduce-model-repetition-during-long-roleplay-sessions.md and help me do this.