📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is the purpose of a repetition penalty in text generation?

A. To make the model repeat key facts
B. To increase the context window
C. To discourage the model from repeating the same tokens or phrases ✅
D. To speed up training

Correct Answer: C. To discourage the model from repeating the same tokens or phrases

Explanation

A repetition penalty lowers the probability of already-used tokens, promoting variety.