← News

Inference frameworks

llama.cpp b12845 commentary: check CPU fallback before timing WebGPU

The llama.cpp preview handles weight scales for WebGPU matrix operations and widens part of expert-matrix accumulation.

Published: 2026-11-29 14:34 UTCUpdated: 2026-11-29 14:34 UTCSource date: 2026-11-29

Official announcement

The llama.cpp b12845 preview, dated November 29, describes two changes to its WebGPU backend. Some matrix operations previously fell back to the CPU when they encountered weight scales. The preview handles those scales after the matrix product and uses 32-bit floating-point accumulation in part of the expert-matrix path. The maintainers explain that unscaled intermediate sums in some NVFP4 models could exceed the range of 16-bit floating point.

Analysis

Before comparing generation speed, check backend placement and the output values. Run the same quantized model and fixed prompts on both builds. A change in speed matters differently if the older run executed part of the workload on the CPU. If output values are still unstable, isolate the tested model variant and the relevant compute path before tuning the workload for the device.

What remains unverified

This is a preview. The project does not establish performance or numerical results across every browser, driver and GPU combination.


Related articles