pub struct SonaConfig {
pub hidden_dim: usize,
pub embedding_dim: usize,
pub micro_lora_rank: usize,
pub base_lora_rank: usize,
pub micro_lora_lr: f32,
pub base_lora_lr: f32,
pub ewc_lambda: f32,
pub pattern_clusters: usize,
pub trajectory_capacity: usize,
pub background_interval_ms: u64,
pub quality_threshold: f32,
pub enable_simd: bool,
}Expand description
SONA configuration
Fields§
Hidden dimension
embedding_dim: usizeEmbedding dimension
micro_lora_rank: usizeMicro-LoRA rank
base_lora_rank: usizeBase LoRA rank
micro_lora_lr: f32Micro-LoRA learning rate
base_lora_lr: f32Base LoRA learning rate
ewc_lambda: f32EWC lambda
pattern_clusters: usizePattern extraction clusters
trajectory_capacity: usizeTrajectory buffer capacity
background_interval_ms: u64Background learning interval (ms)
quality_threshold: f32Quality threshold for learning
enable_simd: boolEnable SIMD optimizations
Implementations§
Source§impl SonaConfig
impl SonaConfig
Sourcepub fn max_throughput() -> Self
pub fn max_throughput() -> Self
Create config optimized for maximum throughput (real-time chat)
Sourcepub fn max_quality() -> Self
pub fn max_quality() -> Self
Create config optimized for maximum quality (research/batch)
Sourcepub fn edge_deployment() -> Self
pub fn edge_deployment() -> Self
Create config for edge/mobile deployment (<5MB memory)
Sourcepub fn batch_processing() -> Self
pub fn batch_processing() -> Self
Create config for batch processing (50+ inferences/sec)
Trait Implementations§
Source§impl Clone for SonaConfig
impl Clone for SonaConfig
Source§fn clone(&self) -> SonaConfig
fn clone(&self) -> SonaConfig
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 SonaConfig
impl Debug for SonaConfig
Source§impl Default for SonaConfig
impl Default for SonaConfig
Source§impl<'de> Deserialize<'de> for SonaConfig
impl<'de> Deserialize<'de> for SonaConfig
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 From<&SonaConfig> for BackgroundLoopConfig
impl From<&SonaConfig> for BackgroundLoopConfig
Source§fn from(config: &SonaConfig) -> Self
fn from(config: &SonaConfig) -> Self
Converts to this type from the input type.
Source§impl From<&SonaConfig> for InstantLoopConfig
impl From<&SonaConfig> for InstantLoopConfig
Source§fn from(config: &SonaConfig) -> Self
fn from(config: &SonaConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SonaConfig
impl RefUnwindSafe for SonaConfig
impl Send for SonaConfig
impl Sync for SonaConfig
impl Unpin for SonaConfig
impl UnwindSafe for SonaConfig
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