pub struct AwqExpertPayload<B>where
B: Backend,{
pub qweight: <B as BackendTypes>::IntTensorPrimitive,
pub qzeros: <B as BackendTypes>::IntTensorPrimitive,
pub scales: <B as BackendTypes>::FloatTensorPrimitive,
pub bias: Option<<B as BackendTypes>::FloatTensorPrimitive>,
pub options: AwqExpertOptions,
}Expand description
Original AWQ expert cube, with scale storage independent of floating activation storage.
Fields§
§qweight: <B as BackendTypes>::IntTensorPrimitiveOriginal permuted I32 words [E,K,N/8].
qzeros: <B as BackendTypes>::IntTensorPrimitiveOriginal I32 zero-point words [E,K/group,N/8].
scales: <B as BackendTypes>::FloatTensorPrimitiveOriginal FP32/FP16/BF16 scales [E,K/group,N].
bias: Option<<B as BackendTypes>::FloatTensorPrimitive>Actual optional original frozen scale-dtype bias [E,N].
options: AwqExpertOptionsExact source geometry and explicit original global expert range.
Trait Implementations§
Source§impl<B> Clone for AwqExpertPayload<B>
impl<B> Clone for AwqExpertPayload<B>
Source§fn clone(&self) -> AwqExpertPayload<B>
fn clone(&self) -> AwqExpertPayload<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 AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: Freeze,
<B as BackendTypes>::FloatTensorPrimitive: Freeze,
Option<<B as BackendTypes>::FloatTensorPrimitive>: Freeze,
impl<B> RefUnwindSafe for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: RefUnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: RefUnwindSafe,
Option<<B as BackendTypes>::FloatTensorPrimitive>: RefUnwindSafe,
impl<B> Send for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: Send,
<B as BackendTypes>::FloatTensorPrimitive: Send,
Option<<B as BackendTypes>::FloatTensorPrimitive>: Send,
impl<B> Sync for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: Sync,
<B as BackendTypes>::FloatTensorPrimitive: Sync,
Option<<B as BackendTypes>::FloatTensorPrimitive>: Sync,
impl<B> Unpin for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: Unpin,
<B as BackendTypes>::FloatTensorPrimitive: Unpin,
Option<<B as BackendTypes>::FloatTensorPrimitive>: Unpin,
impl<B> UnsafeUnpin for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: UnsafeUnpin,
<B as BackendTypes>::FloatTensorPrimitive: UnsafeUnpin,
Option<<B as BackendTypes>::FloatTensorPrimitive>: UnsafeUnpin,
impl<B> UnwindSafe for AwqExpertPayload<B>where
<B as BackendTypes>::IntTensorPrimitive: UnwindSafe,
<B as BackendTypes>::FloatTensorPrimitive: UnwindSafe,
Option<<B as BackendTypes>::FloatTensorPrimitive>: UnwindSafe,
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