pub struct DerivedResidency {
pub kept: u64,
pub skipped: u64,
pub freed: u64,
pub twins: TwinsBuilt,
}Expand description
Running tally of the derived (non-checkpoint) device bytes this loader allocated, and of the ones it decided not to build.
Counted in the loader rather than read back from the ledger because the
ledger cannot tell a derived copy from a checkpoint tensor — both are plain
gpu.alloc — and because the “not built” number is the one the fix is
judged on and has no allocation to read.
Fields§
§kept: u64Derived bytes still resident at the end of load.
skipped: u64Derived bytes the plan declined to build, versus the pre-#915 loader.
freed: u64Transient derived bytes allocated and freed during load.
twins: TwinsBuiltWhich twin families were built, for the one-line summary.
Implementations§
Source§impl DerivedResidency
impl DerivedResidency
pub fn keep(&mut self, bytes: usize)
pub fn skip(&mut self, bytes: usize)
pub fn free(&mut self, bytes: usize)
Sourcepub fn summary(&self, weight_bytes: usize) -> String
pub fn summary(&self, weight_bytes: usize) -> String
The line the next H100 run is read against.
Emitted at the end of load_layers so a serve log proves the residency
without an ATLAS_MEM_PROFILE rerun: weights is the checkpoint,
derived is everything this loader built on top of it, and skipped
is what the pre-#915 loader would have built and this one did not.
Trait Implementations§
Source§impl Clone for DerivedResidency
impl Clone for DerivedResidency
Source§fn clone(&self) -> DerivedResidency
fn clone(&self) -> DerivedResidency
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DerivedResidency
impl Debug for DerivedResidency
Source§impl Default for DerivedResidency
impl Default for DerivedResidency
Source§fn default() -> DerivedResidency
fn default() -> DerivedResidency
Source§impl PartialEq for DerivedResidency
impl PartialEq for DerivedResidency
impl Copy for DerivedResidency
impl Eq for DerivedResidency
impl StructuralPartialEq for DerivedResidency
Auto Trait Implementations§
impl Freeze for DerivedResidency
impl RefUnwindSafe for DerivedResidency
impl Send for DerivedResidency
impl Sync for DerivedResidency
impl Unpin for DerivedResidency
impl UnwindSafe for DerivedResidency
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.