pub enum PendingTextInput<P, T> {
Prefill(P),
Decode(T),
}Expand description
Input for the next ordinary prediction. A committed token may still be the pending decode input and must not be inserted into model state until that step.
Variants§
Prefill(P)
The original prepared prompt, before the first model prediction.
Decode(T)
The preceding committed canonical token, before its successor is predicted.
Implementations§
Source§impl<P, T> PendingTextInput<P, T>
impl<P, T> PendingTextInput<P, T>
Sourcepub fn as_ref(&self) -> PendingTextInput<&P, &T>
pub fn as_ref(&self) -> PendingTextInput<&P, &T>
Borrows the pending native input without cloning or evaluating it.
Auto Trait Implementations§
impl<P, T> Freeze for PendingTextInput<P, T>
impl<P, T> RefUnwindSafe for PendingTextInput<P, T>where
P: RefUnwindSafe,
T: RefUnwindSafe,
impl<P, T> Send for PendingTextInput<P, T>
impl<P, T> Sync for PendingTextInput<P, T>
impl<P, T> Unpin for PendingTextInput<P, T>
impl<P, T> UnsafeUnpin for PendingTextInput<P, T>where
P: UnsafeUnpin,
T: UnsafeUnpin,
impl<P, T> UnwindSafe for PendingTextInput<P, T>where
P: UnwindSafe,
T: UnwindSafe,
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