Skip to main content

Fp8Dense

Struct Fp8Dense 

Source
pub struct Fp8Dense {
    pub codes: CudaSlice<u8>,
    pub scales: CudaSlice<f32>,
    pub sc_cols: usize,
    pub rows: usize,
    pub cols: usize,
}
Expand description

Iteration-5 FP8 dense arm (MEMRA_DSV4_DENSE_ARM=fp8): an FP8-blk linear held AS-STORED — e4m3 codes [rows, cols] plus the 128x128 block-scale grid decoded to f32 on the host (exact: every e8m0 code is a pow2; 0xFF refused at load). The device GEMV twins decode e4m3(code) * scale in-register — the SAME f32 value the bf16 dequant slab holds (the loader’s f32_to_bf16_exact refusal proves exactness), with the accumulation order VERBATIM — so the arm is bit-identical to the bf16 arm by construction and its gate is a no-regression proof. It5 ledger item 3: when this pair exists, the bf16 twin is NOT device-resident — it drops to DenseBf16::Host staged residency (the dual-residency +~2.7 GiB/card is gone).

Fields§

§codes: CudaSlice<u8>§scales: CudaSlice<f32>§sc_cols: usize§rows: usize§cols: usize

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.