pub struct SimpleDraftModel {
pub tokens: Vec<TokenId>,
pub probability: f32,
}Expand description
A mock draft model with a configurable token sequence and probability.
Fields§
§tokens: Vec<TokenId>Tokens the draft model will propose, cycling if gamma > len.
probability: f32Probability assigned to each drafted token.
Trait Implementations§
Source§impl DraftModel for SimpleDraftModel
impl DraftModel for SimpleDraftModel
Auto Trait Implementations§
impl Freeze for SimpleDraftModel
impl RefUnwindSafe for SimpleDraftModel
impl Send for SimpleDraftModel
impl Sync for SimpleDraftModel
impl Unpin for SimpleDraftModel
impl UnsafeUnpin for SimpleDraftModel
impl UnwindSafe for SimpleDraftModel
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