pub struct WeightQuantTier { /* private fields */ }Expand description
2026-09-28: What the serve publishes: the tier and, under nvfp4, its W4A4 lever.
Implementations§
Source§impl WeightQuantTier
impl WeightQuantTier
Sourcepub fn new(tier: WeightQuantization, downcast: W4a4Downcast) -> Result<Self>
pub fn new(tier: WeightQuantization, downcast: W4a4Downcast) -> Result<Self>
2026-09-28: The nvfp4 tier with its W4A4 lever. A declared tier refuses a lever:
the checkpoint already decides every layer’s activations there.
Sourcepub fn tier(self) -> WeightQuantization
pub fn tier(self) -> WeightQuantization
2026-09-28: The tier.
Sourcepub fn downcast(self) -> W4a4Downcast
pub fn downcast(self) -> W4a4Downcast
2026-09-28: The nvfp4 tier’s W4A4 lever; always Off under declared.
Sourcepub fn uses_w4a4_decode(self) -> bool
pub fn uses_w4a4_decode(self) -> bool
2026-09-28: Whether decode may take the FP4 block-scale projection path at all, so its kernels and activation scratch are prepared.
Sourcepub fn w4a4_rows(
self,
act: Nvfp4Act,
narrow_rows: u32,
wide_rows: u32,
kernel_rows: u32,
) -> u32
pub fn w4a4_rows( self, act: Nvfp4Act, narrow_rows: u32, wide_rows: u32, kernel_rows: u32, ) -> u32
2026-09-28: The widest row count the W4A4 path serves for a weight stamped act,
given kernel_rows, the widest the prepared kernels serve (0 when absent). 0 means
the weight’s decode activations stay 16-bit.
Under nvfp4 the lever decides for every weight alike: 32 rows, or 64 with -wide.
Under declared a weight stamped Nvfp4Act::A4 runs W4A4 at every row count the
kernels serve, and any other weight runs 16-bit activations.
Sourcepub fn ffn_small_batch_w4a4(self, any_a4: bool) -> bool
pub fn ffn_small_batch_w4a4(self, any_a4: bool) -> bool
2026-09-28: Whether a dense FFN whose gate, up or down is stamped act sends its 2-
and 3-row decode steps through the W4A4 projections. Under declared the stamps
decide; under nvfp4 the lever does, as --w4a4-downcast always has.
Sourcepub fn ffn_single_row_w4a4(self, any_a4: bool) -> bool
pub fn ffn_single_row_w4a4(self, any_a4: bool) -> bool
2026-09-28: Whether a dense FFN runs its single decode row W4A4. Only declared does,
and only for an FFN that declares FP4 activations; --w4a4-downcast never reached
the single row.
Trait Implementations§
Source§impl Clone for WeightQuantTier
impl Clone for WeightQuantTier
Source§fn clone(&self) -> WeightQuantTier
fn clone(&self) -> WeightQuantTier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WeightQuantTier
impl Debug for WeightQuantTier
Source§impl Default for WeightQuantTier
impl Default for WeightQuantTier
Source§fn default() -> WeightQuantTier
fn default() -> WeightQuantTier
Source§impl PartialEq for WeightQuantTier
impl PartialEq for WeightQuantTier
impl Copy for WeightQuantTier
impl Eq for WeightQuantTier
impl StructuralPartialEq for WeightQuantTier
Auto Trait Implementations§
impl Freeze for WeightQuantTier
impl RefUnwindSafe for WeightQuantTier
impl Send for WeightQuantTier
impl Sync for WeightQuantTier
impl Unpin for WeightQuantTier
impl UnwindSafe for WeightQuantTier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.