#[non_exhaustive]pub enum CheckpointFormat {
Gguf,
Safetensors,
}Expand description
On-disk checkpoint container 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.
Gguf
GGUF v3 single-file checkpoint.
Safetensors
Safetensors single file, Hugging Face shard index, or shard directory.
Implementations§
Trait Implementations§
Source§impl Clone for CheckpointFormat
impl Clone for CheckpointFormat
impl Copy for CheckpointFormat
Source§impl Debug for CheckpointFormat
impl Debug for CheckpointFormat
Source§impl Display for CheckpointFormat
impl Display for CheckpointFormat
impl Eq for CheckpointFormat
Source§impl Hash for CheckpointFormat
impl Hash for CheckpointFormat
Source§impl Ord for CheckpointFormat
impl Ord for CheckpointFormat
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CheckpointFormat
impl PartialEq for CheckpointFormat
Source§impl PartialOrd for CheckpointFormat
impl PartialOrd for CheckpointFormat
impl StructuralPartialEq for CheckpointFormat
Auto Trait Implementations§
impl Forget for CheckpointFormat
impl Freeze for CheckpointFormat
impl Move for CheckpointFormat
impl RefUnwindSafe for CheckpointFormat
impl Send for CheckpointFormat
impl Sync for CheckpointFormat
impl Unpin for CheckpointFormat
impl UnsafeUnpin for CheckpointFormat
impl UnwindSafe for CheckpointFormat
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