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 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