pub struct QuantizationConfig {
pub weight_dtype: Option<DataType>,
pub moe_dtype: Option<DataType>,
pub activation_dtype: Option<DataType>,
pub kv_cache_dtype: Option<DataType>,
}Expand description
Precision/quantization dtypes. Flattened into EngineConfig. Field
names and types are unchanged from the former flat struct so the flat
wire keys (weight_dtype, moe_dtype, …) parse unchanged.
Fields§
§weight_dtype: Option<DataType>§moe_dtype: Option<DataType>§activation_dtype: Option<DataType>§kv_cache_dtype: Option<DataType>Trait Implementations§
Source§impl Clone for QuantizationConfig
impl Clone for QuantizationConfig
Source§fn clone(&self) -> QuantizationConfig
fn clone(&self) -> QuantizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantizationConfig
impl Debug for QuantizationConfig
Source§impl<'de> Deserialize<'de> for QuantizationConfig
impl<'de> Deserialize<'de> for QuantizationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QuantizationConfig
impl PartialEq for QuantizationConfig
Source§impl Serialize for QuantizationConfig
impl Serialize for QuantizationConfig
impl StructuralPartialEq for QuantizationConfig
Auto Trait Implementations§
impl Freeze for QuantizationConfig
impl RefUnwindSafe for QuantizationConfig
impl Send for QuantizationConfig
impl Sync for QuantizationConfig
impl Unpin for QuantizationConfig
impl UnsafeUnpin for QuantizationConfig
impl UnwindSafe for QuantizationConfig
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