pub struct PhaseDetectorConfig {
pub io_wait_threshold: f32,
pub optimizer_burst_max_ns: u64,
pub gpu_idle_threshold: u8,
pub gpu_active_threshold: u8,
pub phase_stability_count: u32,
pub nccl_detection_enabled: bool,
}Expand description
Thresholds for phase detection heuristics.
Fields§
§io_wait_threshold: f32I/O wait fraction above which we classify as DataLoading.
optimizer_burst_max_ns: u64Duration (ns) below which a CPU burst after GpuCompute is an OptimizerStep.
gpu_idle_threshold: u8GPU utilization below which we suspect the GPU is idle.
gpu_active_threshold: u8GPU utilization above which we consider GPU actively computing.
phase_stability_count: u32Number of consecutive identical phase samples before committing transition.
nccl_detection_enabled: boolEnable NCCL collective detection.
Trait Implementations§
Source§impl Clone for PhaseDetectorConfig
impl Clone for PhaseDetectorConfig
Source§fn clone(&self) -> PhaseDetectorConfig
fn clone(&self) -> PhaseDetectorConfig
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 PhaseDetectorConfig
impl Debug for PhaseDetectorConfig
Source§impl Default for PhaseDetectorConfig
impl Default for PhaseDetectorConfig
Source§impl<'de> Deserialize<'de> for PhaseDetectorConfig
impl<'de> Deserialize<'de> for PhaseDetectorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&PhaseDetectionConfig> for PhaseDetectorConfig
impl From<&PhaseDetectionConfig> for PhaseDetectorConfig
Source§fn from(cfg: &PhaseDetectionConfig) -> Self
fn from(cfg: &PhaseDetectionConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PhaseDetectorConfig
impl RefUnwindSafe for PhaseDetectorConfig
impl Send for PhaseDetectorConfig
impl Sync for PhaseDetectorConfig
impl Unpin for PhaseDetectorConfig
impl UnwindSafe for PhaseDetectorConfig
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