Enum llama_cpp_2::model::VocabType
source · #[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
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)