pub enum ModelFormat {
Gguf,
GgmlBin,
Safetensors,
MlxSafetensors,
Diffusers,
OllamaStore,
Builtin,
Endpoint,
Unknown,
}Expand description
A recognized model format — the on-disk weight formats plus the logical
sources (a diffusers pipeline directory, an Ollama store entry, a built-in or
remote-endpoint model), and Unknown for anything unrecognized.
Variants§
Gguf
A GGUF weight file (llama.cpp).
GgmlBin
A legacy GGML .bin weight file.
Safetensors
A safetensors weight directory.
MlxSafetensors
An MLX-format safetensors weight directory.
Diffusers
A diffusers pipeline directory (a model_index.json).
OllamaStore
An entry in a local Ollama store.
Builtin
A built-in (platform-provided) model.
Endpoint
A remote inference endpoint.
Unknown
An unrecognized format.
Trait Implementations§
Source§impl Clone for ModelFormat
impl Clone for ModelFormat
impl Copy for ModelFormat
Source§impl Debug for ModelFormat
impl Debug for ModelFormat
Source§impl<'de> Deserialize<'de> for ModelFormat
impl<'de> Deserialize<'de> for ModelFormat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelFormat
Source§impl Hash for ModelFormat
impl Hash for ModelFormat
Source§impl PartialEq for ModelFormat
impl PartialEq for ModelFormat
Source§impl Serialize for ModelFormat
impl Serialize for ModelFormat
impl StructuralPartialEq for ModelFormat
Auto Trait Implementations§
impl Freeze for ModelFormat
impl RefUnwindSafe for ModelFormat
impl Send for ModelFormat
impl Sync for ModelFormat
impl Unpin for ModelFormat
impl UnsafeUnpin for ModelFormat
impl UnwindSafe for ModelFormat
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