The llama.cpp project released build b10730, which includes optimizations for the Qwen4exp model architecture. The primary change involves summing indexer heads by slices instead of using a transpose and sum_rows operation, reducing memory copy overhead.
- Prompt processing speed increased from 2170 to 2366 tokens per second on an RTX PRO 6000 with Qwen3.8-Flash-Next UD-Q4_K_XL.
- The optimization removes redundant contiguous tensor requirements for the indexer query, as rope returns a freshly allocated contiguous tensor.
- Generation speed remains unaffected, but the gain in prompt processing scales with context length and ubatch size.
- Greedy output is unchanged token for token compared to previous versions.
This update improves efficiency for long-context inference tasks involving Qwen4exp models by reducing computational waste during the prompt processing phase.