The new llama.cpp build speeds up input preprocessing on Snapdragon devices. Developers running models on these devices can test input throughput gains with the new version. One developer measurement showed about a 19.4% gain.

1. Restructuring the prompt preprocessing path

b13023 focuses on the Gated Delta Net preprocessing path used for model input computation. It optimizes prompt processing before answer generation. This matters for developers examining throughput with long inputs.

Internally, HMX, the matrix accelerator, and HVX, the vector unit, alternate work in two groups, removing scatter/gather instructions. The code below favors two groups based on workload and resources; the implementation decides whether to use them.

    // Prefer 2-group ping-pong when at least 2 heads exist, with HMX bank padding when it fits
    for (uint32_t ng = (max_heads_in_batch >= 2u) ? 2u : 1u; ng >= 1u; --ng) {
        uint32_t max_g = 8u;
        if (max_g > n_hvx) {
            max_g = n_hvx;
        }
        if (max_g > max_heads_in_batch / ng) {
            max_g = max_heads_in_batch / ng;
        }
        for (size_t i = 0; i < sizeof(candidates) / sizeof(candidates[0]); ++i) {

2. Higher prefill throughput in developer measurements

The PR author measured Qwen3.5-4B-Q4_0 on v85 with 4K input, reporting an increase from 4324 to 5161.7 tokens per second. The author cited a 19.4% gain. This reflects higher throughput during prefill, which processes input first.

The same author reported Qwen3.5-2B-Q4_0 on dual-v73 with 4K input rising from 4702 to 4905 tokens per second. These use different models and hardware, so each setup's before-and-after results should be read separately.

3. Fusing normalization and activation operations

Normalization and activation fusion was also improved. It combines previously separate computations, linking activation after half-precision, 16-bit floating-point normalization and multiplication. It also restores fusion missed when splitting input into small batches, addressing a performance drop the author found at certain input lengths.

The PR author reported that all three backend operation test categories below passed on v85. In each category, the pass count matched the total test count.

v85, test-backend-ops

v85 backend operation test results (tests)
ItemPassedTotal
GATED_DELTA_NET9898
RMS_NORM6161
GLU120120

The author also checked matching results on Qwen3.5-4B by selecting the most likely output. Tests across 10 model profiles, or model-specific configuration sets, showed no regressions in existing behavior. These checks covered output and per-model behavior alongside speed gains.

4. Balancing performance gains and memory use

Memory layout was also adjusted for speed. Padding reduces conflicts from accesses to the same memory region, while per-worker scratch space in external memory keeps temporary data stacks small. This trades extra space for a faster computation path. The source code chooses a layout that fits the accelerator's on-chip memory budget.

b13023 provides Linux arm64 and Android arm64 builds for Snapdragon, both listing CPU, Adreno GPU, and Hexagon NPU configurations. Developers on these platforms can follow the documentation to select a build.

This build's value lies in improving model input processing efficiency on Snapdragon by refining both operation fusion and memory layout.