W4a16BatchmTiers

Struct W4a16BatchmTiers 

Source
pub struct W4a16BatchmTiers { /* private fields */ }
Expand description

2026-09-25: Resolved handles for the narrow w4a16_gemv_batch{M} family.

A zero handle means “this target did not load that tier”; consumers check .0 != 0, and Self::kernel returns a zero handle rather than panicking when nothing in the family covers m.

Implementations§

Source§

impl W4a16BatchmTiers

Source

pub fn resolve(gpu: &dyn GpuBackend) -> Self

2026-09-25: Resolve every tier in the family. A missing kernel is a zero handle, and select_tier skips it.

Source

pub fn edge(&self, w: &QuantizedWeight) -> u32

2026-09-28: The row edge for w, from its activation stamp (edge_of).

Source

pub fn declares_a4(&self, w: &QuantizedWeight) -> bool

2026-09-28: w declares FP4 activations and this backend has the W4A4 kernels. The published tier decides what that means for a dense FFN’s narrow steps (WeightQuantTier::ffn_small_batch_w4a4).

Source

pub fn ffn_edge(&self, w: &QuantizedWeight) -> u32

2026-09-28: Self::edge capped at w4a4_proj::W4A4_MAX_M: the dense FFN’s narrow arms stop at 32 rows, and 33..=64 go to forward_prefill.

Source

pub fn kernel_for(&self, m: u32, w: &QuantizedWeight) -> KernelHandle

2026-09-28: Self::kernel for a projection over w, within Self::edge.

Source

pub fn kernel(&self, m: u32) -> KernelHandle

2026-09-25: Narrowest resolved tier covering m rows, or KernelHandle(0) when this family cannot serve m, for a projection without a policy stamp (the lm_head, the MTP head): within the edge of an unstamped weight (2026-09-28: the W4A16 edge, or under nvfp4 with --w4a4-downcast the lever’s edge, as before the tiers).

Source

pub fn width(&self, m: u32) -> Option<u32>

2026-09-25: Width of the tier select_tier picks for m (the narrow family only; kernel hands out wide/wide32 above 8 rows).

Source

pub fn has_base(&self) -> bool

2026-09-25: Is the base w4a16_gemv_batch4 tier resolved? Capability probes for NVFP4 batched decode ask this one.

Trait Implementations§

Source§

impl Clone for W4a16BatchmTiers

Source§

fn clone(&self) -> W4a16BatchmTiers

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for W4a16BatchmTiers

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for W4a16BatchmTiers

2026-09-25: The “no NVFP4 kernels” state: an all-zero table, for which kernel returns a zero handle at every m.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for W4a16BatchmTiers

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,