mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3352
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1274
Author: @victorgabr
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:feature/sampling-presets-1129📝 Commits (1)
2875571setup, serve: the model card's sampling presets, opt-in (#1129)📊 Changes
13 files changed (+682 additions, -40 deletions)
View changed files
📝
.gitignore(+1 -0)📝
docs/AI_SETUP.md(+1 -0)📝
docs/DETAILS.md(+25 -6)📝
docs/INSTALL.md(+24 -0)📝
docs/INTEL.md(+6 -1)📝
serve/runconfig.py(+39 -0)📝
serve/server.py(+37 -5)📝
serve/test_runconfig.py(+62 -1)📝
setup.py(+139 -22)📝
sycl/setup_intel.py(+12 -3)📝
tools/test_setup_config.py(+5 -2)➕
tools/test_setup_sampling.py(+248 -0)📝
tools/test_setup_sycl.py(+83 -0)📄 Description
--thinking/--instructon setup (or at the start of an installed model, like--vram-reserve-mib) writes one of the two sampling sets the Qwen3.8-Flash-Next cardrecommends into the model's strata-.json "sampling" block. A client that sends
no sampling parameters of its own then gets those numbers instead of silently decoding
greedy.
the point: traceability - the numbers in use are written down and named, instead of
an unnamed "default" the way it was
fewer doom loops blamed on the engine: a request that sent no parameters decoded
greedy (temperature=0) - the most repetition-prone setting - and nothing said so;
the thinking preset removes that when a flag asks for it, and the numbers are
visible when a loop still happens
writing the block is opt-in (per @DDK00011's review point 1): a run that names no
flag writes no block, so the default path stays greedy and byte-identical to the
last release; hand-written numbers are kept unless a flag names otherwise
the instruct set's
presence_penaltyis a no-op inside batch windows(docs/BATCHING.md, "Limits (for now)"); the
--instructhelp and INSTALL.md /DETAILS.md say so (review point 2)
a start that replaces the block keeps the file as strata-.json.bak; a no-op
start writes nothing
setup's Settings line and the server's start line print the numbers and name the
preset; a config without the block says requests decode greedily
greedy escape hatch: sampling.temperature = 0
a "sampling" that is not a set of numbers (a name, a list, a bare value) stops the
start with a message naming it; a setup run that names a flag replaces such a block
and says what it replaced, and a run that names no flag says it left it there
the Intel Arc path takes it too.
sycl/setup_intel.pyre-runs setup and thenrewrites the config for its container paths, and it carried the earlier config's
samplingback over whatever this run chose: the block setup wrote now wins, and ablock the new config does not have is still carried.
an Intel start runs its own
run-<model>.shwithos.execv, so setup'sstart()never ran there and the flags were dropped. The three writes
start()makes becomesave_start_settings(cfg_path, cfg, keep), which both call:--thinking/--instructnow reach an Intel config, and so do the #179 / #493 keys it savesanyway (
--host,--api-key,--vram-reserve-mib,--draft-vocab,--no-browser).Tests: every
tools/test_setup_*.pygreen (test_setup_sampling.py18,test_setup_sycl.py20) excepttest_setup_engine_hash.py, which fails the same wayon plain main and is fixed in #1510.
serve/unittest discover: 695 run, OK,11 skipped. No GPU, no network, no model download.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.