pub enum SpliceError {
Show 16 variants
Gguf(GgufError),
Load(LoadError),
Safetensors(SafetensorsError),
Write {
path: PathBuf,
source: GgufWriteError,
},
Reopen {
path: PathBuf,
source: ShardError,
},
NotBert {
path: PathBuf,
arch: String,
},
Split {
path: PathBuf,
shards: u64,
},
MissingHparam {
path: PathBuf,
key: String,
},
AlreadyPooled {
path: PathBuf,
spliced_from: String,
},
NoClassifier {
path: PathBuf,
},
HeadDtype {
path: PathBuf,
dtype: GgmlType,
allowed: [GgmlType; 4],
},
MissingSafetensor {
path: PathBuf,
tried: Vec<&'static str>,
},
SafetensorDtype {
path: PathBuf,
name: String,
dtype: SafetensorsDtype,
},
Shape {
path: PathBuf,
name: String,
shape: Vec<usize>,
n_embd: usize,
want: Vec<usize>,
},
Mismatch {
gguf: PathBuf,
safetensors: PathBuf,
mismatch: IdentityMismatch,
},
NotPooledAfterWrite {
path: PathBuf,
},
}Variants§
Gguf(GgufError)
Load(LoadError)
Safetensors(SafetensorsError)
Write
Reopen
NotBert
Split
MissingHparam
AlreadyPooled
NoClassifier
HeadDtype
MissingSafetensor
SafetensorDtype
Shape
Mismatch
NotPooledAfterWrite
Trait Implementations§
Source§impl Debug for SpliceError
impl Debug for SpliceError
Source§impl Display for SpliceError
impl Display for SpliceError
Source§impl Error for SpliceError
impl Error for SpliceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<GgufError> for SpliceError
impl From<GgufError> for SpliceError
Source§impl From<LoadError> for SpliceError
impl From<LoadError> for SpliceError
Source§impl From<SafetensorsError> for SpliceError
impl From<SafetensorsError> for SpliceError
Source§fn from(source: SafetensorsError) -> Self
fn from(source: SafetensorsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SpliceError
impl !UnwindSafe for SpliceError
impl Freeze for SpliceError
impl Send for SpliceError
impl Sync for SpliceError
impl Unpin for SpliceError
impl UnsafeUnpin for SpliceError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more