pub struct SonaEngineBuilder { /* private fields */ }Expand description
Builder for SonaEngine
Implementations§
Source§impl SonaEngineBuilder
impl SonaEngineBuilder
Set hidden dimension
Sourcepub fn micro_lora_rank(self, rank: usize) -> Self
pub fn micro_lora_rank(self, rank: usize) -> Self
Set micro-LoRA rank
Sourcepub fn base_lora_rank(self, rank: usize) -> Self
pub fn base_lora_rank(self, rank: usize) -> Self
Set base-LoRA rank
Sourcepub fn ewc_lambda(self, lambda: f32) -> Self
pub fn ewc_lambda(self, lambda: f32) -> Self
Set EWC lambda
Sourcepub fn pattern_clusters(self, k: usize) -> Self
pub fn pattern_clusters(self, k: usize) -> Self
Set pattern clusters
Sourcepub fn buffer_capacity(self, capacity: usize) -> Self
pub fn buffer_capacity(self, capacity: usize) -> Self
Set trajectory buffer capacity
Sourcepub fn quality_threshold(self, threshold: f32) -> Self
pub fn quality_threshold(self, threshold: f32) -> Self
Set quality threshold
Sourcepub fn build(self) -> SonaEngine
pub fn build(self) -> SonaEngine
Build the engine
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SonaEngineBuilder
impl RefUnwindSafe for SonaEngineBuilder
impl Send for SonaEngineBuilder
impl Sync for SonaEngineBuilder
impl Unpin for SonaEngineBuilder
impl UnwindSafe for SonaEngineBuilder
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