pub struct Moe {
pub router: Vec<f32>,
pub bias: Vec<f32>,
pub experts: Vec<[QTensor; 3]>,
pub shared: [QTensor; 3],
}Fields§
§router: Vec<f32>[E, hidden] f32 router and the selection bias.
bias: Vec<f32>§experts: Vec<[QTensor; 3]>(gate, up, down) of every routed expert and of the shared one.
Implementations§
Auto Trait Implementations§
impl Forget for Moe
impl Freeze for Moe
impl Move for Moe
impl RefUnwindSafe for Moe
impl Send for Moe
impl Sync for Moe
impl Unpin for Moe
impl UnsafeUnpin for Moe
impl UnwindSafe for Moe
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