pub struct BitBudget {
pub in_features: usize,
pub out_features: usize,
pub eff_bit_target: Option<f64>,
pub split_dim: usize,
pub eff_bit_actual: f64,
pub total_bit_usage: f64,
pub residual: ResidualMode,
}Expand description
Resolved bit-budget and rank geometry for a single quantized linear layer.
Fields§
§in_features: usizeInput feature dimension a.
out_features: usizeOutput feature dimension b.
eff_bit_target: Option<f64>Requested effective bits per weight (None when fixed split_dim was used).
split_dim: usizeFinal quantized inner rank s (rounded to a multiple of 8 with min_split_dim floor).
eff_bit_actual: f64Actual effective bits per weight achieved by (in_features, out_features, split_dim, residual).
total_bit_usage: f64Total bit footprint eff_bit_actual * in_features * out_features.
residual: ResidualModeSingle vs. dual residual factorization mode.
Implementations§
Trait Implementations§
impl Copy for BitBudget
impl StructuralPartialEq for BitBudget
Auto Trait Implementations§
impl Freeze for BitBudget
impl RefUnwindSafe for BitBudget
impl Send for BitBudget
impl Sync for BitBudget
impl Unpin for BitBudget
impl UnsafeUnpin for BitBudget
impl UnwindSafe for BitBudget
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more