pub struct MoeDispatchParams {
pub input_dim: usize,
pub intermediate_dim: usize,
pub n_selected: usize,
}Expand description
Parameters for MoE dispatch.
Fields§
§input_dim: usizeInput/output dimension (e.g. 2816 for Gemma 4 MoE layers).
intermediate_dim: usizeIntermediate FFN dimension per expert (e.g. 704 for Gemma 4).
n_selected: usizeNumber of selected experts (top_k, e.g. 8).
Auto Trait Implementations§
impl Freeze for MoeDispatchParams
impl RefUnwindSafe for MoeDispatchParams
impl Send for MoeDispatchParams
impl Sync for MoeDispatchParams
impl Unpin for MoeDispatchParams
impl UnsafeUnpin for MoeDispatchParams
impl UnwindSafe for MoeDispatchParams
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