pub enum TrainError {
Core(LittleBitError),
Model(ModelError),
Candle(Error),
Io(Error),
Json(Error),
Hub(HFError),
Tokenizer(String),
Http(String),
InvalidArgument(String),
}Expand description
Errors produced during QAT knowledge distillation, data preparation, or evaluation.
Variants§
Core(LittleBitError)
Error from littlebit-core.
Model(ModelError)
Error from littlebit-models.
Candle(Error)
Underlying Candle tensor error.
Io(Error)
Filesystem I/O failure.
Json(Error)
JSON parse or serialization failure.
Hub(HFError)
Hugging Face Hub error.
Tokenizer(String)
Tokenizer error.
Http(String)
HTTP dataset fetch error.
InvalidArgument(String)
Invalid training or evaluation argument.
Trait Implementations§
Source§impl Debug for TrainError
impl Debug for TrainError
Source§impl Display for TrainError
impl Display for TrainError
Source§impl Error for TrainError
impl Error for TrainError
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 TrainError
impl From<Error> for TrainError
Source§impl From<Error> for TrainError
impl From<Error> for TrainError
Source§impl From<Error> for TrainError
impl From<Error> for TrainError
Source§impl From<HFError> for TrainError
impl From<HFError> for TrainError
Source§impl From<LittleBitError> for TrainError
impl From<LittleBitError> for TrainError
Auto Trait Implementations§
impl !RefUnwindSafe for TrainError
impl !UnwindSafe for TrainError
impl Freeze for TrainError
impl Send for TrainError
impl Sync for TrainError
impl Unpin for TrainError
impl UnsafeUnpin for TrainError
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> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<E> ResultError for E
§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