pub struct TideOffloadStats {
pub cpu_tokens: u64,
pub gpu_tokens: u64,
pub cpu_calls: u64,
pub gpu_calls: u64,
pub cpu_compute_time: u64,
pub gpu_compute_time: u64,
pub cpu_tokens_move_time: u64,
pub gpu_tokens_move_time: u64,
pub experts_move_time: u64,
pub promotions: u64,
pub demotions: u64,
}Expand description
Cumulative counters aligned with TIDE LLaDA2MoeSparseMoeBlock.offload_stats.
Fields§
§cpu_tokens: u64§gpu_tokens: u64§cpu_calls: u64§gpu_calls: u64§cpu_compute_time: u64§gpu_compute_time: u64§cpu_tokens_move_time: u64§gpu_tokens_move_time: u64§experts_move_time: u64§promotions: u64§demotions: u64Implementations§
Source§impl TideOffloadStats
impl TideOffloadStats
pub fn merge(&mut self, other: &TideOffloadStats)
Sourcepub fn as_tide_dict(&self) -> HashMap<&'static str, u64>
pub fn as_tide_dict(&self) -> HashMap<&'static str, u64>
Map to TIDE get_offload_stats() key names.
Trait Implementations§
Source§impl Clone for TideOffloadStats
impl Clone for TideOffloadStats
Source§fn clone(&self) -> TideOffloadStats
fn clone(&self) -> TideOffloadStats
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 TideOffloadStats
impl Debug for TideOffloadStats
Source§impl Default for TideOffloadStats
impl Default for TideOffloadStats
Source§fn default() -> TideOffloadStats
fn default() -> TideOffloadStats
Returns the “default value” for a type. Read more
impl Eq for TideOffloadStats
Source§impl PartialEq for TideOffloadStats
impl PartialEq for TideOffloadStats
Source§fn eq(&self, other: &TideOffloadStats) -> bool
fn eq(&self, other: &TideOffloadStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TideOffloadStats
Auto Trait Implementations§
impl Freeze for TideOffloadStats
impl RefUnwindSafe for TideOffloadStats
impl Send for TideOffloadStats
impl Sync for TideOffloadStats
impl Unpin for TideOffloadStats
impl UnsafeUnpin for TideOffloadStats
impl UnwindSafe for TideOffloadStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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