pub struct LatentMoeConfig {
pub hidden: usize,
pub latent: usize,
pub expert_hidden: usize,
pub n_routed: usize,
pub top_k: usize,
pub n_shared: usize,
pub situ_beta: f32,
pub situ_linear_beta: f32,
pub use_norm: bool,
pub renormalize: bool,
}Fields§
§latent: usize§n_routed: usize§top_k: usize§situ_beta: f32§situ_linear_beta: f32§use_norm: bool§renormalize: boolImplementations§
Source§impl LatentMoeConfig
impl LatentMoeConfig
pub fn production() -> Self
Trait Implementations§
Source§impl Clone for LatentMoeConfig
impl Clone for LatentMoeConfig
Source§fn clone(&self) -> LatentMoeConfig
fn clone(&self) -> LatentMoeConfig
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 LatentMoeConfig
impl Debug for LatentMoeConfig
impl Copy for LatentMoeConfig
Auto Trait Implementations§
impl Freeze for LatentMoeConfig
impl RefUnwindSafe for LatentMoeConfig
impl Send for LatentMoeConfig
impl Sync for LatentMoeConfig
impl Unpin for LatentMoeConfig
impl UnwindSafe for LatentMoeConfig
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