#[non_exhaustive]pub enum TrainingMethod {
FullFineTune,
LoRA,
QLoRA {
bits: u8,
},
Prefix,
DPO,
RLHF,
Distillation,
}Expand description
Fine-tuning / training method.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl TrainingMethod
impl TrainingMethod
Sourcepub fn preferred_accelerator(&self) -> AcceleratorRequirement
pub fn preferred_accelerator(&self) -> AcceleratorRequirement
Preferred accelerator requirement for this training method.
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§fn default() -> TrainingMethod
fn default() -> TrainingMethod
Returns the “default value” for a type. Read more
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
Source§impl Display for TrainingMethod
impl Display for TrainingMethod
Source§impl PartialEq for TrainingMethod
impl PartialEq for TrainingMethod
Source§impl Serialize for TrainingMethod
impl Serialize for TrainingMethod
impl Copy for TrainingMethod
impl Eq for TrainingMethod
impl StructuralPartialEq for TrainingMethod
Auto Trait Implementations§
impl Freeze for TrainingMethod
impl RefUnwindSafe for TrainingMethod
impl Send for TrainingMethod
impl Sync for TrainingMethod
impl Unpin for TrainingMethod
impl UnsafeUnpin 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