pub enum TrainingMethod {
Supervised {
batch_size: usize,
epochs: usize,
},
RLHF {
reward_weight: f32,
kl_penalty: f32,
},
DPO {
beta: f32,
ref_weight: f32,
},
Online {
lr_decay: f32,
window_size: usize,
},
FewShot {
k_shot: usize,
meta_lr: f32,
},
}Expand description
Training method configuration
Variants§
Supervised
Standard supervised learning
RLHF
Reinforcement learning from feedback
DPO
Direct preference optimization
Online
Continuous online learning
FewShot
Few-shot adaptation
Trait Implementations§
Source§impl Clone for TrainingMethod
impl Clone for TrainingMethod
Source§fn clone(&self) -> TrainingMethod
fn clone(&self) -> TrainingMethod
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 TrainingMethod
impl Debug for TrainingMethod
Source§impl Default for TrainingMethod
impl Default for TrainingMethod
Source§impl<'de> Deserialize<'de> for TrainingMethod
impl<'de> Deserialize<'de> for TrainingMethod
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 TrainingMethod
impl RefUnwindSafe for TrainingMethod
impl Send for TrainingMethod
impl Sync for TrainingMethod
impl Unpin for TrainingMethod
impl UnwindSafe for TrainingMethod
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