Skip to content

train 1118134652: #3269 #2973 #3245 #3252 #3135 (CI only) - #3821

Closed
ashhart wants to merge 21 commits into
mainfrom
lead/train-1118134652
Closed

ashhart wants to merge 21 commits into
mainfrom
lead/train-1118134652

Conversation

@ashhart

@ashhart ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

CI for a landing train: #3269 #2973 #3245 #3252 #3135 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 21 commits November 18, 2026 13:46
…t WINDOW 0 and RING 0 (#2251)

Every line of core/prompt_attention_nax.metal that names WINDOW or RING must be one of its four guarded forms, the
mask line among them, and Llama's loader must define both as 0 over the shared text, so a later edit can't unfold it.
A control checks that an unguarded window term or a missing mask line fails. It runs in test-kernel-symbols-host.
…ers per row and dispatch class

Six synthetic layers of the release's widths (one of each attention kind, few experts) are timed at
1-16 rows of one slot and at 4 slots x 1 row, each dispatch alone and the layer on the serving
encoder, and split into FP8 rows, experts, attention and glue, with a 40-layer round weighted by
kind. timing_real's report takes a launch (context and spans) so both harnesses share it.
…x tile, bit-equal to the row kernel

Launches of 6 to 16 rows run the dense FP8 projections on fp8_tile.metal: 8 or 16 columns a
threadgroup, K split over up to 16 simdgroups in aligned power-of-two runs of groups, each 32-wide
group summed from zero in four 8-wide MMA steps in k order (the prompt tile's group root), the
groups' roots and the slices' roots in the same zero-padded pair tree the row kernel uses. Every
row's bits are the row kernel's one row a launch; 1-5 rows keep the row kernel (chosen by row
count only), since below 6 rows it reads the weights faster.

Contract: six registrations (f32, bf16, a forced 16-column form, one simdgroup, the row kernel one
row a launch as replaced baseline, the release wkv fixture), four planted controls, gate-5 records
with M1/M2 limits, and an equality probe over every model FP8 shape at 1-16 rows, every form, the
16/17 seam and a batch with NaN and Inf planted. Device tests: the layer's kernel by row count, and
four slots of two rows each in one launch against each alone.
…ynthetic layer times

# Conflicts:
#	CHANGELOG.md
…he thank-you

Drop the older synthetic M5 Max paragraph that the served-results line replaced, and end the kept line with "Thanks to @gilby." as main's lines for his work do.

# Conflicts:
#	CHANGELOG.md
…ates

With stream: true, an engine that reports its steps sends image_generation.progress
after each denoising step and image_generation.completed with the PNG, then [DONE];
preview_interval adds image_generation.partial_image, a separate PNG of at most 128
pixels a side and 80 KiB, every N steps. The engine's observer is null unless the
request streams, so a whole reply does no extra work and its bytes are unchanged; the
final PNG is the same with or without progress and previews. A client that leaves or
a failed write cancels at the next step. With n above 1 each picture streams its own
steps in order on one stream.

Fixes #3224
… pair launch, the same bytes

prompt_lean gains a SwiGLU pair form: a 128 x 256 tile stages gate's two 64-column blocks and up's at the same
features, each warp holds a feature's gate and up sums in one lane, and the epilogue rounds both to bf16 and takes
tf_q35_mlp_act's steps. The two existing instances keep their SASS on sm_80/86/89/120/121 (renamed: int out kind,
four trailing arguments). Qwen3.5 dense layers with NVFP4 gate and up take it for prompt rows past 16.
…ir; inline four single-use imports in the CUDA test dispatcher

The dispatcher sat at 600 lines on main, so the two new commands pushed it to 604 once applied there.
)

native/cuda_kept.zig holds what Flash Next's kept_disk held: the image's words,
the copies, the probe. A family declares a view of its layout. Flash Next moves
onto it with its probe bytes and seed unchanged; its key gains the prompt files.

Gemma 4 keeps its states on disk with --learn-conversations and --spill-gib.
Keys bind the tokenizer's and template's bytes, a drafter's checkpoint and the
KV form. A state over an image stays off disk: RAM alone tells which image.
A stale key opens another namespace, a cold pass.
Their views over native/cuda_kept.zig: full caches as block rows, ring tails in
the state's own file, the loop count, ring, row and paging in the key.
…ough core's bound (#2388)

A Gemma 4 31B state at 9.3k tokens is 1.5 GiB, past the 1 GiB default: every save
was skipped as StagingFull. Kept passes the served window as rows.Options.longest,
so core prices one whole state within the RAM store's budget. Families without a
window (Flash Next) keep the default permit.
@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

Landed: #3269 #2973 #3245 #3252 #3135 as main ac9c1fe. This PR only carried their CI.

@ashhart ashhart closed this Nov 18, 2026
@ashhart
ashhart deleted the lead/train-1118134652 branch November 18, 2026 15:38
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.

3 participants