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)
Sourcepub fn for_ephemeral() -> Self
pub fn for_ephemeral() -> Self
Create config for ephemeral agents (~5MB footprint)
Optimized for lightweight federated learning nodes that collect trajectories locally before aggregation.
Sourcepub fn for_coordinator() -> Self
pub fn for_coordinator() -> Self
Create config for federated coordinator (central aggregation)
Optimized for aggregating trajectories from multiple ephemeral agents with larger capacity and pattern storage.
Trait Implementations§
Source§impl Clone for SonaConfig
impl Clone for SonaConfig
Source§fn clone(&self) -> SonaConfig
fn clone(&self) -> SonaConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more