pub struct Fp8DenseWeight {
pub weight: DevicePtr,
pub row_scale: DevicePtr,
}Expand description
FP8 E4M3 dense weight (runtime-quantized from BF16).
Halves weight bandwidth vs BF16. Per-row f32 scale preserves accuracy. Created at model load time via GPU-side quantization kernel.
Fields§
§weight: DevicePtrFP8 E4M3 weight data: [N, K] bytes.
row_scale: DevicePtrPer-row dequant scale: [N] f32.
Trait Implementations§
Source§impl Clone for Fp8DenseWeight
impl Clone for Fp8DenseWeight
Source§fn clone(&self) -> Fp8DenseWeight
fn clone(&self) -> Fp8DenseWeight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Fp8DenseWeight
impl Debug for Fp8DenseWeight
impl Copy for Fp8DenseWeight
Auto Trait Implementations§
impl Freeze for Fp8DenseWeight
impl RefUnwindSafe for Fp8DenseWeight
impl Send for Fp8DenseWeight
impl Sync for Fp8DenseWeight
impl Unpin for Fp8DenseWeight
impl UnwindSafe for Fp8DenseWeight
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