pub struct MoeAttributes {
pub routed_experts: usize,
pub selected_experts: usize,
pub shared_experts: Option<usize>,
pub shared_expert_width: Option<usize>,
pub shared_expert_gated: Option<bool>,
pub granularity: Option<RoutingGranularity>,
pub score_transform: Option<RoutingScoreTransform>,
pub normalization: Option<RoutingNormalization>,
}Expand description
Routed and always-on experts are distinct branches, also linked by graph edges.
Fields§
§routed_experts: usizeNumber of independently routed experts.
selected_experts: usizeNumber of experts selected per routing decision.
Number of always-on experts; zero explicitly means none.
Intermediate width of the shared branch, when known.
Whether a learned gate scales the shared contribution.
granularity: Option<RoutingGranularity>Unit on which expert decisions are made.
score_transform: Option<RoutingScoreTransform>Transformation of router logits into scores.
normalization: Option<RoutingNormalization>Normalization applied after selecting experts.
Trait Implementations§
Source§impl Clone for MoeAttributes
impl Clone for MoeAttributes
Source§fn clone(&self) -> MoeAttributes
fn clone(&self) -> MoeAttributes
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 MoeAttributes
impl Debug for MoeAttributes
Source§impl<'de> Deserialize<'de> for MoeAttributes
impl<'de> Deserialize<'de> for MoeAttributes
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 MoeAttributes
Source§impl PartialEq for MoeAttributes
impl PartialEq for MoeAttributes
Source§impl Serialize for MoeAttributes
impl Serialize for MoeAttributes
impl StructuralPartialEq for MoeAttributes
Auto Trait Implementations§
impl Freeze for MoeAttributes
impl RefUnwindSafe for MoeAttributes
impl Send for MoeAttributes
impl Sync for MoeAttributes
impl Unpin for MoeAttributes
impl UnsafeUnpin for MoeAttributes
impl UnwindSafe for MoeAttributes
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