#[non_exhaustive]pub enum ModelFormat {
SafeTensors,
GGUF,
ONNX,
PyTorch,
}Expand description
Detected model file format.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SafeTensors
HuggingFace SafeTensors format.
GGUF
GGML/GGUF format (llama.cpp).
ONNX
ONNX (Open Neural Network Exchange).
PyTorch
PyTorch serialized format (pickle-based).
Trait Implementations§
Source§impl Clone for ModelFormat
impl Clone for ModelFormat
Source§fn clone(&self) -> ModelFormat
fn clone(&self) -> ModelFormat
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 moreSource§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
Source§impl Display for ModelFormat
impl Display 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 Copy for ModelFormat
impl Eq 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