pub struct Glm5NextMoeWeights {
pub router: DevicePtr,
pub router_bias: DevicePtr,
pub shared: Glm5NextDenseMlpWeights,
pub experts: Vec<Glm5NextExpertWeights>,
pub ptrs: Glm5NextMoePtrTables,
}Expand description
2026-09-25: A routed MoE site’s weights for this rank.
Fields§
§router: DevicePtr2026-09-25: [num_experts, hidden] BF16 router, the full matrix on every rank (see the
module header). Run through the FP32-output GEMM.
router_bias: DevicePtr2026-09-25: [num_experts] F32 selection bias (gate.e_score_correction_bias). It
steers selection only; the emitted weight is the chosen expert’s unbiased score.
2026-09-25: The shared expert: dense BF16, TP-sharded, added to every token unscaled.
experts: Vec<Glm5NextExpertWeights>2026-09-25: local_experts entries in ascending global id, indexed by
Glm5NextMlpConfig::local_slot(global_id), never by the global id.
ptrs: Glm5NextMoePtrTables2026-09-25: Global-id-indexed pointer tables over the same experts, for the device-dispatched forward. Null entries mark remote ids.
Auto Trait Implementations§
impl Freeze for Glm5NextMoeWeights
impl RefUnwindSafe for Glm5NextMoeWeights
impl Send for Glm5NextMoeWeights
impl Sync for Glm5NextMoeWeights
impl Unpin for Glm5NextMoeWeights
impl UnwindSafe for Glm5NextMoeWeights
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