Skip to content

feat: repetition detector for degenerate loop detection#201

Closed
Thump604 wants to merge 1 commit intowaybarrios:mainfrom
Thump604:feat/repetition-detector-v2
Closed

feat: repetition detector for degenerate loop detection#201
Thump604 wants to merge 1 commit intowaybarrios:mainfrom
Thump604:feat/repetition-detector-v2

Conversation

@Thump604
Copy link
Copy Markdown
Collaborator

Replaces #188 (rebased against current main).

Standalone module that monitors a sliding window of generated tokens and aborts generation if a pattern repeats N times. Prevents stuck loops that waste compute and produce garbage output.

Integration with CLI, engine, and server to follow in subsequent commits.

Standalone module that monitors a sliding window of generated tokens
and aborts generation if a pattern repeats N times. Prevents stuck
loops that waste compute and produce garbage output.

CLI: --repetition-detector to enable.
@Thump604
Copy link
Copy Markdown
Collaborator Author

Deferring — independent feature, will reopen when foundation PRs are merged.

@Thump604 Thump604 closed this Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant