rlx-llama-base
Shared "Llama-shaped" architecture config + GGUF reader for the family of decoders that all share the same skeleton — GQA + RoPE + RMSNorm + SwiGLU FFN — differing mainly in RoPE base/scaling, sliding-window setting, and tensor-name conventions. This is the config foundation the M4-family runner crates build on; it does not run inference itself.
| Family | llama.cpp arch tag | Notes |
|---|---|---|
| Mistral 3+ | mistral3 / mistral4 |
Sliding-window (5K for 3.5) |
| Phi 3 / 4 | phi3 |
Default + YaRN (phi4 reuses phi3) |
| Bonsai | llama |
Ships as llama-tagged GGUF |
| OmniCoder | qwen3 |
Ships as qwen3-tagged GGUF |
| Granite | granite |
IBM Llama-shaped (attn/embedding scale) |
| Command-R | command-r / cohere2 |
Cohere Llama-shaped |
Public API
use ;
let cfg = from_gguf_path?; // GQA/RoPE/RMSNorm dims
if let Some = family_preset
# Ok
How it fits
The per-model wrappers — rlx-phi, rlx-mistral, rlx-cohere, rlx-granite, rlx-bonsai, rlx-omnicoder — validate their arch tag here and run inference via rlx-llama32.