3 Ways to Resolve Character Inconsistencies
When using Tifa-Deepsex-14b-CoT in role-playing scenarios, ensuring character consistency requires optimization at three levels: input settings, parameter tuning, and post-processing:
- Setting the character background in detail: Include the character's backstory, personality traits, and behavioral guidelines explicitly in the prompt, with a suggested format of "You are a [identity], personality [description], habit [action], and are in [scene] at the moment." For example, "You are a cool vampire count who speaks elegantly but threateningly, has a habit of tapping his fingers on his wine glass, and is receiving visitors at the castle at the moment."
- Adjusting the Generation parameter: Set temperature=0.7 (to reduce randomness) and repeat_penalty=1.1 (to prevent off-topic), for GGUF format use the command:
./main -m model.gguf --temp 0.7 --repeat_penalty 1.1 -p "你的角色提示词" - Enable secure versioning: Prioritize the Tifa-Deepsex-14b-CoT-Chat version over the Crazy version, as it is trained in DPO reinforcement learning and better maintains role consistency
If deviations still occur, the output can be filtered by the front-end code:content.replace(/<think>.*?</think>/gis, '').replace(/[与角色不符的内容]/g, '')
This answer comes from the articleTifa-Deepsex-14b-CoT: a large model that specializes in roleplaying and ultra-long fiction generationThe































