pub struct AwqExpertPayload<B: Backend> {
pub qweight: IntTensor<B>,
pub qzeros: IntTensor<B>,
pub scales: FloatTensor<B>,
pub bias: Option<FloatTensor<B>>,
pub options: AwqExpertOptions,
}Expand description
Original AWQ expert cube, with scale storage independent of floating activation storage.
Fields§
§qweight: IntTensor<B>Original permuted I32 words [E,K,N/8].
qzeros: IntTensor<B>Original I32 zero-point words [E,K/group,N/8].
scales: FloatTensor<B>Original FP32/FP16/BF16 scales [E,K/group,N].
bias: Option<FloatTensor<B>>Actual optional original frozen scale-dtype bias [E,N].
options: AwqExpertOptionsExact source geometry and explicit original global expert range.
Trait Implementations§
Auto 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