pub struct ExpertAnalyzer { /* private fields */ }Expand description
Main analyzer for Kimi experts
Implementations§
Source§impl ExpertAnalyzer
impl ExpertAnalyzer
Sourcepub fn new(config: AnalysisConfig) -> Self
pub fn new(config: AnalysisConfig) -> Self
Create a new expert analyzer
Sourcepub fn analyze_expert(&mut self, domain: ExpertDomain) -> Result<ExpertMetrics>
pub fn analyze_expert(&mut self, domain: ExpertDomain) -> Result<ExpertMetrics>
Analyze an expert by domain
Sourcepub fn distill_experts(
&self,
config: DistillationConfig,
) -> Result<Vec<DistilledExpert>>
pub fn distill_experts( &self, config: DistillationConfig, ) -> Result<Vec<DistilledExpert>>
Distill experts for WASM deployment
Sourcepub fn get_summary(&self) -> AnalysisSummary
pub fn get_summary(&self) -> AnalysisSummary
Get analysis summary
Auto Trait Implementations§
impl Freeze for ExpertAnalyzer
impl RefUnwindSafe for ExpertAnalyzer
impl Send for ExpertAnalyzer
impl Sync for ExpertAnalyzer
impl Unpin for ExpertAnalyzer
impl UnwindSafe for ExpertAnalyzer
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