Skip to content

train 1123224941: #4207 #4780 (CI only) - #4810

Closed
ashhart wants to merge 4 commits into
mainfrom
lead/train-1123224941
Closed

ashhart wants to merge 4 commits into
mainfrom
lead/train-1123224941

Conversation

@ashhart

@ashhart ashhart commented Nov 23, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #4207 #4780 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.

AbrahamCete and others added 4 commits November 23, 2026 22:49
…3.5 iGPU

The HIP policy picks a 4,096-row prompt step on the RDNA 3.5 iGPUs at one
rank, and Flash Next takes it. Qwen 3.5/3.6/3.8 kept 1,024-row chunks and
2,048-row steps a layer, so a long cold prompt read the weights several
times over.

The engine now opens with the policy's rows (prompt_rows.opening), a
plain prompt with nothing decoding takes them, and a pass crosses a
layer in them (the step forward.spanFor takes). An unquantized
checkpoint on rocBLAS, a readout and a prompt beside decoding streams
keep their chunks. Where the larger step is the GPU's own default,
admission starts from the plain step and keeps the larger one only when
its scratch still holds the streams admitted, by the rule Flash Next
uses, now in hip/policy.zig. A prompt cache asked for with
--prompt-cache-gib rides as that rule's slots: where it fits beside the
plain step's scratch and not beside the larger one's, the engine keeps
the plain step and serves the cache, as it did before;
--prompt-cache-over-cap weighs nothing. With a DFlash2 drafter each step
is weighed whole, its tap rings included, which grow with the step. The
startup line names the rows taken and any fallback. A prefill_step given
by flag or TF_POLICY is taken as given on every card.

`tf-qwen35-test hidden --cut N` opens with that step, so a cut stands for
a server's chunk, and the prompt tail's invariants run in the engine's
step, so `--policy prefill_step=4096` checks the tail under a server's.

Refs #2828
…p a row (#3396)

Flint's encoder is serial, and each drawn row of a shared round was its own one-threadgroup launch,
so a round's sampled rows ran one after another on one GPU core each. The keyed samplers
(tf_gpu_sample and tf_sample_full) already index the logits, settings and token slot by threadgroup,
as Nemotron launches them, so consecutive sampled rows writing consecutive slots now share one launch.
Each threadgroup reads only its own row and writes only its own slot, so every row's token is the one
its launch alone draws. Greedy rows and the lone step are unchanged; a one-row launch binds the same
bytes as before.

gpu_rule.Launch packs the per-row settings. test-lanes-sampler-launch-host checks that a one-row
launch binds byte for byte what Flint's pick bound on main, and that a launch of 1 to 32 rows binds
each row's settings at its own index, zeros past the last row.
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Landed: #4207 #4780 as main cfd907f. This PR only carried their CI.

@ashhart ashhart closed this Nov 24, 2026
@ashhart
ashhart deleted the lead/train-1123224941 branch November 24, 2026 01:07
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.

2 participants