pub struct ForwardPassSnapshot {Show 18 fields
pub version: u32,
pub worker_id: String,
pub dp_rank: u32,
pub counter_id: u64,
pub num_prefill_requests: u32,
pub sum_prefill_tokens: u64,
pub var_prefill_length: f64,
pub sum_prefill_kv_tokens: u64,
pub num_decode_requests: u32,
pub sum_decode_kv_tokens: u64,
pub var_decode_kv_tokens: f64,
pub num_queued_prefill: u32,
pub sum_queued_prefill_tokens: u64,
pub var_queued_prefill_length: f64,
pub num_queued_decode: u32,
pub sum_queued_decode_kv_tokens: u64,
pub var_queued_decode_kv_tokens: f64,
pub wall_time_secs: f64,
}Expand description
Per-iteration forward pass snapshot, mirroring the Python ForwardPassMetrics
schema in components/src/dynamo/common/forward_pass_metrics.py.
Produced by the scheduler core after each execute_pass_internal() call.
Runtime publishers may either stamp identity at serialization time or fill
the identity fields directly when snapshots are consumed in-process.
Fields§
§version: u32§worker_id: String§dp_rank: u32§counter_id: u64§num_prefill_requests: u32§sum_prefill_tokens: u64§var_prefill_length: f64§sum_prefill_kv_tokens: u64§num_decode_requests: u32§sum_decode_kv_tokens: u64§var_decode_kv_tokens: f64§num_queued_prefill: u32§sum_queued_prefill_tokens: u64§var_queued_prefill_length: f64§num_queued_decode: u32§sum_queued_decode_kv_tokens: u64§var_queued_decode_kv_tokens: f64§wall_time_secs: f64Trait Implementations§
Source§impl Clone for ForwardPassSnapshot
impl Clone for ForwardPassSnapshot
Source§fn clone(&self) -> ForwardPassSnapshot
fn clone(&self) -> ForwardPassSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ForwardPassSnapshot
impl Debug for ForwardPassSnapshot
Source§impl Default for ForwardPassSnapshot
impl Default for ForwardPassSnapshot
Source§fn default() -> ForwardPassSnapshot
fn default() -> ForwardPassSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForwardPassSnapshot
impl RefUnwindSafe for ForwardPassSnapshot
impl Send for ForwardPassSnapshot
impl Sync for ForwardPassSnapshot
impl Unpin for ForwardPassSnapshot
impl UnsafeUnpin for ForwardPassSnapshot
impl UnwindSafe for ForwardPassSnapshot
Blanket Implementations§
impl<T> BlockMetadata for T
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