pub struct AutoTuningConfig {
pub health_window: usize,
pub plateau_window: usize,
pub plateau_velocity_threshold: f32,
pub enable_warmup_restart: bool,
pub warmup_restart_lr_multiplier: f32,
pub warmup_restart_cooldown: u64,
pub max_warmup_restarts: usize,
pub enable_gradient_clipping: bool,
pub agc_lambda: f32,
pub phase_thresholds: HashMap<String, PhaseGradientThresholds>,
}Expand description
Configuration for the automatic tuning controller.
Controls the behavior of health scoring, gradient tuning, and plateau detection.
Fields§
§health_window: usizeWindow size for health scoring (number of steps to consider).
plateau_window: usizeWindow size for plateau detection.
plateau_velocity_threshold: f32Minimum velocity threshold for plateau detection (absolute value).
enable_warmup_restart: boolWhether to enable automatic warmup restarts.
warmup_restart_lr_multiplier: f32Learning rate multiplier for warmup restart (e.g., 1.5).
warmup_restart_cooldown: u64Cooldown steps between warmup restarts.
max_warmup_restarts: usizeMaximum number of warmup restarts allowed.
enable_gradient_clipping: boolEnable adaptive gradient clipping.
agc_lambda: f32AGC lambda parameter for per-layer clipping.
phase_thresholds: HashMap<String, PhaseGradientThresholds>Phase-specific gradient thresholds.
Trait Implementations§
Source§impl Clone for AutoTuningConfig
impl Clone for AutoTuningConfig
Source§fn clone(&self) -> AutoTuningConfig
fn clone(&self) -> AutoTuningConfig
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 AutoTuningConfig
impl Debug for AutoTuningConfig
Source§impl Default for AutoTuningConfig
impl Default for AutoTuningConfig
Source§impl<'de> Deserialize<'de> for AutoTuningConfig
impl<'de> Deserialize<'de> for AutoTuningConfig
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
Auto Trait Implementations§
impl Freeze for AutoTuningConfig
impl RefUnwindSafe for AutoTuningConfig
impl Send for AutoTuningConfig
impl Sync for AutoTuningConfig
impl Unpin for AutoTuningConfig
impl UnwindSafe for AutoTuningConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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