Skip to main content

entrenar/quant/benchmarks/
mod.rs

1//! Accuracy Degradation Benchmarks
2//!
3//! Provides benchmarks for measuring quantization accuracy degradation:
4//! - Synthetic workload benchmarks
5//! - Bit-width comparison (4-bit vs 8-bit)
6//! - Granularity comparison (per-tensor vs per-channel vs per-group)
7//! - Model-like weight pattern tests
8//! - Numerical precision edge cases
9
10mod generators;
11mod runners;
12mod types;
13
14#[cfg(test)]
15mod tests;
16
17// Re-export types
18pub use types::{BenchmarkSuite, QuantBenchmarkResult};
19
20// Re-export generators
21pub use generators::{
22    generate_gaussian_weights, generate_multi_channel_weights, generate_uniform_weights,
23    generate_weights_with_outliers,
24};
25
26// Re-export runners
27pub use runners::{
28    accuracy_retention, compare_bit_width_degradation, run_benchmark, run_full_benchmark_suite,
29};