pub struct RunSpeculativeGeneration { /* private fields */ }Expand description
Facade-selected speculative generation driver.
Backends lend prepared native resources through
SpeculativeGenerationVisitor. This driver alone registers lanes, runs
the fair schedule, observes exact completions, and constructs public
terminal outputs.
Implementations§
Source§impl RunSpeculativeGeneration
impl RunSpeculativeGeneration
Sourcepub const fn new(options: SpeculativeSchedulerOptions) -> Self
pub const fn new(options: SpeculativeSchedulerOptions) -> Self
Creates a driver with facade-selected scheduling and lookahead controls.
Trait Implementations§
Source§impl Clone for RunSpeculativeGeneration
impl Clone for RunSpeculativeGeneration
Source§fn clone(&self) -> RunSpeculativeGeneration
fn clone(&self) -> RunSpeculativeGeneration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RunSpeculativeGeneration
Source§impl Debug for RunSpeculativeGeneration
impl Debug for RunSpeculativeGeneration
Source§impl Default for RunSpeculativeGeneration
impl Default for RunSpeculativeGeneration
Source§fn default() -> RunSpeculativeGeneration
fn default() -> RunSpeculativeGeneration
Returns the “default value” for a type. Read more
Source§impl SpeculativeGenerationVisitor for RunSpeculativeGeneration
impl SpeculativeGenerationVisitor for RunSpeculativeGeneration
Source§fn run<'a, E, S, C, P>(
self,
executor: &'a mut E,
lanes: Vec<PreparedSpeculativeLane<'a, E, S, C, P>>,
topology: SpeculativeExecutionTopology,
optimistic_execution_available: bool,
component_timings_collected: bool,
context: E::Context<'a>,
) -> Result<SpeculativeGenerationBatchOutput, SpeculativeDriverError<E::Error>>where
E: SpeculativeExecutor + 'a,
S: SpeculativeSampling<Logits = E::Logits, Error = E::Error, Context<'a> = E::Context<'a>> + 'a,
C: SpeculativeConstraint,
P: SpeculativePublisher<C>,
fn run<'a, E, S, C, P>(
self,
executor: &'a mut E,
lanes: Vec<PreparedSpeculativeLane<'a, E, S, C, P>>,
topology: SpeculativeExecutionTopology,
optimistic_execution_available: bool,
component_timings_collected: bool,
context: E::Context<'a>,
) -> Result<SpeculativeGenerationBatchOutput, SpeculativeDriverError<E::Error>>where
E: SpeculativeExecutor + 'a,
S: SpeculativeSampling<Logits = E::Logits, Error = E::Error, Context<'a> = E::Context<'a>> + 'a,
C: SpeculativeConstraint,
P: SpeculativePublisher<C>,
Drives one prepared set of lanes through the neutral lifecycle.
Auto Trait Implementations§
impl Freeze for RunSpeculativeGeneration
impl RefUnwindSafe for RunSpeculativeGeneration
impl Send for RunSpeculativeGeneration
impl Sync for RunSpeculativeGeneration
impl Unpin for RunSpeculativeGeneration
impl UnsafeUnpin for RunSpeculativeGeneration
impl UnwindSafe for RunSpeculativeGeneration
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
Mutably borrows from an owned value. Read more