this post was submitted on 14 Nov 2023
1 points (100.0% liked)
LocalLLaMA
3 readers
1 users here now
Community to discuss about Llama, the family of large language models created by Meta AI.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
For 1 and 2, apply grammar sampling to force LLM to start all his sentences with:
:
This will "force" the LLM to write dialogue as the specified character. Won't work 100% of the times, but will become a very rare event.
I use a custom front-end and append the character name / colon to the end of all my prompts to force this, I wonder if grammar sampling would be better. Don't really have my head around grammar sampling yet.