# Model repeating the last word again and again

**URL:** <https://community.perplexity.ai/t/model-repeating-the-last-word-again-and-again/44>\
**Category:** Bug Reports\
**Created:** [May 15, 2025, 12:09am UTC](https://community.perplexity.ai/t/model-repeating-the-last-word-again-and-again/44 "2025-05-15T00:09:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:09am UTC](https://community.perplexity.ai/t/model-repeating-the-last-word-again-and-again/44/1 "2025-05-15T00:09:53Z")

</div>

Using `model='llama-3.1-sonar-large-128k-online',` for a functionality to deliver insights and recommendations about the most updated salaries by region and role, and recent or upcoming labour regulations. That model is 70B and have tried with and without `# frequency_penalty=0.2,`. With the ‘frequency\_penalty’ parameter, the response is perfect and does not repeat a specific word at the end. What should I do? Is the problem my instructions? Why might that be?

 ![Screenshot 2024-09-15 at 12 25 38](https://us1.discourse-cdn.com/flex001/uploads/sonar1/original/1X/903e552e510773d6d0f6d1a6646ba8e6e428121a.png)

---

<div class="post-metadata">

**Author:** ![vikvang](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vikvang](https://community.perplexity.ai/u/vikvang)\
**Post date:** [May 15, 2025, 12:09am UTC](https://community.perplexity.ai/t/model-repeating-the-last-word-again-and-again/44/2 "2025-05-15T00:09:55Z")

</div>

My recommendation is to not specify the sampling parameters such as `frequency_penalty`, our defaults are tuned for sanity to avoid this problem
