---
title: "Comment by Ahmet Özel on \"How I Fixed Repetition Loops in an Abliterated Local LLM (Measured, Not Guessed)\" | Hashnode"
description: "Isolating why raising repeat_penalty alone failed while widening repeat_last_n from the 64-token default to 1024 dropped repeated sentences from 76 percent to 6"
url: "https://hashnode.com/posts/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed/6b00f1e727ce3ad1a1e22973/comment/6b0175dfc5931a9748b475f9"
---

[Discussion](https://hashnode.com/posts/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed/6b00f1e727ce3ad1a1e22973)

Comment [How I Fixed Repetition Loops in an Abliterated Local LLM (Measured, Not Guessed)](https://hashnode.com/posts/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed/6b00f1e727ce3ad1a1e22973)

[Ahmet Özel](https://hashnode.com/@ahmetozel)

[Nov 21](https://hashnode.com/posts/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed/6b00f1e727ce3ad1a1e22973/comment/6b0175dfc5931a9748b475f9)

Isolating why raising repeat\_penalty alone failed while widening repeat\_last\_n from the 64-token default to 1024 dropped repeated sentences from 76 percent to 6 percent is a great diagnostic finding. Sentence- and paragraph-level loops simply cycle over spans much wider than 64 tokens, so the default penalty window never sees the earlier occurrence.

Noticing that internal reasoning tokens were also consuming context before the essay even stabilized is a helpful caveat. Pushing repeat\_penalty to 1.3 can occasionally hurt structured formats like JSON or code where repeating exact keys is mandatory, so scoping that profile to prose tasks is wise.
