pub struct ClusterRun {
pub timings: Vec<StageTiming>,
pub total_forward_ms: u64,
pub output: Vec<f32>,
}Expand description
Full run result: the model output + per-node monitoring.
Fields§
§timings: Vec<StageTiming>§total_forward_ms: u64§output: Vec<f32>Final-stage output (e.g. logits), flat.
Implementations§
Source§impl ClusterRun
impl ClusterRun
Sourcepub fn tokens_per_s(&self, seq: usize) -> f64
pub fn tokens_per_s(&self, seq: usize) -> f64
Throughput in tokens/s given the sequence length driven.
Sourcepub fn reduce_resident_gb(&self, kind: ReduceKind) -> f64
pub fn reduce_resident_gb(&self, kind: ReduceKind) -> f64
Aggregate a per-node metric with a reduce op — the SAME ReduceKind
semantics the collective all-reduce uses for tensor-parallel partial sums.
(Here over locally-gathered stats; crate::cluster::all_reduce runs the
real cross-node collective.)
Sourcepub fn critical_path_ms(&self) -> u64
pub fn critical_path_ms(&self) -> u64
Critical-path forward time = MAX over stages (a reduce-Max); the pipeline bottleneck the planner’s throughput policy minimizes.
Trait Implementations§
Source§impl Clone for ClusterRun
impl Clone for ClusterRun
Source§fn clone(&self) -> ClusterRun
fn clone(&self) -> ClusterRun
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 moreAuto Trait Implementations§
impl Freeze for ClusterRun
impl RefUnwindSafe for ClusterRun
impl Send for ClusterRun
impl Sync for ClusterRun
impl Unpin for ClusterRun
impl UnsafeUnpin for ClusterRun
impl UnwindSafe for ClusterRun
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more