Repository navigation
Conversation
…hat allow nothing (#2832) sampling_row.scan replaces the scalar first pass of the greedy and masked draw: every block's exponents are checked finite before any mask test, a block whose two mask words are zero is not ranked, and an allowed key replaces the best only when strictly larger, taking the block's first lane at that key, so ties keep the lowest id and both zeros rank equal. The sampled pass walks set mask bits in id order, so the same candidates reach the fp64 sampler in the same order. The bf16 order keys move here from qwen3_5/draw_topk.zig. Main's draw stays as the test oracle in sampling_row_test.zig.
…g in, and ranks only allowed logits (#2832) After the unchanged finite check, a 32-logit block whose mask word is zero is skipped, the full-selection skip ranks only the allowed lanes, and consider runs for set bits in id order. Each skipped call would have returned at its mask check, so the selection is unchanged. Structured sampled rows at top_k 1..128 take this path, including rows where fewer than top_k ids are allowed. key and keys now come from core's sampling_row (an order-equivalent encoding), and their order test moved there with them.
… row on the CPU (#2832) Greedy, masked and sampled rows through qwen3_5/draw.zig at ReleaseFast, with a checksum of every drawn token so two builds' tokens can be compared. Not part of test or any CI shard; it runs only when asked for.
…rd core's bf16 keys (#2832) The "bounded BF16 keys" filter matched nothing once that test moved to core's sampling_row with the keys. The bounded keyed draws compare the top-k path against the value-sorted reference, so the step again fails when the keys order -0 and +0 apart.
…alls on the fused form With TF_FLASHNEXT_FUSED_SPLIT=1, a lane call that splits K over a cluster and has 2,048 output columns or more runs on the fused form instead: one block a 64-column tile walks its K slices and adds them in slice order, the order the cluster adds them, so the outputs keep the cluster kernel's bits. qmmf.cu gains the fused instances at the decode row tiles 16 and 32 (MXFP8 and BF16, bf16 and fp32 out); row tile 64 already had one. Unset, blank or 0 leaves cuda.qmmf.fuse_split_n at 0 and every lane call on main's kernels. Metal and HIP stop the start on 1 by name. The kernel contract gains the fused form against the cluster kernel's K slices at served and narrow split shapes, with a control that poses a 1.5x tensor scale as the cluster kernel.
…le and tokens a round Main against the branch on one GB10, alternating M1 F1 M2 F2, one fresh server an arm: 0 of 22 cells slower, greedy code faster outside the noise at 6 and 8 streams (+1.7% and +1.5%), the other 20 level, tokens a round main's in every cell. Exactness holds on main and on the branch set to 1, unset and blank, and the branch's replies equal main's. The changelog line goes under a new Unreleased section.
… row tiles 16 and 32 registry.cuda gains the eight fused instances (MXFP8 and BF16, bf16 and fp32 out) with nvcc 13.0.88's registers, static shared bytes and launch bounds for sm_80, sm_86, sm_89, sm_120 and sm_121, read from a five-SM qmmf fatbin with the contract's own cubin reader. nvcc 13.3 compiles them to the same usage, so no later set needs an override.
…sts, and zig build test reaches them The three tests of TF_FLASHNEXT_FUSED_SPLIT's reader, its CUDA threshold and the Metal and HIP refusals had no build step. They now have their own, test-flashnext-fused-split-host, which the test step depends on, as the RoPE refusal tests beside it do.
…unset as a third arm Main against the branch commit 4df765a on one GB10, both built the same way from their own commits, alternating M1 F1 U1 M2 U2 F2 with one fresh server an arm. With the setting 1: 14 of 22 decode cells faster (+1.0% to +1.8%), 8 level, 0 slower; unset: 21 level and 1 at +1.1%. Tokens a round are main's in every cell. Cold prompts of 2,048 to 65,536 tokens are level. Exactness holds on main and on the branch set to 1, unset and blank, and the branch's replies equal main's. The changelog line takes the new numbers.
A fatbin set for sm_80, sm_86, sm_89, sm_120 and sm_121 built from 120123a by nvcc 13.3.73, then tf-cuda-test kernel-contract-limits over it: the eight launches this change adds report record current on all five SMs, both planted controls go red on all five, and the run's 834 problems are other launches' nvcc 13.0 records that nvcc 13.3 compiles differently. limits.txt is its output; the README says what the run proves and what it does not, and records main 964174e as merged, which moves none of the files the measured arms ran on.
…2b3722 The receipt's source section names both merges of main, 964174e at 120123a and d2b3722 at 1e24f26, and says what main changed between 41a72fd, where the arms ran, and d2b3722: 111 files, of which this change touches CHANGELOG.md and docs/environment.md, and three are on a Flash Next CUDA request's path (fp_pairs.cuh gains a function only nvfp4_experts32.cu calls; lane_host.zig and lane_host_end.zig count a cancelled request's work in the load ledger). No file of the fused split-K path moved, so the arms describe both merges.
…nches and the failures by launch
Follow main 85048e5 (decode linears as weight-first dependent launches). Keep its PDL launch field and shared grid-launch/wait body beside the new fused decode instances. Retake only the two merged source identities, retaining both notes.
Preserve main 85048e5 (weight-first dependent lane launches) and e9ee738 (Flash Next CUDA ownership/readbacks). E155 requires every other family's scheduling to remain main's: the incoming process-global threshold could otherwise affect a different lane after Flash Next enabled it. Keep the threshold on each qmmf.Lane with default 0 and set only Flash Next's own loaded native_lane, after the same early validation. Retain the original predicate, kernel math, threshold 2048, startup refusals and PDL geometry. Record actual dispatch isolation through the existing host step and initialize the new default in the two partial mock lanes that dispatch; do not change their workloads.
Owner
Author
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.
CI for a landing train: #2846 #3475 stacked on main in that order. Nothing merges from this PR: each PR above lands on its own once this tip is green, and this PR is then closed.