pub struct BakeHyper {Show 16 fields
pub steps_a: usize,
pub steps_b: usize,
pub l1_init: f64,
pub l1_step: f64,
pub eval_every: usize,
pub lr_a: f64,
pub lr_b: f64,
pub tau: f32,
pub fcd_layers: usize,
pub seed: u64,
pub target_sparsity: f64,
pub l1_mult: f64,
pub align: usize,
pub uniform_inter: bool,
pub focus_tokens: Vec<u32>,
pub focus_follow_tokens: Vec<u32>,
}Expand description
Hyper-parameters — defaults are the certified recipe.
Fields§
§steps_a: usize§steps_b: usize§l1_init: f64§l1_step: f64§eval_every: usize§lr_a: f64§lr_b: f64§tau: f32§fcd_layers: usize§seed: u64§target_sparsity: f64Target sparsity (0..1). When >0, the best checkpoint must have at least this fraction of neurons pruned; if none qualifies the highest-sparsity checkpoint is used.
l1_mult: f64L1 aggression multiplier: scales both l1_init and l1_step.
1.0 = harder pruning push, <1.0 = softer.
align: usizeRound each layer’s kept-neuron count UP to a multiple of this (0/1 = off). 32 keeps the defragged FFN on grouped codecs (in % 32 == 0) and SIMD kernels off their scalar tails.
uniform_inter: boolForce one FFN width across all layers (the max aligned count) — the whole-token GPU graphs require a uniform intermediate size.
focus_tokens: Vec<u32>When non-empty, LM loss is accumulated only where the next token is one of these ids. The whole chunk is still forwarded as context. This is useful for supervised corpora with a long input and a one-token answer, where ordinary all-token LM loss would drown the task signal in prompt reconstruction.
focus_follow_tokens: Vec<u32>Optional token(s) that must immediately follow a focused target.
Supervised ChatML uses the one-token label followed by <|im_end|>;
this prevents label names mentioned inside the user instruction from
being mistaken for answer positions.