pub struct HyprstreamTrainingConfig {
pub mode: TrainingMode,
pub target_adapter: Option<String>,
pub learning_rate: f64,
pub batch_size: usize,
pub steps_per_cycle: usize,
pub min_quality_threshold: f32,
pub train_base_model: bool,
pub ttt: TTTTrainingConfig,
pub lora_rank: usize,
pub lora_alpha: Option<f32>,
pub target_modules: Vec<String>,
}Expand description
Model-level training mode configuration (embedded in config.json under “hyprstream_training”)
This allows inference to automatically adapt models when enabled.
The training mode is set via hyprstream training set test_time_training.
Fields§
§mode: TrainingModeTraining mode: disabled, test_time_training, supervised
target_adapter: Option<String>Target adapter to train (e.g., “01_coding”)
learning_rate: f64Learning rate for training
batch_size: usizeBatch size for training (used by supervised mode)
steps_per_cycle: usizeTraining steps per cycle (used by supervised mode)
min_quality_threshold: f32Minimum quality score to keep examples (0.0-1.0)
train_base_model: boolEnable training on base model weights (vs LoRA only)
ttt: TTTTrainingConfigTTT-specific configuration (for TestTimeTraining mode)
lora_rank: usizeLoRA rank for TTT delta (default: 8)
lora_alpha: Option<f32>LoRA alpha scaling factor (default: None, which means alpha = rank)
target_modules: Vec<String>Target modules for LoRA adaptation (default: [“q_proj”, “v_proj”])
Implementations§
Source§impl HyprstreamTrainingConfig
impl HyprstreamTrainingConfig
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if training is enabled (mode != Disabled)
Trait Implementations§
Source§impl Clone for HyprstreamTrainingConfig
impl Clone for HyprstreamTrainingConfig
Source§fn clone(&self) -> HyprstreamTrainingConfig
fn clone(&self) -> HyprstreamTrainingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HyprstreamTrainingConfig
impl Debug for HyprstreamTrainingConfig
Source§impl Default for HyprstreamTrainingConfig
impl Default for HyprstreamTrainingConfig
Source§impl<'de> Deserialize<'de> for HyprstreamTrainingConfig
impl<'de> Deserialize<'de> for HyprstreamTrainingConfig
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>,
Auto Trait Implementations§
impl Freeze for HyprstreamTrainingConfig
impl RefUnwindSafe for HyprstreamTrainingConfig
impl Send for HyprstreamTrainingConfig
impl Sync for HyprstreamTrainingConfig
impl Unpin for HyprstreamTrainingConfig
impl UnsafeUnpin for HyprstreamTrainingConfig
impl UnwindSafe for HyprstreamTrainingConfig
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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