pub struct LayerInspection {
pub name: String,
pub in_features: usize,
pub out_features: usize,
pub split_dim: usize,
pub has_residual: bool,
pub eff_bit_actual: f64,
pub serialized_bytes: usize,
pub dense_fp16_bytes: usize,
}Expand description
Per-layer metadata extracted from a LittleBit checkpoint.
Fields§
§name: StringModule path prefix (e.g., model.layers.0.self_attn.q_proj).
in_features: usizeInput feature dimension.
out_features: usizeOutput feature dimension.
split_dim: usizeLatent rank split_dim.
has_residual: boolWhether this layer contains a residual factorization branch (U_R, V_R).
eff_bit_actual: f64Actual effective bits per weight.
serialized_bytes: usizeTotal serialized bytes for this layer in the checkpoint.
dense_fp16_bytes: usizeEquivalent dense FP16 weight bytes (out_features * in_features * 2).
Trait Implementations§
Source§impl Clone for LayerInspection
impl Clone for LayerInspection
Source§impl Debug for LayerInspection
impl Debug for LayerInspection
Source§impl<'de> Deserialize<'de> for LayerInspection
impl<'de> Deserialize<'de> for LayerInspection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LayerInspection
impl RefUnwindSafe for LayerInspection
impl Send for LayerInspection
impl Sync for LayerInspection
impl Unpin for LayerInspection
impl UnsafeUnpin for LayerInspection
impl UnwindSafe for LayerInspection
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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