Skip to main content

MIN_PLAUSIBLE_BUILD

Constant MIN_PLAUSIBLE_BUILD 

Source
pub(crate) const MIN_PLAUSIBLE_BUILD: u32 = 1_000;
Expand description

Smallest build number treated as a real llama.cpp release.

llama.cpp’s CMake derives LLAMA_BUILD_NUMBER from git describe. A clone without release tags fetched — the ordinary state of a source build, and of gglib’s own .llama/llama.cpp checkout — cannot derive one and falls back to 1. The banner then reads version: 1 (69bf643): a sentinel meaning unnumbered, not a build that predates every threshold in this module.

Taking it literally is worse than not parsing it at all. A source build of current llama.cpp would be classified as ancient, silently losing every native capability it actually has, and no amount of upstream progress would ever change the answer.

Real release numbers have been in the thousands since 2023, so anything under this floor is an unnumbered build. Its identity is the commit sha, which RuntimeCapabilities::commit records instead.