pub struct MoeCfg {
pub dim: usize,
pub inter: usize,
pub n_routed: usize,
pub topk: usize,
pub gate_temp: f32,
pub norm_topk_prob: bool,
pub route_scale: f32,
pub swiglu_limit: f32,
}Fields§
§dim: usize§inter: usize§n_routed: usize§topk: usize§gate_temp: f32§norm_topk_prob: bool§route_scale: f32§swiglu_limit: f32Auto Trait Implementations§
impl Freeze for MoeCfg
impl RefUnwindSafe for MoeCfg
impl Send for MoeCfg
impl Sync for MoeCfg
impl Unpin for MoeCfg
impl UnwindSafe for MoeCfg
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