pub struct ConfidenceHead {
pub w: Vec<f32>,
pub b: f32,
pub in_dim: usize,
pub with_markov: bool,
}Expand description
AcceptRatePredictor: raw linear proj over [hidden ; markov_prev_embedding(rank)] (with_markov=true on the q38 arm-a export) — output is the PRE-sigmoid scalar.
Fields§
§w: Vec<f32>§b: f32§in_dim: usize§with_markov: boolImplementations§
Source§impl ConfidenceHead
impl ConfidenceHead
Sourcepub fn raw_score(&self, hidden: &[f32], emb: Option<&[f32]>) -> f32
pub fn raw_score(&self, hidden: &[f32], emb: Option<&[f32]>) -> f32
Host dot: the PRE-sigmoid accept score for one draft slot. hidden = the
drafter output row the slot is harvested from (the same row its logits use);
emb = the markov w1 row of the slot’s PREVIOUS chain token (required iff
with_markov) — the exact input contract the parity gate pins (prev ids =
[anchor, chain[..nd-1]], dspark_q38_parity.rs stage 5).
Auto Trait Implementations§
impl Freeze for ConfidenceHead
impl RefUnwindSafe for ConfidenceHead
impl Send for ConfidenceHead
impl Sync for ConfidenceHead
impl Unpin for ConfidenceHead
impl UnsafeUnpin for ConfidenceHead
impl UnwindSafe for ConfidenceHead
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