pub enum PackedExpertPayload<B>where
B: Backend,{
Nf4(Nf4ExpertPayload<B>),
Awq(AwqExpertPayload<B>),
Nf4Window {
payload: Nf4ExpertPayload<B>,
element_offset: usize,
},
}Expand description
Source-selected original packed expert format, not a quantizer or dense surrogate.
Variants§
Nf4(Nf4ExpertPayload<B>)
Original RUDA high-nibble-first flat-block NF4.
Awq(AwqExpertPayload<B>)
Original AWQ per-input-group permuted eight-code I32 words.
Nf4Window
Actual owned NF4 bytes beginning at the first original scale-block boundary. The first owned logical coefficient can start within that retained block.
Implementations§
Source§impl<B> PackedExpertPayload<B>where
B: Backend,
impl<B> PackedExpertPayload<B>where
B: Backend,
Sourcepub fn expert_range(&self) -> (usize, usize)
pub fn expert_range(&self) -> (usize, usize)
Actual resident expert count and explicitly declared first global expert ID.
Trait Implementations§
Source§impl<B> Clone for PackedExpertPayload<B>
impl<B> Clone for PackedExpertPayload<B>
Source§fn clone(&self) -> PackedExpertPayload<B>
fn clone(&self) -> PackedExpertPayload<B>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<B> Freeze for PackedExpertPayload<B>
impl<B> RefUnwindSafe for PackedExpertPayload<B>
impl<B> Send for PackedExpertPayload<B>
impl<B> Sync for PackedExpertPayload<B>
impl<B> Unpin for PackedExpertPayload<B>
impl<B> UnsafeUnpin for PackedExpertPayload<B>
impl<B> UnwindSafe for PackedExpertPayload<B>
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