pub struct OptimalConfig {
pub method: Method,
pub rank: u32,
pub alpha: f32,
pub target_modules: Vec<String>,
pub trainable_params: u64,
pub trainable_percent: f64,
pub memory_gb: f64,
pub utilization_percent: f64,
pub speedup: f64,
}Expand description
Optimal LoRA configuration result.
Fields§
§method: MethodRecommended fine-tuning method
rank: u32Recommended LoRA rank
alpha: f32Recommended alpha scaling
target_modules: Vec<String>Target modules to apply LoRA
trainable_params: u64Estimated trainable parameters
trainable_percent: f64Percentage of total parameters that are trainable
memory_gb: f64Estimated memory requirement in GB
utilization_percent: f64VRAM utilization percentage
speedup: f64Training speedup compared to full fine-tuning
Implementations§
Source§impl OptimalConfig
impl OptimalConfig
Sourcepub fn to_comparison_table(&self) -> String
pub fn to_comparison_table(&self) -> String
Format as human-readable comparison table.
Trait Implementations§
Source§impl Clone for OptimalConfig
impl Clone for OptimalConfig
Source§fn clone(&self) -> OptimalConfig
fn clone(&self) -> OptimalConfig
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 moreAuto Trait Implementations§
impl Freeze for OptimalConfig
impl RefUnwindSafe for OptimalConfig
impl Send for OptimalConfig
impl Sync for OptimalConfig
impl Unpin for OptimalConfig
impl UnsafeUnpin for OptimalConfig
impl UnwindSafe for OptimalConfig
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