pub enum Special {
Tokenize,
Plaintext,
}๐Deprecated since 0.1.0: This enum is a mixture of options for llama cpp providing less flexibility it only used with deprecated methods and will be removed in the future.
Expand description
How to determine if we should tokenize special tokens
Variantsยง
Tokenize
๐Deprecated since 0.1.0: This enum is a mixture of options for llama cpp providing less flexibility it only used with deprecated methods and will be removed in the future.
Allow tokenizing special and/or control tokens which otherwise are not exposed and treated as plaintext. Does not insert a leading space.
Plaintext
๐Deprecated since 0.1.0: This enum is a mixture of options for llama cpp providing less flexibility it only used with deprecated methods and will be removed in the future.
Treat special and/or control tokens as plaintext.
Trait Implementationsยง
impl Copy for Special
impl Eq for Special
impl StructuralPartialEq for Special
Auto Trait Implementationsยง
impl Freeze for Special
impl RefUnwindSafe for Special
impl Send for Special
impl Sync for Special
impl Unpin for Special
impl UnsafeUnpin for Special
impl UnwindSafe for Special
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