pub enum ProposerKind {
NativeMtp {
prediction_depth: u32,
layer_indices: Vec<u32>,
},
NgramCache {
ngram_min: u32,
ngram_max: u32,
max_proposal_tokens: u32,
history_scope: String,
},
NgramSuffix {
ngram_min: u32,
ngram_max: u32,
max_proposal_tokens: u32,
history_scope: String,
},
}Variants§
Trait Implementations§
Source§impl Clone for ProposerKind
impl Clone for ProposerKind
Source§impl Debug for ProposerKind
impl Debug for ProposerKind
Source§impl<'de> Deserialize<'de> for ProposerKind
impl<'de> Deserialize<'de> for ProposerKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProposerKind
Source§impl PartialEq for ProposerKind
impl PartialEq for ProposerKind
Source§impl Serialize for ProposerKind
impl Serialize for ProposerKind
impl StructuralPartialEq for ProposerKind
Auto Trait Implementations§
impl Freeze for ProposerKind
impl RefUnwindSafe for ProposerKind
impl Send for ProposerKind
impl Sync for ProposerKind
impl Unpin for ProposerKind
impl UnsafeUnpin for ProposerKind
impl UnwindSafe for ProposerKind
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