pub enum KvError {
ZeroDimension(&'static str),
ZeroWorkload(&'static str),
Overflow,
InvalidBudget,
}Expand description
Why a configuration or a query could not be evaluated.
Every variant is a refusal, never a silently approximated answer.
Variants§
ZeroDimension(&'static str)
A structural field of the model config was zero.
A transformer with no layers, no key-value heads or a zero head dimension is not a model this formula describes.
ZeroWorkload(&'static str)
context_length or batch_size was zero.
Overflow
The requested cache does not fit in a u64 byte count.
InvalidBudget
A memory budget was negative or not finite.
Trait Implementations§
impl Copy for KvError
impl Eq for KvError
impl StructuralPartialEq for KvError
Auto Trait Implementations§
impl Freeze for KvError
impl RefUnwindSafe for KvError
impl Send for KvError
impl Sync for KvError
impl Unpin for KvError
impl UnsafeUnpin for KvError
impl UnwindSafe for KvError
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