pub struct ModelTopology {
pub num_experts: u32,
pub active_experts: u32,
pub num_layers: u32,
pub hidden_dim: u32,
pub attention_heads: u32,
}Expand description
Internal topology metadata for MoE and large-scale models.
Fields§
§num_experts: u32Total number of experts (for MoE models).
active_experts: u32Number of experts activated per token.
num_layers: u32Total number of transformer layers.
Hidden dimension size.
attention_heads: u32Number of attention heads.
Trait Implementations§
Source§impl Clone for ModelTopology
impl Clone for ModelTopology
Source§fn clone(&self) -> ModelTopology
fn clone(&self) -> ModelTopology
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 ModelTopology
impl Debug for ModelTopology
Source§impl Default for ModelTopology
impl Default for ModelTopology
Source§fn default() -> ModelTopology
fn default() -> ModelTopology
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelTopology
impl<'de> Deserialize<'de> for ModelTopology
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
Auto Trait Implementations§
impl Freeze for ModelTopology
impl RefUnwindSafe for ModelTopology
impl Send for ModelTopology
impl Sync for ModelTopology
impl Unpin for ModelTopology
impl UnsafeUnpin for ModelTopology
impl UnwindSafe for ModelTopology
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