pub struct DecodingStats {
pub tokens_generated: usize,
pub acceptance_rate: f32,
pub speedup_ratio: f32,
pub draft_latency_ms: f64,
pub target_latency_ms: f64,
}Expand description
Aggregate statistics for a speculative decoding session.
Fields§
§tokens_generated: usizeTotal tokens generated across all steps.
acceptance_rate: f32Running acceptance rate.
speedup_ratio: f32Observed speedup ratio vs autoregressive decoding.
draft_latency_ms: f64Average draft model latency in milliseconds.
target_latency_ms: f64Average target model latency in milliseconds.
Trait Implementations§
Source§impl Clone for DecodingStats
impl Clone for DecodingStats
Source§fn clone(&self) -> DecodingStats
fn clone(&self) -> DecodingStats
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 DecodingStats
impl Debug for DecodingStats
Source§impl Default for DecodingStats
impl Default for DecodingStats
Source§fn default() -> DecodingStats
fn default() -> DecodingStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecodingStats
impl RefUnwindSafe for DecodingStats
impl Send for DecodingStats
impl Sync for DecodingStats
impl Unpin for DecodingStats
impl UnsafeUnpin for DecodingStats
impl UnwindSafe for DecodingStats
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