Skip to main content

parse_build_number

Function parse_build_number 

Source
pub(crate) fn parse_build_number(output: &str) -> Option<u32>
Expand description

Extract the llama.cpp build number from a --version banner.

Reads two shapes, in order:

ShapeExampleSource
version: <n>version: 9656 (a1b2c3d)llama-server’s own banner
b<n> tokenllama-b10327-bin-linuxrelease tag in a path or banner

Returns None rather than a guess when neither appears — see the module docs on why an unparsed runtime must not look like a featureless one.