pub struct FusedExperts {
pub fused_gate_proj: Arc<dyn QuantMethod>,
pub fused_up_proj: Arc<dyn QuantMethod>,
pub fused_down_proj: Arc<dyn QuantMethod>,
}Fields§
§fused_gate_proj: Arc<dyn QuantMethod>§fused_up_proj: Arc<dyn QuantMethod>§fused_down_proj: Arc<dyn QuantMethod>Implementations§
Source§impl FusedExperts
impl FusedExperts
pub fn new( hidden_size: usize, moe_intermediate_size: usize, num_experts: usize, quantization_config: &Option<QuantizedConfig>, vb: ShardedVarBuilder, ) -> Result<Self>
Auto Trait Implementations§
impl Freeze for FusedExperts
impl !RefUnwindSafe for FusedExperts
impl Send for FusedExperts
impl Sync for FusedExperts
impl Unpin for FusedExperts
impl UnsafeUnpin for FusedExperts
impl !UnwindSafe for FusedExperts
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more