pub struct DecodeStep {
pub deployment: Deployment,
pub stages: Vec<Stage>,
pub held: Vec<Held>,
}Expand description
What one token of a deployment reads, writes and computes, as the chain of its dependent stages.
Fields§
§deployment: Deployment§stages: Vec<Stage>§held: Vec<Held>Bytes the deployment holds resident: every weight the step reads (the whole embedding table, not one row), the KV cache at the deployment’s context and the recurrent state, by how often a token moves them.
Implementations§
Source§impl DecodeStep
impl DecodeStep
Sourcepub fn of(h: &GgufHeader, d: &Deployment) -> Result<DecodeStep, DecodeRefusal>
pub fn of(h: &GgufHeader, d: &Deployment) -> Result<DecodeStep, DecodeRefusal>
The step of d over the checkpoint h describes.
pub fn weight_bytes(&self) -> f64
pub fn state_read_bytes(&self) -> f64
pub fn state_write_bytes(&self) -> f64
pub fn ops(&self) -> f64
Sourcepub fn held_bytes(&self) -> f64
pub fn held_bytes(&self) -> f64
Every byte the deployment keeps resident.
Trait Implementations§
Source§impl Clone for DecodeStep
impl Clone for DecodeStep
Source§fn clone(&self) -> DecodeStep
fn clone(&self) -> DecodeStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodeStep
impl Debug for DecodeStep
Source§impl PartialEq for DecodeStep
impl PartialEq for DecodeStep
Source§impl Serialize for DecodeStep
impl Serialize for DecodeStep
impl StructuralPartialEq for DecodeStep
Auto Trait Implementations§
impl Freeze for DecodeStep
impl RefUnwindSafe for DecodeStep
impl Send for DecodeStep
impl Sync for DecodeStep
impl Unpin for DecodeStep
impl UnsafeUnpin for DecodeStep
impl UnwindSafe for DecodeStep
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
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.