Expand description
Explicit architecture capability registry for the generic GGUF path.
Mirrors the pinned llama.cpp llm_arch / LLM_ARCH_NAMES inventory
(.scratch/llama.cpp/src/llama-arch.{h,cpp}) with Ferrox-side
classification into decoder families, memory kinds, and scope.
Unknown strings and detected-but-unimplemented features fail closed
(LoadError) instead of silently defaulting into fluent-but-wrong
logits.
Architecture names are registry keys only. Hot-path kernels never
branch on them; load-time resolution produces an ArchProfile
whose fields the decoder reads as plain data.
Structs§
- Arch
Profile - Load-time resolved profile for one GGUF
general.architecturestring. - SwaPattern
- llama.cpp’s hardcoded alternating sliding-window layout for one architecture: the period, and which end of each period is the full-attention layer.
- Unaudited
Triage - One architecture’s triage verdict, carried on its own catalog row.
Enums§
- Arch
Path - How the generic
Decoder/ModelConfig::from_ggufpath treats a GGUF architecture string. - Arch
Scope - How far this architecture is in Ferrox’s delivery scope (plan: text-generation parity; encoder/multimodal/diffusion/audio deferred).
- Decoder
Family - Shared execution family (maps many GGUF strings onto one engine path).
- Memory
Kind - Memory / KV backend selected once at load (llama.cpp
create_memory). - QkNorm
Style - How
attn_q_norm/attn_k_normweights are applied (when present). - Triage
Class - How much work admitting one UNAUDITED architecture to the generic path would actually be.
Constants§
- AUDITED_
GENERIC_ GQA - Architectures on the shared generic-GQA path that somebody has actually PROVEN, and the evidence for each.
- TRIAGE_
PENDING - Unaudited generic-path architectures nobody has read against llama.cpp’s graph yet.
Functions§
- architecture_
catalog - Full inventory keyed by GGUF
general.architecturestring. Kept in sync with.scratch/llama.cpp/src/llama-arch.cppLLM_ARCH_NAMES. - coverage_
report_ markdown - Markdown coverage table for docs / CI drift checks.
- default_
swa_ layout - is_
audited_ generic - Is this architecture’s use of the shared generic path backed by evidence?
- resolve_
architecture - Resolve a GGUF
general.architecturevalue.Nonemeans the string is not in the registry — callers must fail closed rather than guess. - resolve_
profile - Resolve a GGUF
general.architecturevalue to its profile. - swa_
disabled_ by_ arch - Every architecture for which llama.cpp seeds a sliding-window period
before letting
{arch}.attention.sliding_window_patternoverride it, transcribed fromsrc/models/*.cpp. - swa_
rope_ base_ follows_ model - True when this architecture’s SWA layers use the model’s own RoPE
base rather than llama.cpp’s
rope_freq_base_train_swadefault of10000. - unaudited_
refusal_ detail - The triage half of the
UnauditedArchitecturerefusal, rendered for the user. - unaudited_
triage - This architecture’s triage verdict, or
Nonewhen it has not been triaged (seeTRIAGE_PENDING) or does not need one. - unsupported_
feature_ keys - Metadata keys that, when present with a nonzero value, require math ferrox’s generic decoder does not implement unless the architecture profile opts into those features (Gemma family).
- unsupported_
scaling_ keys - Scalar multipliers a checkpoint can declare in metadata that the generic decoder does not apply, with the value that means “no-op”.
- uses_
geglu - Architectures whose FFN gate uses GELU rather than SiLU, i.e. GeGLU rather than SwiGLU.