#[repr(u32)]pub enum VocabType {
BPE = 2,
SPM = 1,
}
Expand description
a rusty equivalent of llama_vocab_type
Variants§
Trait Implementations§
Source§impl TryFrom<u32> for VocabType
impl TryFrom<u32> for VocabType
Source§type Error = LlamaTokenTypeFromIntError
type Error = LlamaTokenTypeFromIntError
The type returned in the event of a conversion error.
impl Copy for VocabType
impl Eq for VocabType
impl StructuralPartialEq for VocabType
Auto Trait Implementations§
impl Freeze for VocabType
impl RefUnwindSafe for VocabType
impl Send for VocabType
impl Sync for VocabType
impl Unpin for VocabType
impl UnwindSafe for VocabType
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