pub struct KnownModel {
pub id: &'static str,
pub name: &'static str,
pub model_type: ModelType,
pub architecture: ModelArchitecture,
pub hf_repo: &'static str,
pub default_file: &'static str,
pub quantizations: &'static [(Quantization, &'static str)],
pub param_billions: f32,
pub min_ram_gb: u32,
pub description: &'static str,
}Expand description
A curated model in the registry.
These models are pre-validated for compatibility with mistral.rs and have tested quantization options.
Fields§
§id: &'static strShort ID used in YAML (e.g., “qwen3:8b”).
name: &'static strHuman-readable name.
model_type: ModelTypeModel type (Text, Vision, Embedding, etc.).
architecture: ModelArchitectureArchitecture for mistral.rs.
hf_repo: &'static strHuggingFace repo (e.g., “Qwen/Qwen3-8B-GGUF”).
default_file: &'static strDefault GGUF filename.
quantizations: &'static [(Quantization, &'static str)]Available quantizations with filenames.
param_billions: f32Model size in billions of parameters.
min_ram_gb: u32Minimum RAM in GB for Q4_K_M quantization.
description: &'static strDescription.
Implementations§
Source§impl KnownModel
impl KnownModel
Sourcepub fn filename_for_quant(&self, quant: Quantization) -> Option<&'static str>
pub fn filename_for_quant(&self, quant: Quantization) -> Option<&'static str>
Get the filename for a specific quantization.
Sourcepub fn default_quantization(&self) -> Option<Quantization>
pub fn default_quantization(&self) -> Option<Quantization>
Get the default quantization (first in list).
Sourcepub fn supports_quant(&self, quant: Quantization) -> bool
pub fn supports_quant(&self, quant: Quantization) -> bool
Check if this model supports a specific quantization.
Trait Implementations§
Source§impl Clone for KnownModel
impl Clone for KnownModel
Source§fn clone(&self) -> KnownModel
fn clone(&self) -> KnownModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KnownModel
impl RefUnwindSafe for KnownModel
impl Send for KnownModel
impl Sync for KnownModel
impl Unpin for KnownModel
impl UnsafeUnpin for KnownModel
impl UnwindSafe for KnownModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more