pub struct MicroLoRAEngine { /* private fields */ }Expand description
Main MicroLoRA engine managing multiple LoRA pairs
Implementations§
Source§impl MicroLoRAEngine
impl MicroLoRAEngine
Sourcepub fn new(config: LoRAConfig) -> Self
pub fn new(config: LoRAConfig) -> Self
Create a new MicroLoRA engine
Sourcepub fn adapt_with_reward(&mut self, gradient: &[f32], improvement: f32)
pub fn adapt_with_reward(&mut self, gradient: &[f32], improvement: f32)
Adapt with improvement reward
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MicroLoRAEngine
impl RefUnwindSafe for MicroLoRAEngine
impl Send for MicroLoRAEngine
impl Sync for MicroLoRAEngine
impl Unpin for MicroLoRAEngine
impl UnsafeUnpin for MicroLoRAEngine
impl UnwindSafe for MicroLoRAEngine
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