---
title: "Discussion on \"How I Fixed Repetition Loops in an Abliterated Local LLM (Measured, Not Guessed)\" | Hashnode"
description: "Discussion on \"How I Fixed Repetition Loops in an Abliterated Local LLM (Measured, Not Guessed)\". If you run abliterated (uncensored) local models, you may have seen this: you ask for a short piece of writing, and instead of finishing, the model starts saying the same sentences again. And again. A"
url: "https://hashnode.com/posts/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed/6b00f1e727ce3ad1a1e22973"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How I Fixed Repetition Loops in an Abliterated Local LLM (Measured, Not Guessed)](https://shinkaspool.hashnode.dev/how-i-fixed-repetition-loops-in-an-abliterated-local-llm-measured-not-guessed?utm_source=hashnode&utm_medium=feed)

If you run abliterated (uncensored) local models, you may have seen this: you ask for a short piece of writing, and instead of finishing, the model starts saying the same sentences again. And again. A

Nov 21 · 7 min read · shinkaspool.hashnode.dev  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#llm](https://hashnode.com/tag/llm)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#machinelearning](https://hashnode.com/tag/machinelearning)

## Written by

[Shinka Spool Labs](https://hashnode.com/@shinkaspool)

@shinkaspool

  
[View profile](https://hashnode.com/@shinkaspool)

## Responses 1

Markdown supported · ⌘↵ to post

[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.
