Skip to main content

PrimeGateClass

Enum PrimeGateClass 

Source
pub enum PrimeGateClass {
    Match,
    NearTieFlip,
    Structured,
}
Expand description

Gate #46 verdict: BATCHED-PRIME last-position logits vs the TOKENWISE-PRIME reference.

The two primes are different numeric configs by design (prefill GEMM m=T vs decode GEMV m=1 — cross-config drift class, like forward_last vs decode). An argmax flip on a near-tie under small logit drift is within that law; a flip on a WIDE margin, or drift beyond the calibrated ceiling, cannot come from the FP-composition class and fails hard.

Bounds (env-overridable; calibrated on the 2026-08-02 supported-set sweep, research/prime-gate-coverage-20260802 — recalibrate when the kernels under them move, the H100 stale-verdict law): MEMRA_PRIME_GATE_MAXDIFF — full-vocab logit maxdiff ceiling (default 8.0). Measured legal cross-config drift across the 144-prompt supported-set sweep: dense Q8_0 up to ~1.0, MoE IQ4_XS/Q4_K_M up to 3.1, gemma QAT Q4_0 up to 5.5 (its logit scale is larger); run-gen’s own accepted forward-vs-decode drift is 1.39 on the q35 probe. A real defect (indexing/wrong-weights) lands decades above this. MEMRA_PRIME_GATE_MARGIN — tokenwise top1-top2 margin above which an argmax flip is treated as structured (default 1.0). All 10 measured legal first-token flips sat at margins <= 0.70 (per-position flips <= 0.92).

Variants§

§

Match

§

NearTieFlip

§

Structured

Trait Implementations§

Source§

impl Clone for PrimeGateClass

Source§

fn clone(&self) -> PrimeGateClass

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 Copy for PrimeGateClass

Source§

impl Debug for PrimeGateClass

Source§

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

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

impl Eq for PrimeGateClass

Source§

impl PartialEq for PrimeGateClass

Source§

fn eq(&self, other: &PrimeGateClass) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PrimeGateClass

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> 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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.