Repository navigation
perf(qwen35): optimize packed concurrent prefill on Strix Halo - #595
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 67 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
cdba460 to
20ceb72
Compare
There was a problem hiding this comment.
1 issue found across 73 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="server/deps/llama.cpp/ggml/src/ggml-cpu/ops.cpp">
<violation number="1" location="server/deps/llama.cpp/ggml/src/ggml-cpu/ops.cpp:5008">
P1: Padded concurrent-decode rows crash on Metal and can write out of bounds on Vulkan because masked `SET_ROWS` semantics exist only in the CPU/CUDA paths. Add the same negative-index skip or reject/fallback behavior to every backend advertising `GGML_OP_SET_ROWS` before using this op-param.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
c98dbc0 to
fecfb20
Compare
a351ef8 to
045e3e3
Compare
There was a problem hiding this comment.
All reported issues were addressed across 6 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 3 files (changes from recent commits).
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
ef959a5 to
a90ffe4
Compare
a90ffe4 to
e2f1742
Compare
There was a problem hiding this comment.
All reported issues were addressed across 78 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
a873953 to
7207c3c
Compare
0900a17 to
0f2c31c
Compare
Resolves the conflicts with SpecLA (#606) and the packed concurrent prefill work (#595): - SSM_CONV op_params[0]: 1 stays the SpecLA heavy-light conv, the dflash fused conv step now uses 2; the CUDA dispatcher and supports_op handle both. - GDN raw-gate mode no longer uses src[8]/op_params[2] (compact-decode slot ids and the SpecLA marker): the loader builds one f32 [dt_bias | A] tensor per DeltaNet layer (TargetLayer::ssm_gate_ba, own small buffer) and ggml_gated_delta_net_set_raw_gates() attaches it as src[9] with op_params[10] = 1. - gated_delta_net.cu launchers carry both the active-slot arguments and the raw-gate parameters. - build_delta_net_block keeps main's token-axis segment structure; the stacked (z|qkv) and (beta|alpha) projections, the fused conv step, raw gates, single l2_norm over q|k and the head-broadcast shortcut apply on the plain single-sequence chain path only (ragged, compact-decode, SpecLA and chunked paths take main's materialized ops). - MMQ tiles: Q4_K keeps main's 128x64 (LUCEBOX_RDNA_MMQ_Y); IQ4_XS, Q5_K, Q6_K, Q8_0 and the ROCmFPX formats keep the 64x64 small tile. - Spec loop: DSpark Markov top-k stays available inside the non-conditional DDTree branch; SpecLA's conditional-draft path and draft-KV flag are preserved. Verified on lucebox8 (R9700): AR 34.6 tok/s, DFlash2 110/54/115 (code/prose/mixed), DSpark 48/32/40.
Summary
Depends on #594. Optimizes Qwen3.6 concurrent prefill on Strix Halo while preserving per-request paged KV and recurrent state isolation.
Validation