pub struct ModelFileInfo {
pub source_model: String,
pub num_layers: usize,
pub sparsity: f32,
pub mean_alpha: f32,
}Expand description
Metadata returned alongside a loaded ExpertBank.
Fields§
§source_model: StringSource model name embedded in the .tern.bin file.
num_layers: usizeTotal number of layers read from the file.
sparsity: f32Overall weight sparsity across all layers (fraction of zeros).
mean_alpha: f32Mean absolute scale (alpha) across all experts.
Auto Trait Implementations§
impl Freeze for ModelFileInfo
impl RefUnwindSafe for ModelFileInfo
impl Send for ModelFileInfo
impl Sync for ModelFileInfo
impl Unpin for ModelFileInfo
impl UnsafeUnpin for ModelFileInfo
impl UnwindSafe for ModelFileInfo
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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