LLM Knowledge Base

Frequency Penalty

Frequency Penalty is a parameter used in Generative AI models, particularly in language models, to control the repetition of generated content. It penalizes the model for repeatedly generating the same words or phrases, thereby encouraging diversity and novelty in the output. This parameter is adjustable, allowing users to balance between repetitiveness and creativity according to their specific needs.

For some models the frequency penalty can also be negative, which encourages repetition.

PROMPTMETHEUS © 2024