pub struct ExpertLoraLayer {
pub pairs: BTreeMap<(u16, ExpertProj), LoraPair>,
}Expand description
2026-09-25: One MoE layer’s routed-expert pairs, keyed by
(expert_index, projection); only adapted experts have entries.
Fields§
§pairs: BTreeMap<(u16, ExpertProj), LoraPair>Implementations§
Source§impl ExpertLoraLayer
impl ExpertLoraLayer
Sourcepub fn pair(&self, expert: u16, proj: ExpertProj) -> Option<&LoraPair>
pub fn pair(&self, expert: u16, proj: ExpertProj) -> Option<&LoraPair>
2026-09-25: This layer’s (expert, proj) pair, if adapted.
Sourcepub fn adapted_experts(&self) -> Vec<u16>
pub fn adapted_experts(&self) -> Vec<u16>
2026-09-25: The expert indices this layer adapts, ascending and without
duplicates; expert_apply builds its delta work items from it.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ExpertLoraLayer
impl Clone for ExpertLoraLayer
Source§fn clone(&self) -> ExpertLoraLayer
fn clone(&self) -> ExpertLoraLayer
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 Default for ExpertLoraLayer
impl Default for ExpertLoraLayer
Source§fn default() -> ExpertLoraLayer
fn default() -> ExpertLoraLayer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExpertLoraLayer
impl RefUnwindSafe for ExpertLoraLayer
impl Send for ExpertLoraLayer
impl Sync for ExpertLoraLayer
impl Unpin for ExpertLoraLayer
impl UnwindSafe for ExpertLoraLayer
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