llama.cpp b12556 changes HRM slot-count calculation

News llama.cpp Releases · Source account, not independently verified by us.

llama.cpp version b12556 includes a change to how it calculates the number of slots for HRM models. The release note identifies a bug in which multiplication using the uint32_t type could overflow.

The calculation involves three factors: the number of HRM layers per stack, the number of HRM cycles, and the number of L-cycles plus one. According to the note, the calculated value could therefore appear to match the block count even when the true product was larger. The subsequent architecture-tensor loading loop uses the same factors as integers; the note warns that this could lead to writes beyond the intended area.

This release note thus points to a specific correction in the model-loading path. It also lists builds for many platforms, including macOS, Linux, Android, and Windows, with some variants marked as disabled. The available entry does not give further details on affected versions, practical impact, or test results.

The full release page lists the change and available build variants: llama.cpp b12556 on GitHub.

🇬🇧 https://github.com/ggml-org/llama.cpp/releases/tag/b12556

Leave a Comment

The weekly brief: selected developments, projects and videos