#[repr(u8)]pub enum CalibrationMode {
AttentionMass = 0,
CausalNecessity = 1,
AdaptiveCausal = 2,
}Expand description
Head-calibration score source (Plan 358, Research 362).
#[repr(u8)] for sync-friendly 1-byte representation.
Variants§
AttentionMass = 0
Observational needle attention-mass (RTPurbo Plan 126 default). Cheaper: a single forward pass + per-head mass scan.
CausalNecessity = 1
Causal necessity via activation/path patching IE score (Plan 358).
Strictly stronger — excludes correlated bystanders — but requires
n_heads × n_calibration_samples patched forward passes. Requires the
causal_head_importance feature on the consuming crate.
AdaptiveCausal = 2
Adaptive cheap-proxy escalate (Proposal 004 — OUR INVENTION, not from
HydraHead). Uses an OV-circuit proxy (attention_mass / ||OV_out||)
to detect bystander suspects, then escalates to Plan 358’s causal
patching only on those k suspects instead of all n_heads. Pays zero
patched forwards when there are no bystanders (degenerates to
AttentionMass). Requires the adaptive_causal_calibration feature.
UNVALIDATED. Promotion to default is blocked on G1 (proxy precision)
and G2 (cost reduction), both deferred to riir-engine. Unlike the other
two modes, the caller must supply per-head OV output norms (from a real
transformer forward) — see calibrate_from_adaptive_causal.
Trait Implementations§
Source§impl Clone for CalibrationMode
impl Clone for CalibrationMode
Source§fn clone(&self) -> CalibrationMode
fn clone(&self) -> CalibrationMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CalibrationMode
Source§impl Debug for CalibrationMode
impl Debug for CalibrationMode
Source§impl Default for CalibrationMode
impl Default for CalibrationMode
Source§fn default() -> CalibrationMode
fn default() -> CalibrationMode
impl Eq for CalibrationMode
Source§impl PartialEq for CalibrationMode
impl PartialEq for CalibrationMode
impl StructuralPartialEq for CalibrationMode
Auto Trait Implementations§
impl Freeze for CalibrationMode
impl RefUnwindSafe for CalibrationMode
impl Send for CalibrationMode
impl Sync for CalibrationMode
impl Unpin for CalibrationMode
impl UnsafeUnpin for CalibrationMode
impl UnwindSafe for CalibrationMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more