pub struct SpecTraceRound {Show 17 fields
pub round: usize,
pub gen_pos: usize,
pub base: usize,
pub k: usize,
pub a: usize,
pub drafts: Vec<u32>,
pub targets: Vec<u32>,
pub draft_top1: f32,
pub draft_top2: f32,
pub draft_tgt_logit: f32,
pub draft_tgt_rank: usize,
pub target_top1: f32,
pub target_top2: f32,
pub target_draft_logit: f32,
pub target_entropy: f64,
pub carrier_rel_l2: Vec<f32>,
pub carrier_cos: Vec<f32>,
}Expand description
One traced spec round (the mtp10 thinkon-decay diagnosis instrument). Trace mode changes NOTHING the accept walk sees — it only reads: draft logit rows, carrier seeds, and the verify’s captured wide rows come to host for margin/drift stats. (Greedy trace runs with host-argmax targets — the same argmax the plain chain uses, proven equal to the device walk by the spec-gate.)
Fields§
§round: usize§gen_pos: usizeCommitted generation length BEFORE this round (position within the generation).
base: usizeTrunk committed rows before the round (the tip’s absolute position).
k: usize§a: usize§drafts: Vec<u32>§targets: Vec<u32>k+1 target rows (the committed prefix is targets[0..=a]).
draft_top1: f32Fork-row stats (row a, present when a < k): the draft’s top-2 logits, the
draft’s logit and rank of the token the TARGET wanted, the target’s top-2 logits,
the target’s logit of the token the DRAFT proposed, and the target row’s softmax
entropy (nats). NaN/0 when the round accepted everything (no fork).
draft_top2: f32§draft_tgt_logit: f32§draft_tgt_rank: usize§target_top1: f32§target_top2: f32§target_draft_logit: f32§target_entropy: f64§carrier_rel_l2: Vec<f32>Carrier drift per carrier-seeded chain step j = 1..k-1: the seed the draft used (its own predicted wide for position base+j-1) vs the trunk’s TRUE wide row at that position (captured by the verify chunk). rel_l2 = ||seed-true||/||true||.
carrier_cos: Vec<f32>Trait Implementations§
Source§impl Clone for SpecTraceRound
impl Clone for SpecTraceRound
Source§fn clone(&self) -> SpecTraceRound
fn clone(&self) -> SpecTraceRound
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more