pub struct CompressionConfig {Show 15 fields
pub strategy: CompressionStrategy,
pub compression_ratio: Float,
pub quality_threshold: Float,
pub quantization_bits: Option<u8>,
pub sparsity_level: Option<Float>,
pub low_rank: Option<usize>,
pub distillation_temperature: Float,
pub distillation_epochs: usize,
pub distillation_lr: Float,
pub progressive_compression: bool,
pub bayes_opt_n_calls: usize,
pub bayes_opt_n_initial: usize,
pub bayes_opt_acquisition_kappa: Float,
pub bayes_opt_random_state: Option<u64>,
pub performance_cost_trade_off: Float,
}Expand description
Compression configuration
Fields§
§strategy: CompressionStrategyPrimary compression strategy
compression_ratio: FloatTarget compression ratio (0.0 to 1.0)
quality_threshold: FloatQuality threshold - minimum acceptable performance
quantization_bits: Option<u8>Number of bits for quantization
sparsity_level: Option<Float>Sparsity level for sparse representation
low_rank: Option<usize>Rank for low-rank approximation
distillation_temperature: FloatDistillation temperature for knowledge distillation
distillation_epochs: usizeNumber of distillation epochs
distillation_lr: FloatLearning rate for distillation
progressive_compression: boolEnable progressive compression
bayes_opt_n_calls: usizeBayesian optimization configuration
bayes_opt_n_initial: usize§bayes_opt_acquisition_kappa: Float§bayes_opt_random_state: Option<u64>§performance_cost_trade_off: FloatPerformance-cost trade-off weight
Trait Implementations§
Source§impl Clone for CompressionConfig
impl Clone for CompressionConfig
Source§fn clone(&self) -> CompressionConfig
fn clone(&self) -> CompressionConfig
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 CompressionConfig
impl Debug for CompressionConfig
Auto Trait Implementations§
impl Freeze for CompressionConfig
impl RefUnwindSafe for CompressionConfig
impl Send for CompressionConfig
impl Sync for CompressionConfig
impl Unpin for CompressionConfig
impl UnwindSafe for CompressionConfig
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