Evening-Truth
Penalties
Back to LLM 101
Careful, baby... this part is not finished. Will be working on it... soon™.
The Penalties (Repetition)
info: this section is not finished yet. Gimme a little more time. 😘
Slapping the writer for repeating itself
- Repetition Penalty
- Frequency Penalty
Penalises tokens based on how often they have already been used. The more times a token has appeared so far, the more its probability score is reduced.
Your writer has to pay a fee everytime they use a word they have used before. And everytime they use it again, the fee gets higher.
Example:
The word "shadow"
The first use is free, the second use costs 0.10 credits, the third costs 0.20 credits, the fourth 0.40 credits ... and so on.
With your writer being "frugal," they will eventually decide that "shadow" is too expensive and will look for a cheaper alternative, like "gloom", "silhouette", or "darkness". They will dig deeper into their vocabulary to avoid verbatim repetition. - Presence Penalty
Penalises tokens that have already been used in the text but instead of increasing the penalty like Frequency Penalty, it only "charges" once.
Your writer has a list of words they've already used in the text. If they use a word from that list it costs one flat fee to use it again. No matter if they used it once or fifty times. So to avoid the fee the writer will more likely steer towards new topics.
This sampler doesn't care as much about "word echoes" as it cares about new ideas.
You can't deal with unfinished stuff? Me neither. Let's go back
Back to LLM 101