pub struct ReserveExpertsDef {
pub capacity: usize,
pub rank: usize,
pub top_k: usize,
}Expand description
Fixed-capacity low-rank experts available for sleep-time consolidation.
Slots are allocated with the model but start dormant. Their activation mask and generation counters are checkpoint state rather than architecture fields, so activating a slot never changes tensor shapes. Hermes executes a separate untrainable rank-matched zero fallback while all slots are dormant; it is not reserve capacity and keeps the configured top-1 route cost fixed.
Fields§
§capacity: usize§rank: usize§top_k: usizeTrait Implementations§
Source§impl Clone for ReserveExpertsDef
impl Clone for ReserveExpertsDef
Source§fn clone(&self) -> ReserveExpertsDef
fn clone(&self) -> ReserveExpertsDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReserveExpertsDef
impl Debug for ReserveExpertsDef
Source§impl<'de> Deserialize<'de> for ReserveExpertsDef
impl<'de> Deserialize<'de> for ReserveExpertsDef
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
impl Eq for ReserveExpertsDef
Source§impl PartialEq for ReserveExpertsDef
impl PartialEq for ReserveExpertsDef
Source§impl Serialize for ReserveExpertsDef
impl Serialize for ReserveExpertsDef
impl StructuralPartialEq for ReserveExpertsDef
Auto Trait Implementations§
impl Freeze for ReserveExpertsDef
impl RefUnwindSafe for ReserveExpertsDef
impl Send for ReserveExpertsDef
impl Sync for ReserveExpertsDef
impl Unpin for ReserveExpertsDef
impl UnsafeUnpin for ReserveExpertsDef
impl UnwindSafe for ReserveExpertsDef
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