pub enum ModelArchitecture {
Show 35 variants
Mistral,
Gemma,
Gemma2,
Gemma3,
Mixtral,
Llama,
Llama4,
Phi2,
Phi3,
Phi3_5MoE,
Qwen2,
Qwen3,
Qwen3Moe,
GLM4,
Starcoder2,
DeepseekV2,
DeepseekV3,
SmolLM3,
Phi3V,
Phi4MM,
Idefics2,
Idefics3,
LlavaNext,
Llava,
VLlama,
Qwen2VL,
Qwen2_5VL,
MiniCPM_O,
Gemma3n,
Mistral3,
NomicEmbed,
BGE,
Arctic,
Flux,
Dia,
}Expand description
Architecture supported by mistral.rs v0.7.0.
See: https://github.com/EricLBuehler/mistral.rs#supported-models
Note: Architecture names must match mistral.rs exactly (case-sensitive).
Variants§
Mistral
Mistral 7B and variants.
Gemma
Gemma (first generation).
Gemma2
Gemma 2.
Gemma3
Gemma 3.
Mixtral
Mixtral MoE models.
Llama
Llama (1, 2, 3).
Llama4
Llama 4.
Phi2
Phi-2.
Phi3
Phi-3.
Phi3_5MoE
Phi-3.5 MoE variant.
Qwen2
Qwen 2.
Qwen3
Qwen 3.
Qwen3Moe
Qwen 3 MoE variant.
GLM4
GLM-4 (ChatGLM).
Starcoder2
StarCoder 2.
DeepseekV2
DeepSeek V2.
DeepseekV3
DeepSeek V3.
SmolLM3
SmolLM 3.
Phi3V
Phi-3 Vision.
Phi4MM
Phi-4 Multimodal.
Idefics2
IDEFICS 2.
Idefics3
IDEFICS 3.
LlavaNext
LLaVA-NeXT.
Llava
LLaVA.
VLlama
Vision Llama.
Qwen2VL
Qwen2 Vision-Language.
Qwen2_5VL
Qwen 2.5 Vision-Language.
MiniCPM_O
MiniCPM-O (multimodal).
Gemma3n
Gemma 3 with native vision.
Mistral3
Mistral 3 with vision.
NomicEmbed
Nomic Embed architecture.
BGE
BAAI BGE embedding models.
Arctic
Snowflake Arctic embedding.
Flux
Flux diffusion model.
Dia
Dia audio model.
Implementations§
Trait Implementations§
Source§impl Clone for ModelArchitecture
impl Clone for ModelArchitecture
Source§fn clone(&self) -> ModelArchitecture
fn clone(&self) -> ModelArchitecture
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ModelArchitecture
impl Debug for ModelArchitecture
Source§impl Display for ModelArchitecture
impl Display for ModelArchitecture
Source§impl Hash for ModelArchitecture
impl Hash for ModelArchitecture
Source§impl PartialEq for ModelArchitecture
impl PartialEq for ModelArchitecture
impl Copy for ModelArchitecture
impl Eq for ModelArchitecture
impl StructuralPartialEq for ModelArchitecture
Auto Trait Implementations§
impl Freeze for ModelArchitecture
impl RefUnwindSafe for ModelArchitecture
impl Send for ModelArchitecture
impl Sync for ModelArchitecture
impl Unpin for ModelArchitecture
impl UnsafeUnpin for ModelArchitecture
impl UnwindSafe for ModelArchitecture
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.