#[non_exhaustive]pub enum ArtifactError {
Show 17 variants
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),
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
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.
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()