#[non_exhaustive]pub enum ModelLayout {
Gguf,
Safetensors,
Mlx,
}Expand description
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.
Gguf
GGUF files, for llama.cpp.
Safetensors
A safetensors directory (safetensors/<id>/), for vLLM.
Mlx
An MLX directory (mlx/<id>/), for MLX-LM.
Trait Implementations§
Source§impl Clone for ModelLayout
impl Clone for ModelLayout
impl Copy for ModelLayout
Source§impl Debug for ModelLayout
impl Debug for ModelLayout
Source§impl Default for ModelLayout
impl Default for ModelLayout
Source§impl<'de> Deserialize<'de> for ModelLayout
impl<'de> Deserialize<'de> for ModelLayout
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 ModelLayout
Source§impl Hash for ModelLayout
impl Hash for ModelLayout
Source§impl PartialEq for ModelLayout
impl PartialEq for ModelLayout
Source§impl Serialize for ModelLayout
impl Serialize for ModelLayout
impl StructuralPartialEq for ModelLayout
Auto Trait Implementations§
impl Forget for ModelLayout
impl Freeze for ModelLayout
impl Move for ModelLayout
impl RefUnwindSafe for ModelLayout
impl Send for ModelLayout
impl Sync for ModelLayout
impl Unpin for ModelLayout
impl UnsafeUnpin for ModelLayout
impl UnwindSafe for ModelLayout
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