Repository navigation
zaya: skip CONTs of fresh contiguous results - #36
Merged
bong-water-water-bong merged 1 commit intoSep 29, 2026
Merged
Conversation
A CONT of a result that is already contiguous and not a view copies it for nothing, and each copy is a dispatch per layer on a GPU backend. Views keep their CONT even when contiguous: on HRX the consumers of a sliced or permuted view (flash attention, the grouped conv matmul) take a much slower strided path. The MoE router keeps its CONTs too: dropping them made every layer wait ~110 us before the top-k gather. ZAYA1-8B Q4_K_M on HRX0 (gfx1151), decode: - 3,165 -> 3,045 dispatches per token (copy_f32 322 -> 202); token span 18.66 -> 17.95 ms in back-to-back profiles, no other kernel slower. - greedy 6 prompts x 48 tokens identical to before, max |dlogprob| 0.0000; wikitext 8 x 512 perplexity 41.9971 before and after (prefill unchanged). - llama-bench tg64 x2, 6 interleaved rounds each: median 66.42 -> 68.04 tok/s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
bong-water-water-bong
changed the base branch from
1bit/hrx-res-scale-fuse
to
1bit/hrx-vulkan-patched
September 29, 2026 14:57
bong-water-water-bong
merged commit Sep 29, 2026
3d75c08
into
1bit/hrx-vulkan-patched
10 of 24 checks passed
bong-water-water-bong
added a commit
that referenced
this pull request
Oct 25, 2026
…able and lm_head (#143) DFlash2 drafters on Hadamard-folded targets (PrismML Ternary-Bonsai-2-27B) read the shared token table and lm_head without the folds: 0 of 5271 drafts accepted. Now folded; acceptance 0.37 on code (35.7 tok/s), Qwen3.8-27B unchanged. Pairs with gpu-kernels #36. Co-Authored-By: Claude Fable 5.1 <[email protected]>
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.
Stacked on #35; I'll retarget it to
1bit/hrx-vulkan-patchedonce #35 merges. This is our own ZAYA model code, and it's part of RFC 1bit-MONSTER/engine#213 gate 1.What it changes. A CONT of a result that is already contiguous and not a view copies it for nothing, and every copy is a dispatch per layer on a GPU backend.
cont_if_neededskips exactly those.What it leaves alone, from measurement:
copy_f32 -> get_rows_small).Checked on strixhalo (gfx1151), ZAYA1-8B Q4_K_M, HRX0:
copy_f32322 -> 202). Token span in back-to-back profiles 18.66 -> 17.95 ms. No other kernel slower.llama-benchtg64 × 2, 6 interleaved rounds each, starting below 60 °C: median 66.42 -> 68.04 tok/s (+2.4%).🤖 Generated with Claude Code