pub struct Glm5NextDenseMlpWeights {
pub gate_proj: DevicePtr,
pub up_proj: DevicePtr,
pub down_proj: DevicePtr,
}Expand description
2026-09-25: A BF16 SwiGLU MLP: the dense layers 0..first_k_dense_replace, and the shared
expert of every routed layer.
TP: gate_proj/up_proj (stored [inter, hidden]) are sliced by row, down_proj (stored
[hidden, inter]) by column, so the output is a partial sum when tp_world_size > 1.
Fields§
§gate_proj: DevicePtr2026-09-25: [local_inter, hidden] BF16.
up_proj: DevicePtr2026-09-25: [local_inter, hidden] BF16.
down_proj: DevicePtr2026-09-25: [hidden, local_inter] BF16.
Trait Implementations§
Source§impl Clone for Glm5NextDenseMlpWeights
impl Clone for Glm5NextDenseMlpWeights
Source§fn clone(&self) -> Glm5NextDenseMlpWeights
fn clone(&self) -> Glm5NextDenseMlpWeights
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 Debug for Glm5NextDenseMlpWeights
impl Debug for Glm5NextDenseMlpWeights
impl Copy for Glm5NextDenseMlpWeights
Auto Trait Implementations§
impl Freeze for Glm5NextDenseMlpWeights
impl RefUnwindSafe for Glm5NextDenseMlpWeights
impl Send for Glm5NextDenseMlpWeights
impl Sync for Glm5NextDenseMlpWeights
impl Unpin for Glm5NextDenseMlpWeights
impl UnwindSafe for Glm5NextDenseMlpWeights
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