ggml strengthened integer computation on smartphone neural processors and revised code for multiple hardware targets. On-device language model developers gain a faster input path and mixed computation options that account for accuracy.

1. Key changes in Hexagon 2.0

Hexagon 2.0 is the centerpiece of ggml v1.1.1, released on November 26, 2026. Changes cover not just computation but also internal data types, how values are stored and interpreted, and data movement paths.

INT-HMX W8A8 processes weights and activations, or intermediate values, as 8-bit integers on the matrix engine. The linked pull request (PR) describes quantizing inputs in 2K groups, converting real values to integers. This is the default path in hybrid mode, which mixes integer and half-precision floating-point computation.

Internal inputs and outputs automatically switch from 32-bit to 16-bit floating point where safe. Data transfers between memory and compute units now use a common path. The release also includes cached attention and mixed data type support for multiple operations.

2. Input processing improved more than generation

The PR reports Gemma-4 input throughput on Galaxy S26+ rising from 5614.10 to 8279.42 tokens per second, and generation from 35.19 to 38.89. The example processes 3912 input tokens with a 4-bit quantized model. Its command appears below.

Separate multi-model measurements use Q4_0 models and an F16 KV cache. The table compares the Galaxy S26+ baseline with the modified build, using the PR's gains for the faster of two polling modes in the modified build.

Table: Token throughput gains over the Galaxy S26+ baseline

Conditions: Galaxy S26+, Hexagon v81 (HTP0, DMA64), microbatch 1024, Q4_0 models, F16 KV cache; 1024 and 4096 input tokens, 128 generated tokens, 6 threads, 1 repetition, 30 seconds of cooling between runs. FlashAttention enabled; 99 layers of GPU offloading, which delegates computation to another device. The origin/master baseline (87f816e87) uses OPPOLL=1 for continuous polling. The modified hexagon-int-hmx build (b2b343e260) uses the faster result from OPPOLL=50 or OPPOLL=1. OPPOLL=50 polls for up to 50ms per operation batch before switching to a blocking wait; OPPOLL=1 polls continuously. Verbose logging and profiling disabled.

Unit: %

Galaxy S26+ throughput gains over baselineQwen3.5-0.8B: Prompt 1024 48.3, Prompt 4096 44.8, Generation 128 27.1; Qwen3.5-4B: Prompt 1024 62.2, Prompt 4096 61.9, Generation 128 12.9; Gemma4-E2B: Prompt 1024 56.0, Prompt 4096 56.2, Generation 128 10.3; LFM2.5-8B: Prompt 1024 49.7, Prompt 4096 44.5, Generation 128 8.8; Granite4-1B: Prompt 1024 34.4, Prompt 4096 32.2, Generation 128 15.3Prompt 1024Prompt 4096Generation 128Qwen3.5-0.8B48.344.827.1Qwen3.5-4B62.261.912.9Gemma4-E2B56.056.210.3LFM2.5-8B49.744.58.8Granite4-1B34.432.215.3
Galaxy S26+ throughput gains over baseline
Input processing improved more than generation
ModelPrompt 1024Prompt 4096Generation 128
Qwen3.5-0.8B48.344.827.1
Qwen3.5-4B62.261.912.9
Gemma4-E2B56.056.210.3
LFM2.5-8B49.744.58.8
Granite4-1B34.432.215.3

In the PR measurements on this device, input throughput gains were at least 32.2% for all five models, versus 8.8–27.1% for generation. Reading input in bulk benefited more than generating tokens sequentially.

3. Choosing between accuracy and speed

In a November 24 validation note, the PR author said the integer-only path raised PPL, a language prediction error metric where lower is better, by 3.7–9.4%. It also caused repetitive output in Qwen3.5-4B's 16K context retrieval test. Reducing quantization groups from 2048 to 256 left the retrieval issue unresolved and cut input processing speed by 27%.

The cause was large activations within 32-element groups in certain projections, which map input into another representation space. The author said moving sensitive projections to half precision recovered about 95.5% of the prediction error gap for Qwen3.5-4B and LFM2.5-8B. It also restored context retrieval for the former.

This compromise retains the speed of integer computation at the cost of leaving some operations in floating point. According to the author, the default hybrid mode processed input about 40% faster than the pure half-precision path. An integer-only mode remains available for less sensitive uses.

4. Kernels for other backends also changed

CUDA reduced redundant FlashAttention data loading across kernels, the code that runs computations on the device. It also fixed integer overflow in matrix offsets.

Metal adjusted work scheduling for matrix-vector operations with small inner matrix dimensions.

SYCL added a kernel for gated delta net, a neural computation that uses gates to control state changes. It also fused window handling for recurrent convolution, which incorporates earlier inputs. The changes affect both individual computation code and how work is grouped.

WebGPU added log1p for the softplus operation.

OpenVINO improved rounding in KV cache decoding and operation tests.

The example command comes from the PR description.

./scripts/snapdragon/run.py --target adb --devices HTP0 -- llama-completion -m ../gguf/gemma-4-E2B_q4_0-it.gguf --jinja -st -f ../sample_prompt_4096.txt -n 128 --ctx-size $((32 * 1024))

The core of ggml v1.1.1 lies in jointly tuning mixed precision and data flow to improve input processing efficiency for on-device inference, not merely in increasing integer computation.