Repository navigation
flashnext: check TF_FLASHNEXT_SPLIT_DENSE and TF_FLASHNEXT_SHARD_HEAD at load - #3749
Merged
Merged
Conversation
devopsfortunato
force-pushed
the
flashnext-split-head-env
branch
2 times, most recently
from
November 18, 2026 07:49
d441f0b to
82f3be3
Compare
Owner
|
Thanks @devopsfortunato. The shared parser preserves valid values and defaults, and the reader and scope regressions cover the intended change. Ready to land after applying the correct head-source pin while retaining current main's neighboring fixture row; that is the only apply conflict.
|
This was referenced Nov 19, 2026
… at load Both switches gain rows in the strict environment table and their readers parse through it: a malformed value is refused by name before device work, blank text reads as unset, and valid values and defaults are unchanged. Part of ashhart#2370.
ashhart
force-pushed
the
flashnext-split-head-env
branch
from
November 20, 2026 02:11
82f3be3 to
c05cdbe
Compare
Owner
|
Thank you @devopsfortunato. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Before:
TF_FLASHNEXT_SPLIT_DENSEandTF_FLASHNEXT_SHARD_HEADwere read with a rawstd.c.getenvand a hand-written 0/1 check. Empty text was refused as a bad value, and nothing checked either one at load. After: both have.flagrows inplatform/environment.zig's table and their readers parse throughenvironment.value. A malformed value is refused by name when the engine loads, before device work, and empty or whitespace-only text reads as unset. Valid values (0,1), defaults (split on, head shard off) and the family error tags (BadDenseSplit,BadHeadSharding) are unchanged.atc overlap --json(2026-11-18T01:48Z, base af9777b): incomplete (otherPullRequestsLimit,pullFilesUnavailable,timeLimit). 115 overlaps, almost all throughCHANGELOG.md. 6 merge clean, 105 are unknown, and 4 conflict (Nemotron 3.5 Transcribe: audio input, the 65,536-token window, an hour of audio, MTP drafts #1632, Unlimited-OCR-2 on CUDA: the family's steps on NVIDIA GPUs (sm_89 and up) #2077, qwen3-asr: host slice, the shared tower and Qwen3 schedules over a backend binding (#2105) #2239, qwen27 metal: qk projections, flat glue and Metal 4 verify passes, each bit-identical and switchable #2342), each in one file. All four editCHANGELOG.md's Unreleased block; qwen27 metal: qk projections, flat glue and Metal 4 verify passes, each bit-identical and switchable #2342 also editsenvironment.zigandenvironment_test.zig. No overlap in Flash Next code.Checks on this head
python3 tools/zig/lean_check.py, on the base and on this head: 221 on the base, 221 on this head, 0 new (viapython3 tools/pr_check.py --base upstream/main).zig build -Dfixed-cpu test-environment-host test-flashnext-compose-host -j2:test-environment-host27 pass, 0 fail, 0 skip;test-flashnext-compose-host41 pass, 0 fail, 0 skip.test-environment-host24 pass, 2 fail, 1 crash (the 33-row count, the scope refusal, and the per-switch test, which panics with "unregistered strict environment parser");test-flashnext-compose-host38 pass, 3 fail (both dense split tests and the head reader test).zig build -Dfixed-cpu test-gradient-serving: 1 pass, 0 fail, 0 skip.zig fmt --check build.zig zigandgit diff --check: clean.zig, whose only failing step wastest-gradient-serving:cuda_head.zigis pinned by its bytes inzig/tests/fixtures/gradient-serving.tsv. This head updates that one row to the new hash, with a reason column (the same kind of update as Flash Next CUDA: validate chunk settings through the shared startup parser #3308's forcuda_lanes.zig).cuda_dense_split.zigandenvironment.zigare not pinned.zig build -Dfixed-cpu test-cuda-hostdid not finish here; the host has 4 ARM cores and was shared with other builds. In the part that ran, some unrelated test binaries were reported failed with no assertion text; rerun on their own, both binaries checked passed (43/43 and 15/15). In the same run, three DeepSeek V4.1 encoder fixture prompt hashes (zig/src/server/fixtures/deepseek_v41_encoder/) did not match; this change doesn't reach that code. CI runs the full suite.Receipt
n/a: the change only touches how two load-time switches are parsed. No arithmetic, kernel, graph or token path changes, and with a valid or unset value the engine takes the same branches as before.
--tp 2(dense split and head shard). The Flash Next scope check also runs on a Metal load (flashnext: refuse a malformed TF_FLASHNEXT_* setting by name before device work #2585), so a malformed value of either now stops a Metal load as well.0or1; split on, head shard off). There is no profile row.cuda_dense_split.zigsetting/enabled/applies(the world-1 path still never reads the setting),cuda_head.zigsetting/enabled, andenv_validate.zig's.flashnextscope check, all covered by the host tests above. No CUDA or Metal device run.tools/bench_concurrent.py --alone --serialortoken_shaagainst"draft": false: n/a, no token path changes.tools/bench_openai.py: n/a, the readers run once at load.Checklist