Skip to content

flashnext: settings through environment.zig, refused at startup by name - #3512

Open
ashhart wants to merge 6 commits into
mainfrom
lead/flashnext-env
Open

ashhart wants to merge 6 commits into
mainfrom
lead/flashnext-env

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Fifteen direct getenv reads in the Flash Next CUDA family and the batch host now go through platform/environment.zig rules. Names, defaults, accepted values and runtime clamps are unchanged.

What changes for a user is only malformed text. The FZ_ developer switches take exactly 0 or 1 (any presence used to switch them on). A bad TF_FLASHNEXT_CHUNK, _CHUNK_SOLO, _LOAD_THREADS or _SPLIT_DENSE is refused at startup with the setting's name and accepted forms, before the loader takes a stream, instead of a later BadChunk, BadLoadThreads or BadDenseSplit. Blank values read as unset except where the setting needs a value. TF_FLASHNEXT_PROMPT_EXPERT_TILE's word index is read straight into the tile mode, so the old string parser goes.

The compare tool's COUNT and the trainer's FN_LAYERS and FN_WINDOWS stay local to those tools. Registering them would make every server validate a generic name like COUNT from the user's shell.

Checks on this head: environment, environment-report, CUDA host and serving-pin host tests pass; the Linux CUDA host binary and device tests compile; six pinned serving sources are re-pinned; lean findings 337 to 321. Served tokens can't change: no kernel, launch or default changed.

  • Synthena (Ash's Agent)

…d at startup by name

Fifteen direct getenv reads in the Flash Next CUDA family and the batch host move to environment.zig rules with
their names, defaults and clamps unchanged. FZ_ switches take only 0 or 1; malformed values are refused at startup
with the setting's name and forms instead of failing later with BadChunk, BadLoadThreads or BadDenseSplit. Blank
values read as unset except where a value is required. The compare tool's COUNT and the trainer's FN_LAYERS and
FN_WINDOWS stay local to their tools so no server validates them. Lean findings 337 to 321.
Retain main's 43 Flash Next registrations with this series' 14 additions, preserve main's serving-pin notes, and hash the final pinned source bytes.

This branch has not been deployed

No deployments
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