pub struct ModelWeights {
pub embed: Vec<f32>,
pub norm: Vec<f32>,
pub head: Vec<f32>,
pub layers: Vec<LayerWeights>,
}Fields§
§embed: Vec<f32>§norm: Vec<f32>§head: Vec<f32>§layers: Vec<LayerWeights>Implementations§
Source§impl ModelWeights
impl ModelWeights
pub fn from_golden(g: &Golden, c: &ModelCfg, t: &EngramTables) -> Self
Auto Trait Implementations§
impl Freeze for ModelWeights
impl RefUnwindSafe for ModelWeights
impl Send for ModelWeights
impl Sync for ModelWeights
impl Unpin for ModelWeights
impl UnwindSafe for ModelWeights
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