Expand description
Load-time engine selection (llama.cpp llama_model_* factory analogue).
GGUF text-generation architectures that the generic crate::decoder::Decoder
can run are routed there. Dedicated stacks (MLA / DSA / recurrent /
T5 encoder-decoder) are selected here and must not accumulate
if arch branches inside matmul / attention kernels.
Enums§
- Engine
Select Error - Why a GGUF cannot be served by the currently compiled engine set.
- Selected
Engine Kind - Result of load-time engine selection for a GGUF architecture string.
- Served
Engine - Type-erased serve handle: today ordinary GGUFs use
Decoder; Kimi/GLM/MLA use dedicated engines once loaders succeed.
Functions§
- ensure_
generic_ decoder - Fail-closed check used by
ferrox-serverbefore constructing aDecoderfor architectures that need another engine. - load_
gemma4_ engine_ from_ path - Open a Gemma-4 GGUF and build
ServedEngine::Gemma4. - load_
glm52_ engine_ from_ path - Open a GLM-5.2 / GLM4-family GGUF and build
ServedEngine::Glm52. - load_
mla_ engine_ from_ path - Open a DeepSeek-2 / Mistral-4 GGUF and build
ServedEngine::Mla. - select_
engine_ kind - Resolve which engine kind a GGUF
general.architectureshould use.