Skip to main content

SpecTraceRound

Struct SpecTraceRound 

Source
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: usize

Committed generation length BEFORE this round (position within the generation).

§base: usize

Trunk 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: f32

Fork-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

Source§

fn clone(&self) -> SpecTraceRound

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SpecTraceRound

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SpecTraceRound

Source§

fn default() -> SpecTraceRound

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.