MCPcopy Create free account
hub / github.com/evilsocket/cake / get_expert

Method get_expert

cake-core/src/models/common/expert_provider.rs:90–96  ·  view source on GitHub ↗
(&self, idx: usize)

Source from the content-addressed store, hash-verified

88
89impl ExpertProvider for StackedResidentProvider {
90 fn get_expert(&self, idx: usize) -> Result<ExpertWeights> {
91 Ok(ExpertWeights {
92 gate_proj: self.gate_proj.get(idx)?,
93 up_proj: self.up_proj.get(idx)?,
94 down_proj: self.down_proj.get(idx)?,
95 })
96 }
97
98 fn num_experts(&self) -> usize {
99 self.num_experts

Callers 15

flash_moe_topk_expertsFunction · 0.45
stacked_get_expertFunction · 0.45
individual_get_expertFunction · 0.45
disk_get_expert_warmFunction · 0.45
trait_object_get_expertFunction · 0.45
pread_k_expertsFunction · 0.45
forwardMethod · 0.45

Calls 2

getMethod · 0.45
cloneMethod · 0.45