Skip to main content

ExpertLogits

Trait ExpertLogits 

Source
pub trait ExpertLogits {
    // Required method
    fn logits(&self, committed: &[u32]) -> Vec<i32>;
}
Expand description

Safety-tuned next-token logits for the committed context, in integer milli-logits over the same vocabulary and tokenizer as the base generator (the ADR-012 shared-tokenizer invariant — the contrastive direction is only meaningful when base and expert share a token set). The expert weights are integrity-gated on load (ADR-006) by the adapter that constructs the implementor; like every safety path this is deterministic and never touches the network (ADR-004).

Required Methods§

Source

fn logits(&self, committed: &[u32]) -> Vec<i32>

Expert next-token milli-logits given the committed (generated) context.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§