Skip to content

hexagon: allow multistream FA - #30218

Merged
max-krasnyansky merged 1 commit into
ggml-org:masterfrom
jhen0409:jhen/hexagon-fa-multistream
Oct 19, 2026
Merged

max-krasnyansky merged 1 commit into
ggml-org:masterfrom
jhen0409:jhen/hexagon-fa-multistream

Conversation

@jhen0409

@jhen0409 jhen0409 commented Oct 9, 2026

Copy link
Copy Markdown
Member

Overview

Allow multistream (dst->ne[3] > 1) for no-kv-unified cases in multi-sequence.

Additional information

llama-batched-bench -c 4096 -b 2048 -ub 512 -npp 512 -ntg 64 -npl 1,2,4 -fa on --no-kv-unified, IQ-9075 EVK (Hexagon v73), 1 NPU, t/s, master is 3d65c90.

model test master (t/s) patch (t/s) change
Llama-3.2-1B Q4_0 PP npl=1 1618.40 1609.23 -0.6%
Llama-3.2-1B Q4_0 TG npl=1 45.70 45.63 -0.2%
Llama-3.2-1B Q4_0 PP npl=2 940.50 1639.19 +74.3%
Llama-3.2-1B Q4_0 TG npl=2 37.58 60.68 +61.5%
Llama-3.2-1B Q4_0 PP npl=4 948.09 1622.75 +71.2%
Llama-3.2-1B Q4_0 TG npl=4 46.30 64.72 +39.8%
Qwen3.5-2B Q4_0 PP npl=1 974.15 974.04 -0.0%
Qwen3.5-2B Q4_0 TG npl=1 20.01 20.01 +0.0%
Qwen3.5-2B Q4_0 PP npl=2 804.66 981.47 +22.0%
Qwen3.5-2B Q4_0 TG npl=2 28.40 28.57 +0.6%
Qwen3.5-2B Q4_0 PP npl=4 795.40 960.91 +20.8%
Qwen3.5-2B Q4_0 TG npl=4 31.85 35.56 +11.6%
2 NPU row split
model test master (t/s) patch (t/s) change
Llama-3.2-1B Q4_0 PP npl=1 2756.54 2768.53 +0.4%
Llama-3.2-1B Q4_0 TG npl=1 59.37 59.74 +0.6%
Llama-3.2-1B Q4_0 PP npl=2 1146.52 2822.32 +146.2%
Llama-3.2-1B Q4_0 TG npl=2 42.96 96.02 +123.5%
Llama-3.2-1B Q4_0 PP npl=4 1157.59 2809.06 +142.7%
Llama-3.2-1B Q4_0 TG npl=4 59.96 113.51 +89.3%
Qwen3.5-2B Q4_0 PP npl=1 1515.00 1512.75 -0.1%
Qwen3.5-2B Q4_0 TG npl=1 24.54 24.48 -0.2%
Qwen3.5-2B Q4_0 PP npl=2 1144.86 1553.36 +35.7%
Qwen3.5-2B Q4_0 TG npl=2 39.64 40.57 +2.3%
Qwen3.5-2B Q4_0 PP npl=4 1141.48 1535.08 +34.5%
Qwen3.5-2B Q4_0 TG npl=4 49.50 60.06 +21.3%

Llama-3.2-1B and Qwen3.5-2B Q4_0 PPL on multi-stream are correct.

NOTE: When I tested the FLASH_ATTN_EXT cases, I got 57/1258 failed with sinks (means this might affect models like gpt-oss), confirmed that the problem existed on master for single stream. With this PR, multi-stream is 20/169 failed with sinks. The number of failures is not an absolute value because inputs are randomly generated during testing. The failures are all HMX path btw.

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES, Claude Code, I did validation and review

@jhen0409
jhen0409 requested a review from a team as a code owner October 9, 2026 09:07
@github-actions github-actions Bot added ggml changes relating to the ggml tensor library for machine learning Hexagon labels Oct 9, 2026
@max-krasnyansky

Copy link
Copy Markdown
Member

@lhez for another ack

@max-krasnyansky
max-krasnyansky merged commit fe8841a into ggml-org:master Oct 19, 2026
22 of 23 checks passed
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 24, 2026
auRose94 pushed a commit to auRose94/llama.cpp that referenced this pull request Oct 28, 2026
@BrewTestBot BrewTestBot mentioned this pull request Oct 28, 2026
1 task done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning Hexagon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants