#[non_exhaustive]#[repr(i32)]pub enum llama_rope_scaling_type {
LLAMA_ROPE_SCALING_TYPE_UNSPECIFIED = -1,
LLAMA_ROPE_SCALING_TYPE_NONE = 0,
LLAMA_ROPE_SCALING_TYPE_LINEAR = 1,
LLAMA_ROPE_SCALING_TYPE_YARN = 2,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LLAMA_ROPE_SCALING_TYPE_UNSPECIFIED = -1
LLAMA_ROPE_SCALING_TYPE_NONE = 0
LLAMA_ROPE_SCALING_TYPE_LINEAR = 1
LLAMA_ROPE_SCALING_TYPE_YARN = 2
Implementations§
source§impl llama_rope_scaling_type
impl llama_rope_scaling_type
pub const LLAMA_ROPE_SCALING_TYPE_MAX_VALUE: llama_rope_scaling_type = llama_rope_scaling_type::LLAMA_ROPE_SCALING_TYPE_YARN
Trait Implementations§
source§impl Clone for llama_rope_scaling_type
impl Clone for llama_rope_scaling_type
source§fn clone(&self) -> llama_rope_scaling_type
fn clone(&self) -> llama_rope_scaling_type
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for llama_rope_scaling_type
impl Debug for llama_rope_scaling_type
source§impl Hash for llama_rope_scaling_type
impl Hash for llama_rope_scaling_type
source§impl PartialEq for llama_rope_scaling_type
impl PartialEq for llama_rope_scaling_type
source§fn eq(&self, other: &llama_rope_scaling_type) -> bool
fn eq(&self, other: &llama_rope_scaling_type) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for llama_rope_scaling_type
impl Eq for llama_rope_scaling_type
impl StructuralPartialEq for llama_rope_scaling_type
Auto Trait Implementations§
impl Freeze for llama_rope_scaling_type
impl RefUnwindSafe for llama_rope_scaling_type
impl Send for llama_rope_scaling_type
impl Sync for llama_rope_scaling_type
impl Unpin for llama_rope_scaling_type
impl UnwindSafe for llama_rope_scaling_type
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