pub enum LittleBitError {
Candle(Error),
SafeTensors(SafeTensorError),
Io(Error),
Json(Error),
InvalidConfig(String),
InvalidShape {
expected: String,
actual: String,
},
InvalidBinaryValue {
row: usize,
col: usize,
value: i8,
},
SvdFailed(String),
MissingTensor(String),
UnsupportedDtype(String),
CheckpointNotFound(String),
}Expand description
Errors produced by LittleBit quantization, SVD/ITQ decomposition, packing, or I/O.
Variants§
Candle(Error)
Underlying Candle tensor operation failed.
SafeTensors(SafeTensorError)
Safetensors serialization or deserialization failed.
Io(Error)
Filesystem I/O failure.
Json(Error)
JSON configuration or index parsing failure.
InvalidConfig(String)
Invalid quantization configuration or hyperparameter.
InvalidShape
Tensor shape did not match expected dimensions.
InvalidBinaryValue
Binary tensor contained a value other than -1 or +1.
SvdFailed(String)
Linear algebra SVD computation failed.
MissingTensor(String)
Required checkpoint tensor was missing from the state dictionary.
UnsupportedDtype(String)
Tensor dtype is not supported by the operation.
CheckpointNotFound(String)
Model directory contains no recognized checkpoint weights.
Trait Implementations§
Source§impl Debug for LittleBitError
impl Debug for LittleBitError
Source§impl Display for LittleBitError
impl Display for LittleBitError
Source§impl Error for LittleBitError
impl Error for LittleBitError
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<Error> for LittleBitError
impl From<Error> for LittleBitError
Source§impl From<Error> for LittleBitError
impl From<Error> for LittleBitError
Source§impl From<Error> for LittleBitError
impl From<Error> for LittleBitError
Auto Trait Implementations§
impl !RefUnwindSafe for LittleBitError
impl !UnwindSafe for LittleBitError
impl Freeze for LittleBitError
impl Send for LittleBitError
impl Sync for LittleBitError
impl Unpin for LittleBitError
impl UnsafeUnpin for LittleBitError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T, U> Imply<T> for U
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§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more