pub struct CatalogEntry {
pub spec: ModelSpec,
pub purpose: Purpose,
pub quant: String,
pub params_b: f32,
pub active_params_b: f32,
pub kv_bytes_per_token: u64,
pub context: u32,
}Expand description
A catalog model with what it needs in memory.
Fields§
§spec: ModelSpec§purpose: Purpose§quant: String§params_b: f32Total and active parameters, in billions (they differ for mixture-of-experts models).
active_params_b: f32§kv_bytes_per_token: u64KV cache bytes per token at f16 (layers x KV heads x head dim x 2 x 2).
context: u32Context the sizing assumes per slot.
Implementations§
Source§impl CatalogEntry
impl CatalogEntry
pub fn id(&self) -> &str
Sourcepub fn footprint(&self, slots: u32) -> u64
pub fn footprint(&self, slots: u32) -> u64
Weights (and the projector’s, for entries that need one, and Qwen3-TTS’s speech tokenizer
for its vLLM-Omni checkpoints) plus KV for slots concurrent requests at the entry’s
context, plus 10% for compute buffers.
Sourcepub fn is_gguf(&self) -> bool
pub fn is_gguf(&self) -> bool
Whether the entry is a GGUF file llama.cpp runs (with its projector
when it has one). The others are Hugging Face checkpoints for vLLM-Omni: spec.repo is the
repo the engine serves, and spec.file, size and sha256 pin its main weights (the
engine fetches the rest of the repo). Since 0.5.5.
Sourcepub fn speaks(&self) -> bool
pub fn speaks(&self) -> bool
Whether this is a text-to-speech model (Purpose::Speak). Since 0.5.5.
Sourcepub fn license(&self) -> Option<&'static str>
pub fn license(&self) -> Option<&'static str>
The model’s license as its card names it (an SPDX id such as apache-2.0, or
speech::FISH_AUDIO_COMMUNITY), for the entries that record it: the speech-to-text and
text-to-speech models. None for the others. Since 0.5.5.
Sourcepub fn restricted(&self) -> bool
pub fn restricted(&self) -> bool
Whether the license restricts use (speech::restricting_license): such an entry is never
picked by speaker or a plan, and download refuses it (and its
projector) without a Consent::accepting_license for
that license. Since 0.5.5.
Sourcepub fn speech(&self) -> Option<SpeechProfile>
pub fn speech(&self) -> Option<SpeechProfile>
What a text-to-speech entry does, cited to the model’s card and its engine’s documentation
(llama.cpp docs/multimodal/tts.md and the llama-server README for GGUF entries; the
vLLM-Omni speech API for the others), read 2026-11-27. Never measured figures: what an
engine reports at load goes over it (SpeechProfile::or). None for entries that
don’t speak. Since 0.5.5.
- Qwen3-TTS (24 kHz, ten languages): CustomVoice has nine preset voices (the 1.7B also takes style instructions; the 0.6B doesn’t), VoiceDesign designs a voice from a description, Base clones a voice from a clip whose transcript is optional on vLLM-Omni; ggml-org’s 1.7B Base projector has the speaker encoder only, so llama.cpp clones from the clip alone.
- Kokoro (24 kHz): the 54 voices in ggml-org’s projector,
af_heart(the default) first; English from text (en-us,en-gb), other languages as raw phonemes; speed. - VoxCPM2 (48 kHz, 30 languages from the text): voice design, cloning from a clip (its first 30 s; no transcript).
- Fish Audio Drama 3 (44.1 kHz, 83 languages from the text): scripts of up to 16
speakers. ggml-org’s projector has no codec encoder, so it does not clone (“Voice
cloning is not supported yet”, its card). License
speech::FISH_AUDIO_COMMUNITY.
Sourcepub fn projector(&self) -> Option<ModelSpec>
pub fn projector(&self) -> Option<ModelSpec>
The multimodal projector (llama.cpp --mmproj) the entry needs, pinned like the model
file: the audio encoder for VOXTRAL_MINI_3B, and the audio generator (codec, voices,
reference encoder) of each GGUF text-to-speech entry. None for text models and the
vLLM-Omni checkpoints.
Download it with the same consent gate as the model.
Sourcepub fn transcribes(&self) -> bool
pub fn transcribes(&self) -> bool
Whether this is a speech-to-text model (Purpose::Transcribe).