pub enum ServingRefusal {
Step(DecodeRefusal),
Undecoded {
tensor: String,
ty: GgmlType,
},
MissingTensor(String),
NotResident {
needed: f64,
capacity: f64,
},
OnChipOverflow {
needed: f64,
capacity: f64,
},
BadDraft(String),
Empty,
Routed,
NoHostLink,
BadContexts(String),
ContextBeyondModel {
limit: u64,
model: u64,
},
WideCacheOnArray {
kv_bytes: f64,
},
}Expand description
Why a serving could not be priced.
Variants§
Step(DecodeRefusal)
Undecoded
A matrix in a format neither the array nor the vector units read.
MissingTensor(String)
A tensor a stage names that the header does not hold.
NotResident
What the serving holds exceeds the card’s memory, and the host’s if it may use it.
OnChipOverflow
The batch’s token-rows exceed the card’s on-chip memory.
BadDraft(String)
A draft whose acceptance list is not one probability per drafted token.
Empty
A serving of no sequences, or no activation words.
Routed
A mixture of experts: which experts a pass reads depends on how its rows route, which the pricer does not model.
NoHostLink
A serving that may use host memory, on a card with no host link.
BadContexts(String)
A context mix whose shares do not sum to one, or a class past its own limit.
ContextBeyondModel
A context limit past the checkpoint’s own context length.
WideCacheOnArray
Attention on the array over a cache whose elements are wider than its 8-bit codes.
Trait Implementations§
Source§impl Clone for ServingRefusal
impl Clone for ServingRefusal
Source§fn clone(&self) -> ServingRefusal
fn clone(&self) -> ServingRefusal
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ServingRefusal
impl Debug for ServingRefusal
Source§impl From<DecodeRefusal> for ServingRefusal
impl From<DecodeRefusal> for ServingRefusal
Source§fn from(r: DecodeRefusal) -> ServingRefusal
fn from(r: DecodeRefusal) -> ServingRefusal
Source§impl PartialEq for ServingRefusal
impl PartialEq for ServingRefusal
Source§impl Serialize for ServingRefusal
impl Serialize for ServingRefusal
impl StructuralPartialEq for ServingRefusal
Auto Trait Implementations§
impl Freeze for ServingRefusal
impl RefUnwindSafe for ServingRefusal
impl Send for ServingRefusal
impl Sync for ServingRefusal
impl Unpin for ServingRefusal
impl UnsafeUnpin for ServingRefusal
impl UnwindSafe for ServingRefusal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.