Repository navigation
Conversation
…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.
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: #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.