pub struct PatchSummary {
pub patched_layers: usize,
pub skipped_layers: usize,
pub total_quantized_weights: usize,
pub total_quantized_bits: f64,
pub avg_eff_bits: f64,
}Expand description
Summary statistics emitted after applying LittleBit quantization patch across a model.
Fields§
§patched_layers: usizeNumber of linear modules quantized to LittleBitLinear.
skipped_layers: usizeNumber of linear modules skipped due to exclusion policy (lm_head).
total_quantized_weights: usizeSum of in_features * out_features across all patched layers.
total_quantized_bits: f64Sum of actual bit usage across all patched layers.
avg_eff_bits: f64Average effective bits per weight across patched layers.
Trait Implementations§
Source§impl Clone for PatchSummary
impl Clone for PatchSummary
Source§impl Debug for PatchSummary
impl Debug for PatchSummary
Source§impl Default for PatchSummary
impl Default for PatchSummary
Source§impl Display for PatchSummary
impl Display for PatchSummary
Source§impl PartialEq for PatchSummary
impl PartialEq for PatchSummary
impl StructuralPartialEq for PatchSummary
Auto Trait Implementations§
impl Freeze for PatchSummary
impl RefUnwindSafe for PatchSummary
impl Send for PatchSummary
impl Sync for PatchSummary
impl Unpin for PatchSummary
impl UnsafeUnpin for PatchSummary
impl UnwindSafe for PatchSummary
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
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> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<E> ResultError for E
impl<T> ResultType for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of [
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString]. Read more