pub struct Serving {
pub batch: u32,
pub contexts: ContextMix,
pub kv_page: Option<u64>,
pub attention: AttentionMath,
pub kv_bytes: f64,
pub state_bytes: f64,
pub activation_words: u32,
pub scaling: ActScaling,
pub kv_rotated: bool,
pub draft: Option<Draft>,
pub flush: StateFlush,
pub host_memory: bool,
}Expand description
One serving configuration of a checkpoint on a card.
Fields§
§batch: u32Sequences that ride a pass.
contexts: ContextMix§kv_page: Option<u64>Positions per KV page when the caches are paged: each sequence then holds its own length and half a page, on average, instead of its whole limit.
attention: AttentionMath§kv_bytes: f64Bytes per KV-cache element.
state_bytes: f64Bytes per recurrent-state element.
activation_words: u32Words each activation crosses the array in: one 8-bit word, or two (a word and its residual).
scaling: ActScalingHow the activations a matrix reads are scaled: per 32 elements, or per the matrix format’s block.
kv_rotated: boolWhether each cached key and value head row is rotated by the Walsh–Hadamard transform before its int8 codes, the queries rotated alike and every head’s weighted sum rotated back.
draft: Option<Draft>§flush: StateFlush§host_memory: boolWhether sequences the card’s memory cannot hold, or whose traffic it is better without, may keep their state and caches in host memory, streamed over the host link each pass.
Trait Implementations§
impl StructuralPartialEq for Serving
Auto Trait Implementations§
impl Freeze for Serving
impl RefUnwindSafe for Serving
impl Send for Serving
impl Sync for Serving
impl Unpin for Serving
impl UnsafeUnpin for Serving
impl UnwindSafe for Serving
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.