#[non_exhaustive]pub enum WeightType {
Show 33 variants
F32,
F16,
Q4_0,
Q4_1,
Q5_0,
Q5_1,
Q8_0,
Q8_1,
Q2_K,
Q3_K,
Q4_K,
Q5_K,
Q6_K,
Q8_K,
IQ2_XXS,
IQ2_XS,
IQ3_XXS,
IQ1_S,
IQ4_NL,
IQ3_S,
IQ2_S,
IQ4_XS,
I8,
I16,
I32,
I64,
F64,
IQ1_M,
BF16,
TQ1_0,
TQ2_0,
MXFP4,
F8_E4M3,
}Expand description
Model weight types
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.
F32
F16
Q4_0
Q4_1
Q5_0
Q5_1
Q8_0
Q8_1
Q2_K
Q3_K
Q4_K
Q5_K
Q6_K
Q8_K
IQ2_XXS
IQ2_XS
IQ3_XXS
IQ1_S
IQ4_NL
IQ3_S
IQ2_S
IQ4_XS
I8
I16
I32
I64
F64
IQ1_M
BF16
TQ1_0
TQ2_0
MXFP4
F8_E4M3
Trait Implementations§
Source§impl Clone for WeightType
impl Clone for WeightType
Source§fn clone(&self) -> WeightType
fn clone(&self) -> WeightType
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 WeightType
impl Debug for WeightType
Source§impl From<ChromaRadianceWeight> for WeightType
impl From<ChromaRadianceWeight> for WeightType
Source§fn from(child: ChromaRadianceWeight) -> Self
fn from(child: ChromaRadianceWeight) -> Self
Converts to this type from the input type.
Source§impl From<ChromaWeight> for WeightType
impl From<ChromaWeight> for WeightType
Source§fn from(child: ChromaWeight) -> Self
fn from(child: ChromaWeight) -> Self
Converts to this type from the input type.
Source§impl From<DiffInstructStarWeight> for WeightType
impl From<DiffInstructStarWeight> for WeightType
Source§fn from(child: DiffInstructStarWeight) -> Self
fn from(child: DiffInstructStarWeight) -> Self
Converts to this type from the input type.
Source§impl From<Flux1MiniWeight> for WeightType
impl From<Flux1MiniWeight> for WeightType
Source§fn from(child: Flux1MiniWeight) -> Self
fn from(child: Flux1MiniWeight) -> Self
Converts to this type from the input type.
Source§impl From<Flux1Weight> for WeightType
impl From<Flux1Weight> for WeightType
Source§fn from(child: Flux1Weight) -> Self
fn from(child: Flux1Weight) -> Self
Converts to this type from the input type.
Source§impl From<Flux2Weight> for WeightType
impl From<Flux2Weight> for WeightType
Source§fn from(child: Flux2Weight) -> Self
fn from(child: Flux2Weight) -> Self
Converts to this type from the input type.
Source§impl From<NitroSDRealismWeight> for WeightType
impl From<NitroSDRealismWeight> for WeightType
Source§fn from(child: NitroSDRealismWeight) -> Self
fn from(child: NitroSDRealismWeight) -> Self
Converts to this type from the input type.
Source§impl From<NitroSDVibrantWeight> for WeightType
impl From<NitroSDVibrantWeight> for WeightType
Source§fn from(child: NitroSDVibrantWeight) -> Self
fn from(child: NitroSDVibrantWeight) -> Self
Converts to this type from the input type.
Source§impl From<OvisImageWeight> for WeightType
impl From<OvisImageWeight> for WeightType
Source§fn from(child: OvisImageWeight) -> Self
fn from(child: OvisImageWeight) -> Self
Converts to this type from the input type.
Source§impl From<QwenImageWeight> for WeightType
impl From<QwenImageWeight> for WeightType
Source§fn from(child: QwenImageWeight) -> Self
fn from(child: QwenImageWeight) -> Self
Converts to this type from the input type.
Source§impl From<SSD1BWeight> for WeightType
impl From<SSD1BWeight> for WeightType
Source§fn from(child: SSD1BWeight) -> Self
fn from(child: SSD1BWeight) -> Self
Converts to this type from the input type.
Source§impl From<ZImageTurboWeight> for WeightType
impl From<ZImageTurboWeight> for WeightType
Source§fn from(child: ZImageTurboWeight) -> Self
fn from(child: ZImageTurboWeight) -> Self
Converts to this type from the input type.
Source§impl TryFrom<WeightType> for ChromaRadianceWeight
impl TryFrom<WeightType> for ChromaRadianceWeight
Source§type Error = ChromaRadianceWeightConvertError
type Error = ChromaRadianceWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for ChromaWeight
impl TryFrom<WeightType> for ChromaWeight
Source§type Error = ChromaWeightConvertError
type Error = ChromaWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for DiffInstructStarWeight
impl TryFrom<WeightType> for DiffInstructStarWeight
Source§type Error = DiffInstructStarWeightConvertError
type Error = DiffInstructStarWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for Flux1MiniWeight
impl TryFrom<WeightType> for Flux1MiniWeight
Source§type Error = Flux1MiniWeightConvertError
type Error = Flux1MiniWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for Flux1Weight
impl TryFrom<WeightType> for Flux1Weight
Source§type Error = Flux1WeightConvertError
type Error = Flux1WeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for Flux2Weight
impl TryFrom<WeightType> for Flux2Weight
Source§type Error = Flux2WeightConvertError
type Error = Flux2WeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for NitroSDRealismWeight
impl TryFrom<WeightType> for NitroSDRealismWeight
Source§type Error = NitroSDRealismWeightConvertError
type Error = NitroSDRealismWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for NitroSDVibrantWeight
impl TryFrom<WeightType> for NitroSDVibrantWeight
Source§type Error = NitroSDVibrantWeightConvertError
type Error = NitroSDVibrantWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for OvisImageWeight
impl TryFrom<WeightType> for OvisImageWeight
Source§type Error = OvisImageWeightConvertError
type Error = OvisImageWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for QwenImageWeight
impl TryFrom<WeightType> for QwenImageWeight
Source§type Error = QwenImageWeightConvertError
type Error = QwenImageWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for SSD1BWeight
impl TryFrom<WeightType> for SSD1BWeight
Source§type Error = SSD1BWeightConvertError
type Error = SSD1BWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
Source§impl TryFrom<WeightType> for ZImageTurboWeight
impl TryFrom<WeightType> for ZImageTurboWeight
Source§type Error = ZImageTurboWeightConvertError
type Error = ZImageTurboWeightConvertError
The type returned in the event of a conversion error.
Source§fn try_from(
parent: WeightType,
) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
fn try_from( parent: WeightType, ) -> Result<Self, <Self as TryFrom<WeightType>>::Error>
Performs the conversion.
impl Copy for WeightType
Auto Trait Implementations§
impl Freeze for WeightType
impl RefUnwindSafe for WeightType
impl Send for WeightType
impl Sync for WeightType
impl Unpin for WeightType
impl UnwindSafe for WeightType
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<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