Skip to content

train 1124151700: #4718 (CI only) - #4911

Closed
ashhart wants to merge 5 commits into
mainfrom
lead/train-1124151700
Closed

ashhart wants to merge 5 commits into
mainfrom
lead/train-1124151700

Conversation

@ashhart

@ashhart ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner

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

jschmied and others added 5 commits November 24, 2026 15:17
…block and an up half a column a thread

tf_ink2_loop_gate ran one block a gate row: one block read the 590 KB down matrix and the 590 KB
forget/gain pair for each of the 96 gates a token. tf_ink2_loop_gate_down runs a block a row and rank
pair, each with the one-block kernel's norms, 256-thread chains and reduction tree, and writes the BF16
zeta to a [rows][64] scratch; tf_ink2_loop_gate_up runs a thread a column with the same ascending rank
chains, tanh and four rounding steps. tf_ink2_loop_gate stays in the image, unserved, as the contract's
baseline: the halves are gated bit-equal to it.
…20 too

nvcc 13.0 -cubin -O3 --resource-usage per SM, as the image builds them: tf_ink2_loop_gate_down 22/24/24/32
registers, tf_ink2_loop_gate_up 38/70/46/46, static shared bytes and launch bounds as on sm_121, no stack or
spills. The two launches admit sm_80 onward, so the registry check now has their numbers on every pinned SM.
…ged in whole 128-byte reads

tf_ink2_loop_project_qkv tiles 16 rows by 16 outputs, so a one-row decode left 15 of 16 threads idle and
re-read its weights in 32-column slices. For up to 16 rows, tf_ink2_loop_qkv_rows1/4/16 run a warp per 32
output columns: the warp stages its 32 weight rows 64 columns at a time with whole-row 128-byte reads and the
rows' inputs, and each thread runs its output's rows over the same ascending FP32 chain, so the BF16 results
are tf_ink2_loop_project_qkv's. Prompt chunks keep tf_ink2_loop_project_qkv.
…places, its usage on every SM

projectQkvTiles keeps tf_ink2_loop_project_qkv's 16x16-tile launch callable at any row count (prompts take
it as before); the contract's ProjectQkv now names it in replaces, so gate 3 compares the decode kernels'
q, k and v bytes with the tiles' on the same inputs at every served shape. The control told one
row fewer stays red against the tiles.

tf_ink2_loop_qkv_rows1/4/16 compiled with nvcc 13.0 -cubin -O3 per SM: 128/128/90 registers on sm_80,
128/128/88 on sm_86 and sm_89, 86/90/103 on sm_120 as on sm_121; static shared bytes and the 32-thread bound
as on sm_121, no stack or spills.
@ashhart ashhart closed this Nov 24, 2026
@ashhart ashhart reopened this Nov 24, 2026
@ashhart

ashhart commented Nov 24, 2026

Copy link
Copy Markdown
Owner Author

Stopped at #4718.

@ashhart ashhart closed this Nov 24, 2026
@ashhart
ashhart deleted the lead/train-1124151700 branch November 24, 2026 17:19
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