pub enum Ffn {
Dense {
ffn_gate: GpuTensor,
ffn_up: GpuTensor,
ffn_down: GpuTensor,
},
Moe(MoeWeights),
}Expand description
Per-layer FFN: dense SwiGLU (qwen35) or 256-expert MoE (qwen35moe).
Variants§
Auto Trait Implementations§
impl Freeze for Ffn
impl RefUnwindSafe for Ffn
impl Send for Ffn
impl Sync for Ffn
impl Unpin for Ffn
impl UnsafeUnpin for Ffn
impl UnwindSafe for Ffn
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