pub struct BakeArtifacts {
pub keep: Vec<Vec<bool>>,
pub down: Vec<Vec<f32>>,
pub gate_up: Vec<Option<(Vec<f32>, Vec<f32>)>>,
pub fcd_layers: Vec<usize>,
}Expand description
The trained artifacts: everything the defrag writer needs, f32.
Fields§
§keep: Vec<Vec<bool>>Per-layer live-neuron flags (true = keep).
down: Vec<Vec<f32>>Per-layer down_proj [hidden, inter] with dead columns zeroed
(FCD layers: the trained weights; others: the backbone’s).
gate_up: Vec<Option<(Vec<f32>, Vec<f32>)>>Trained gate/up for the FCD layers (None elsewhere).
fcd_layers: Vec<usize>Which layers went through Phase B.
Auto Trait Implementations§
impl Freeze for BakeArtifacts
impl RefUnwindSafe for BakeArtifacts
impl Send for BakeArtifacts
impl Sync for BakeArtifacts
impl Unpin for BakeArtifacts
impl UnsafeUnpin for BakeArtifacts
impl UnwindSafe for BakeArtifacts
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