pub enum DeltaMethod {
LoRA {
rank: usize,
alpha: f32,
},
QLoRA {
rank: usize,
alpha: f32,
bits: u8,
},
FullDiff,
Adapter,
Prefix {
num_tokens: usize,
},
Custom(String),
}Expand description
Fine-tuning delta method
Variants§
LoRA
Low-Rank Adaptation
QLoRA
Quantized LoRA
FullDiff
Full fine-tuning diff
Adapter
Adapter layers
Prefix
Prefix tuning
Custom(String)
Custom method
Trait Implementations§
Source§impl Clone for DeltaMethod
impl Clone for DeltaMethod
Source§fn clone(&self) -> DeltaMethod
fn clone(&self) -> DeltaMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeltaMethod
impl Debug for DeltaMethod
Source§impl<'de> Deserialize<'de> for DeltaMethod
impl<'de> Deserialize<'de> for DeltaMethod
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 PartialEq for DeltaMethod
impl PartialEq for DeltaMethod
Source§fn eq(&self, other: &DeltaMethod) -> bool
fn eq(&self, other: &DeltaMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeltaMethod
impl Serialize for DeltaMethod
impl StructuralPartialEq for DeltaMethod
Auto Trait Implementations§
impl Freeze for DeltaMethod
impl RefUnwindSafe for DeltaMethod
impl Send for DeltaMethod
impl Sync for DeltaMethod
impl Unpin for DeltaMethod
impl UnsafeUnpin for DeltaMethod
impl UnwindSafe for DeltaMethod
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