#[non_exhaustive]pub enum ArtifactError {
Show 20 variants
InvalidArtifactIdentity(String),
MissingArtifact(PathBuf),
UnsupportedContainer(PathBuf),
UnsupportedModelType(String),
UnsupportedGgufArchitecture(String),
MissingGgufArchitecture,
MissingRequiredGgufCompanion {
role: GgufCompanionRole,
filename_prefix: String,
searched_directories: Vec<PathBuf>,
},
InvalidArtifact(String),
InvalidArchitecturePlan(String),
DuplicateTensor(String),
SafetensorsShards(SafetensorsShardError),
ArtifactFingerprint(ArtifactFingerprintError),
CheckpointStore(StoreError),
UnsupportedQuantizationPolicy(String),
UnsupportedResidencyPolicy(String),
UnsupportedLoadingProtocol(LoadingProtocol),
Io(Error),
Json(Error),
Gguf(Error),
Catalog(CatalogError),
}Expand description
Portable artifact inspection/planning failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidArtifactIdentity(String)
Artifact identity domain, membership, or logical roles are invalid.
MissingArtifact(PathBuf)
Artifact path does not exist.
UnsupportedContainer(PathBuf)
Path is not a supported artifact container.
UnsupportedModelType(String)
Model type is not recognized.
UnsupportedGgufArchitecture(String)
GGUF architecture is not recognized.
MissingGgufArchitecture
GGUF architecture metadata is absent or has the wrong type.
MissingRequiredGgufCompanion
An architecture-required sibling GGUF artifact could not be found.
Fields
role: GgufCompanionRoleSemantic role of the missing companion.
InvalidArtifact(String)
Header/catalog content is contradictory.
InvalidArchitecturePlan(String)
Architecture-owned artifact planning rejected the inspected inputs.
DuplicateTensor(String)
A tensor name occurred more than once.
SafetensorsShards(SafetensorsShardError)
Canonical SafeTensors shard discovery or path admission failed.
ArtifactFingerprint(ArtifactFingerprintError)
Filesystem-backed stable content fingerprinting failed.
CheckpointStore(StoreError)
Prepared checkpoint source validation or acquisition failed.
UnsupportedQuantizationPolicy(String)
Requested quantization transformation is unavailable for the artifact.
UnsupportedResidencyPolicy(String)
Requested residency mode is unavailable for the artifact.
UnsupportedLoadingProtocol(LoadingProtocol)
The general model planner cannot satisfy the resolved loader contract.
Io(Error)
Ordinary filesystem error.
Json(Error)
JSON configuration/header error.
Gguf(Error)
GGUF parsing/catalog error.
Catalog(CatalogError)
Neutral tensor catalog error.
Trait Implementations§
Source§impl Debug for ArtifactError
impl Debug for ArtifactError
Source§impl Display for ArtifactError
impl Display for ArtifactError
Source§impl Error for ArtifactError
impl Error for ArtifactError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()