mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1819] Please include "repeat_penalty" in strata-xxx.json "sampling" section #718
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#718
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@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.
@avkwok commented on GitHub (Oct 13, 2026):
Niko1221,Great work and thanks a lot!