pub struct FcdModel {
pub hidden: usize,
pub nh: usize,
pub nkv: usize,
pub hd: usize,
pub nl: usize,
pub vocab: usize,
pub polish_only: bool,
/* private fields */
}Expand description
The f32 training replica of a .cmf model (≤ 1B targets).
Fields§
§nh: usize§nkv: usize§hd: usize§nl: usize§vocab: usize§polish_only: boolTrain the flagged layers WITHOUT switching their attention to the
Nyström kernel — see FcdHyper::polish_only.
Implementations§
Source§impl FcdModel
impl FcdModel
Source§impl FcdModel
impl FcdModel
Sourcepub fn val_ppl(
&self,
va: &[u32],
ts: Option<&TrainState>,
student: bool,
bs: usize,
nrounds: usize,
seq: usize,
) -> f64
pub fn val_ppl( &self, va: &[u32], ts: Option<&TrainState>, student: bool, bs: usize, nrounds: usize, seq: usize, ) -> f64
Teacher-forced CE perplexity on deterministic evenly-spaced val
windows (heal_hybridk_06b.py::val_ppl discipline — random
windows made gate comparisons ride ±15% noise).
Sourcepub fn val_ppl_stream(
&self,
va: &FcdStream<'_>,
ts: Option<&TrainState>,
student: bool,
bs: usize,
nrounds: usize,
seq: usize,
) -> f64
pub fn val_ppl_stream( &self, va: &FcdStream<'_>, ts: Option<&TrainState>, student: bool, bs: usize, nrounds: usize, seq: usize, ) -> f64
Self::val_ppl over an FcdStream: a plain stream takes the
original evenly-spaced windows; a record stream scores up to
4·nrounds·bs records, evenly spaced, each window at its record’s
start (or centred on its first scored token when the prompt is
longer than half a window), weighted by the stream’s loss weights.
Auto Trait Implementations§
impl !Freeze for FcdModel
impl !RefUnwindSafe for FcdModel
impl !UnwindSafe for FcdModel
impl Send for FcdModel
impl Sync for FcdModel
impl Unpin for FcdModel
impl UnsafeUnpin for FcdModel
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