Skip to main content

CatalogEntry

Struct CatalogEntry 

Source
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: f32

Total and active parameters, in billions (they differ for mixture-of-experts models).

§active_params_b: f32§kv_bytes_per_token: u64

KV cache bytes per token at f16 (layers x KV heads x head dim x 2 x 2).

§context: u32

Context the sizing assumes per slot.

Implementations§

Source§

impl CatalogEntry

Source

pub fn id(&self) -> &str

Source

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.

Source

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.

Source

pub fn speaks(&self) -> bool

Whether this is a text-to-speech model (Purpose::Speak). Since 0.5.5.

Source

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.

Source

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.

Source

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.
Source

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.

Source

pub fn transcribes(&self) -> bool

Whether this is a speech-to-text model (Purpose::Transcribe).

Trait Implementations§

Source§

impl Clone for CatalogEntry

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CatalogEntry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CatalogEntry

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for CatalogEntry

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for CatalogEntry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CatalogEntry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.