pub enum ModelFormat {
Gguf,
Safetensors,
Onnx,
}Expand description
Supported on-disk model formats (ADR-002). .pte/GGUF-via-C++ is gone;
Candle reads GGUF and safetensors natively, ONNX via tract.
Variants§
Implementations§
Source§impl ModelFormat
impl ModelFormat
Sourcepub fn runtime(self) -> RuntimeKind
pub fn runtime(self) -> RuntimeKind
The engine required by this format. Encodes the ADR-002 compatibility
rule (GGUF/safetensors → Candle, ONNX → tract).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelFormat
Source§impl Debug for ModelFormat
impl Debug for ModelFormat
impl Eq for ModelFormat
Source§impl PartialEq for ModelFormat
impl PartialEq 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