
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
Developers want the model to reduce repetition, especially repeating phrases or words. Which inference setting helps prevent this?
A
Increase temperature
B
Enable repetition penalty (e.g., 1.2)
C
Reduce top-p
D
Reduce top-k
Explanation:
Repetition penalty is a specific inference setting designed to reduce repetitive outputs from language models. Here's why option B is correct:
A. Increase temperature - Temperature controls randomness/creativity:
C. Reduce top-p - Top-p (nucleus sampling):
D. Reduce top-k - Top-k sampling:
For reducing repetition while maintaining coherence, use a combination of: