Repository navigation
hexagon: ssm-conv updates - #29971
Merged
max-krasnyansky merged 3 commits intoOct 6, 2026
Merged
Conversation
tboinovski1
force-pushed
the
hexagon-ssm-conv-updates
branch
from
October 5, 2026 17:01
1a2a90e to
e4e110f
Compare
tboinovski1
marked this pull request as ready for review
October 5, 2026 17:37
max-krasnyansky
force-pushed
the
hexagon-ssm-conv-updates
branch
from
October 6, 2026 00:33
e4e110f to
97100bf
Compare
max-krasnyansky
approved these changes
Oct 6, 2026
Member
|
@lhez for another review/ack. |
lhez
approved these changes
Oct 6, 2026
This was referenced Oct 6, 2026
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 8, 2026
* hexagon: ssm-conv double-buffered DMA for prefill and decode restructuring * hex-ssm-conv: remove divs from loops and fix trace events * hex-dma: improved SSM_CONV dma pipeline and streamlined dma_queue --------- Co-authored-by: Max Krasnyansky <[email protected]> (cherry picked from commit 5e03bdd)
1 task done
edwardyoon
pushed a commit
to edwardyoon/focus-llama
that referenced
this pull request
Oct 24, 2026
* hexagon: ssm-conv double-buffered DMA for prefill and decode restructuring * hex-ssm-conv: remove divs from loops and fix trace events * hex-dma: improved SSM_CONV dma pipeline and streamlined dma_queue --------- Co-authored-by: Max Krasnyansky <[email protected]>
auRose94
pushed a commit
to auRose94/llama.cpp
that referenced
this pull request
Oct 28, 2026
* hexagon: ssm-conv double-buffered DMA for prefill and decode restructuring * hex-ssm-conv: remove divs from loops and fix trace events * hex-dma: improved SSM_CONV dma pipeline and streamlined dma_queue --------- Co-authored-by: Max Krasnyansky <[email protected]>
yuubinnkyoku
added a commit
to yuubinnkyoku/llama.cpp
that referenced
this pull request
Nov 25, 2026
ggml-org#30731) Goal 3 items 4 and 5 were the SSM path and the FA work. SSM landed earlier as ggml-org#29971. This is the FA half. 31288c9 ggml-org#30731 FLASH_ATTN_EXT improvements for longer context and SWA Two files, four hunks. flash-attn-ops.c: upstream adds an active-KV-block scan so masked and SWA runs skip blocks the mask excludes, and moves the first-iteration DMA trigger from "first q block and first kv head" to "first kv head of this q block". Both are mechanisms the fork lacked, so the upstream side is taken wholesale. ggml-hexagon.cpp: the conflict sits after an early "return true;" that the fork put in place of upstream's FA heuristic, so upstream's side is dead code there. HEAD kept. ggml-org#31055 (KV-head team split for multicore) is NOT taken. Its declarations of kv_head_min / kv_head_max are what ggml-org#30731's loop uses, and the team-split block did not apply because the fork's device and thread handling differs. Rather than leave ggml-org#30731 unbuildable, the bounds are declared as the full range with a comment saying why: const uint32_t kv_head_min = 0; const uint32_t kv_head_max = n_kv_heads; So the scan and the DMA reordering are in, and the multicore split is deferred to Phase 65 with the specific reason that it needs the fork's thread model adapted. Device validation, because FA runs on every decode step: unit test 15/15, fuzz 88/88 64-step NGL=44 argmax 64/64 mean d_nll +0.001221 se 0.002386 t = +0.51 perplexity 19.8280 -> 19.8522 32-step NGL=44 moves to 8259e4b08000c201cc2d7d3c49fddad477b6c0011859c099e213cd93509f3bd8. Assisted-by: DeepSeek Harness
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.
Overview
Additional information
Verification - all 45 SSM_CONV test-backend-ops correctness tests still pass on HTP0
Test perf from my Kaanapali QRD:
test-backend-ops
before
after
Requirements