Skip to content

convert: enable --fuse-qkv for muse-glimmer - #29203

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
dfriehs:fuse-muse
Sep 21, 2026
Merged

ggerganov merged 1 commit into
ggml-org:masterfrom
dfriehs:fuse-muse

Conversation

@dfriehs

@dfriehs dfriehs commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Overview

--fuse-qkv is only allowed for architectures that include QKV tensors in their tensor list.

Additional information

Tested with -sm tensor on 4 P100, around +1% pp/tg:

llama-batched-bench -m muse-glimmer-30B-Q8.gguf -sm tensor -lm dio -ub 2048 -npl 1,2,3,4 -ntg 128 -npp 0,2048,4096

unfused:

PP TG B N_KV T_PP s S_PP t/s T_TG s S_TG t/s T s S t/s
0 128 1 128 0.000 0.00 4.604 27.80 4.604 27.80
0 128 2 256 0.000 0.00 4.838 52.92 4.838 52.92
0 128 3 384 0.000 0.00 5.623 68.30 5.623 68.30
0 128 4 512 0.000 0.00 6.335 80.81 6.336 80.81
2048 128 1 2176 4.160 492.35 4.613 27.75 8.772 248.05
2048 128 2 4352 8.274 495.06 4.952 51.69 13.226 329.05
2048 128 3 6528 12.415 494.89 5.754 66.73 18.169 359.29
2048 128 4 8704 16.554 494.85 6.538 78.31 23.092 376.92
4096 128 1 4224 8.692 471.24 4.682 27.34 13.374 315.83
4096 128 2 8448 17.379 471.38 5.023 50.97 22.402 377.12
4096 128 3 12672 26.037 471.95 5.855 65.59 31.892 397.35
4096 128 4 16896 34.767 471.25 6.689 76.54 41.456 407.56

fused:

PP TG B N_KV T_PP s S_PP t/s T_TG s S_TG t/s T s S t/s
0 128 1 128 0.000 0.00 4.523 28.30 4.523 28.30
0 128 2 256 0.000 0.00 4.726 54.16 4.726 54.16
0 128 3 384 0.000 0.00 5.506 69.74 5.506 69.74
0 128 4 512 0.000 0.00 6.263 81.75 6.263 81.75
2048 128 1 2176 4.132 495.66 4.538 28.21 8.670 250.99
2048 128 2 4352 8.213 498.73 4.841 52.88 13.054 333.38
2048 128 3 6528 12.294 499.76 5.684 67.55 17.978 363.10
2048 128 4 8704 16.412 499.14 6.463 79.23 22.875 380.51
4096 128 1 4224 8.599 476.35 4.597 27.84 13.196 320.10
4096 128 2 8448 17.191 476.53 4.912 52.12 22.103 382.21
4096 128 3 12672 25.796 476.35 5.790 66.32 31.586 401.18
4096 128 4 16896 34.388 476.44 6.595 77.63 40.984 412.26

Requirements

  • I have read and agree with the contributing guidelines
  • AI usage disclosure: YES. I asked Qwen 3.8 27B to analyze what would need to be required to enable fusion.

@ggerganov
ggerganov merged commit 62668d6 into ggml-org:master Sep 21, 2026
5 checks passed
@dfriehs
dfriehs deleted the fuse-muse branch September 21, 2026 08:19
LadislavSopko pushed a commit to 0ics-srls/llama.cpp that referenced this pull request Oct 5, 2026
edwardyoon pushed a commit to edwardyoon/focus-llama that referenced this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants