pub struct Fp8WeightTransposed {
pub weight_t: DevicePtr,
pub scale_t: DevicePtr,
pub n: u32,
pub k: u32,
}Expand description
FP8 E4M3 weight with transposed layout for coalesced prefill GEMM.
B_t: [K, N] — transposed from checkpoint’s B[N, K]. block_scale_t: [K/128, N/128] — transposed from [N/128, K/128]. Enables ~14x faster prefill via w8a16_gemm_t kernel.
Fields§
§weight_t: DevicePtr[K, N] FP8 E4M3 transposed weight on GPU.
scale_t: DevicePtr[K/128, N/128] FP32 transposed block scales on GPU (widened at load).
n: u32§k: u32Trait Implementations§
Source§impl Clone for Fp8WeightTransposed
impl Clone for Fp8WeightTransposed
Source§fn clone(&self) -> Fp8WeightTransposed
fn clone(&self) -> Fp8WeightTransposed
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 Fp8WeightTransposed
impl Debug for Fp8WeightTransposed
impl Copy for Fp8WeightTransposed
Auto Trait Implementations§
impl Freeze for Fp8WeightTransposed
impl RefUnwindSafe for Fp8WeightTransposed
impl Send for Fp8WeightTransposed
impl Sync for Fp8WeightTransposed
impl Unpin for Fp8WeightTransposed
impl UnwindSafe for Fp8WeightTransposed
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