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§
Trait Implementations§
Source§impl Clone for PrimeGateClass
impl Clone for PrimeGateClass
Source§fn clone(&self) -> PrimeGateClass
fn clone(&self) -> PrimeGateClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more