Repository navigation
Conversation
… at WINDOW and RING 0 (#2251)
…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.
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: #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.