#[repr(u32)]pub enum GGufFileType {
Show 36 variants
AllF32 = 0,
MostlyF16 = 1,
MostlyQ4_0 = 2,
MostlyQ4_1 = 3,
MostlyQ4_1SomeF16 = 4,
MostlyQ4_2 = 5,
MostlyQ4_3 = 6,
MostlyQ8_0 = 7,
MostlyQ5_0 = 8,
MostlyQ51 = 9,
MostlyQ2K = 10,
MostlyQ3KS = 11,
MostlyQ3KM = 12,
MostlyQ3KL = 13,
MostlyQ4KS = 14,
MostlyQ4KM = 15,
MostlyQ5KS = 16,
MostlyQ5KM = 17,
MostlyQ6K = 18,
MostlyIQ2XXS = 19,
MostlyIQ2XS = 20,
MostlyQ2KS = 21,
MostlyIQ3XS = 22,
MostlyIQ3XXS = 23,
MostlyIQ1S = 24,
MostlyIQ4NL = 25,
MostlyIQ3S = 26,
MostlyIQ3M = 27,
MostlyIQ2S = 28,
MostlyIQ2M = 29,
MostlyIQ4XS = 30,
MostlyIQ1M = 31,
MostlyBF16 = 32,
MostlyQ4_0_4_4 = 33,
MostlyQ4_0_4_8 = 34,
MostlyQ4_0_8_8 = 35,
}
Expand description
GGUF 文件类型枚举。
表示 GGUF 文件中使用的主要数据类型。
Variants§
AllF32 = 0
MostlyF16 = 1
MostlyQ4_0 = 2
MostlyQ4_1 = 3
MostlyQ4_1SomeF16 = 4
MostlyQ4_2 = 5
👎Deprecated: support removed
MostlyQ4_3 = 6
👎Deprecated: support removed
MostlyQ8_0 = 7
MostlyQ5_0 = 8
MostlyQ51 = 9
MostlyQ2K = 10
MostlyQ3KS = 11
MostlyQ3KM = 12
MostlyQ3KL = 13
MostlyQ4KS = 14
MostlyQ4KM = 15
MostlyQ5KS = 16
MostlyQ5KM = 17
MostlyQ6K = 18
MostlyIQ2XXS = 19
MostlyIQ2XS = 20
MostlyQ2KS = 21
MostlyIQ3XS = 22
MostlyIQ3XXS = 23
MostlyIQ1S = 24
MostlyIQ4NL = 25
MostlyIQ3S = 26
MostlyIQ3M = 27
MostlyIQ2S = 28
MostlyIQ2M = 29
MostlyIQ4XS = 30
MostlyIQ1M = 31
MostlyBF16 = 32
MostlyQ4_0_4_4 = 33
MostlyQ4_0_4_8 = 34
MostlyQ4_0_8_8 = 35
Trait Implementations§
Source§impl Clone for GGufFileType
impl Clone for GGufFileType
Source§fn clone(&self) -> GGufFileType
fn clone(&self) -> GGufFileType
Returns a duplicate 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 GGufFileType
impl Debug for GGufFileType
Source§impl Hash for GGufFileType
impl Hash for GGufFileType
Source§impl PartialEq for GGufFileType
impl PartialEq for GGufFileType
Source§impl TryFrom<u32> for GGufFileType
impl TryFrom<u32> for GGufFileType
Source§type Error = TryFromPrimitiveError<GGufFileType>
type Error = TryFromPrimitiveError<GGufFileType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for GGufFileType
impl TryFromPrimitive for GGufFileType
const NAME: &'static str = "GGufFileType"
type Primitive = u32
type Error = TryFromPrimitiveError<GGufFileType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GGufFileType
impl Eq for GGufFileType
impl StructuralPartialEq for GGufFileType
Auto Trait Implementations§
impl Freeze for GGufFileType
impl RefUnwindSafe for GGufFileType
impl Send for GGufFileType
impl Sync for GGufFileType
impl Unpin for GGufFileType
impl UnwindSafe for GGufFileType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more