#[non_exhaustive]pub enum ModelArtifact {
SafeTensors {
path: PathBuf,
configuration: ModelConfiguration,
tensors: TensorCatalog,
shards: SafetensorsShards,
},
Gguf {
path: PathBuf,
configuration: ModelConfiguration,
tensors: TensorCatalog,
validated: ValidatedGguf,
},
}Expand description
Portable artifact payload consumed by a backend materializer.
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
SafeTensors directory and validated header catalog.
Fields
§
configuration: ModelConfigurationResolved configuration.
§
tensors: TensorCatalogHeader-only tensor catalog.
§
shards: SafetensorsShardsExact canonical shard set admitted during header inspection.
Gguf
Validated GGUF checkpoint handle and metadata-derived configuration.
Fields
§
configuration: ModelConfigurationResolved configuration.
§
tensors: TensorCatalogHeader-only tensor catalog.
§
validated: ValidatedGgufPortable admission proof containing the exact primary and companions.
Trait Implementations§
Source§impl Clone for ModelArtifact
impl Clone for ModelArtifact
Source§fn clone(&self) -> ModelArtifact
fn clone(&self) -> ModelArtifact
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 moreAuto Trait Implementations§
impl Freeze for ModelArtifact
impl RefUnwindSafe for ModelArtifact
impl Send for ModelArtifact
impl Sync for ModelArtifact
impl Unpin for ModelArtifact
impl UnsafeUnpin for ModelArtifact
impl UnwindSafe for ModelArtifact
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