mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #694] fit_max_tokens issue, context problem with agentic coding. #323
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#323
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 @mkultra333 on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/694
I'm using Strata with Oh My Pi, context size 131072 and maxTokens in OMP set to 64000. I would run into a problem where the existing context plus the next promt size would choke. The error message from OMP is:
After some back and forth with Claude we found that this can be fixed with a setting already in Strata, change fit_max_tokens from False to True. I can't find any way to do this manually though, if I add it to my strata-iq3_xxs.json file it just gets overwritten again when I launch.
The only way I found to change it was in setup.py, find this code:
and change the last line to:
After that,
"fit_max_tokens": true,
appears in strata-iq3_xxs.json and the context problem in OMP goes away and it all works fine.
Perhaps fit_max_tokens should be true by default? Or easily set with a command line option?
@apdogod123321-ops commented on GitHub (Oct 4, 2026):
im having this problem nearly constantly too
@sruggier commented on GitHub (Oct 4, 2026):
There is a workaround: you can set
fit_max_tokens, as described in this comment.It only gets overwritten if
--setupis passed to the CLI.@Niko1221 commented on GitHub (Oct 7, 2026):
Answered: since 0.1.39 setup keeps fit_max_tokens (and the other settings listed in its keep list) when you run it again, so the value you set in the config survives --setup. Closing; please reopen with the version and config if it gets overwritten again.