[GH-ISSUE #1819] Please include "repeat_penalty" in strata-xxx.json "sampling" section #718

Closed
opened 2026-11-04 01:45:19 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @avkwok on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1819

Hi Niko1221,
You have done a great job. The Strata is amazing.
Would you include "repeat_penalty" in strata-xxx.json "sampling" section. This option can eliminate lot of thinking loop issues.
Wish to have good response! Thanks!

Originally created by @avkwok on GitHub (Oct 10, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1819 Hi Niko1221, You have done a great job. The Strata is amazing. Would you include "repeat_penalty" in strata-xxx.json "sampling" section. This option can eliminate lot of thinking loop issues. Wish to have good response! Thanks!
Author
Owner

@Niko1221 commented on GitHub (Oct 10, 2026):

Thank you. The server already had the penalties (repetition_penalty, presence_penalty, frequency_penalty, penalty_last_n), so in v0.1.42 the config's "sampling" block also accepts llama.cpp's names, "repeat_penalty" and "repeat_last_n", and so does a request. Both are opt-in: with nothing set, output is unchanged. Example: "sampling": {"temperature": 1.0, "repeat_penalty": 1.05, "repeat_last_n": 256}. Giving both spellings of one setting in the config is an error at startup. A request that sends repeat_last_n 0 or -1 keeps the engine's default window. If a thinking loop persists, the config's "reasoning_loop_recovery" (docs/DETAILS.md) is aimed at exactly that.

<!-- gh-comment-id:6099741382 --> @Niko1221 commented on GitHub (Oct 10, 2026): Thank you. The server already had the penalties (repetition_penalty, presence_penalty, frequency_penalty, penalty_last_n), so in v0.1.42 the config's "sampling" block also accepts llama.cpp's names, "repeat_penalty" and "repeat_last_n", and so does a request. Both are opt-in: with nothing set, output is unchanged. Example: "sampling": {"temperature": 1.0, "repeat_penalty": 1.05, "repeat_last_n": 256}. Giving both spellings of one setting in the config is an error at startup. A request that sends repeat_last_n 0 or -1 keeps the engine's default window. If a thinking loop persists, the config's "reasoning_loop_recovery" (docs/DETAILS.md) is aimed at exactly that.
Author
Owner

@avkwok commented on GitHub (Oct 13, 2026):

Niko1221,Great work and thanks a lot!

<!-- gh-comment-id:6138317665 --> @avkwok commented on GitHub (Oct 13, 2026): Niko1221,Great work and thanks a lot!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#718
No description provided.