Skip to main content

TTTVerifier

Trait TTTVerifier 

Source
pub trait TTTVerifier: Send + Sync {
    // Required method
    fn verify<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        context: &'life1 TTTContext,
        engine: &'life2 TorchEngine,
    ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             Self: 'async_trait;
}
Expand description

Trait for TTT verifiers (future extension)

This trait allows plugging in different verification strategies:

  • Cross-model verification (use another model to verify)
  • Cycle consistency (for multimodal)
  • Execution verification (for code)

Required Methods§

Source

fn verify<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, context: &'life1 TTTContext, engine: &'life2 TorchEngine, ) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Verify that TTT adaptation is beneficial

Returns true if adaptation should be accepted

Implementors§