Skip to main content

tinyquant_core/codec/
mod.rs

1//! Codec layer: deterministic `CodecConfig`, canonical rotation matrix,
2//! rotation cache, codebook quantization, residual helpers, and the
3//! stateless `Codec` service.
4//!
5//! Phase 13 introduced the rotation primitives; Phase 14 adds the
6//! uniform-quantile [`Codebook`] plus scalar quantize / dequantize
7//! kernels. Phase 15 adds the `Codec` service, FP16 residual helpers,
8//! `CompressedVector` value object, and `Parallelism` enum.
9
10#[cfg(feature = "std")]
11pub(crate) mod batch;
12#[cfg(feature = "std")]
13pub(crate) mod batch_error;
14pub mod codebook;
15pub mod codec_config;
16pub mod compressed_vector;
17#[cfg(feature = "simd")]
18pub mod dispatch;
19pub mod gaussian;
20pub(crate) mod kernels;
21pub mod parallelism;
22pub(crate) mod quantize;
23pub mod residual;
24pub mod rotation_cache;
25pub mod rotation_matrix;
26pub mod service;
27#[cfg(feature = "simd")]
28pub mod simd_api;
29
30pub use codebook::Codebook;
31pub use codec_config::{CodecConfig, SUPPORTED_BIT_WIDTHS};
32pub use compressed_vector::CompressedVector;
33pub use parallelism::Parallelism;
34pub use rotation_cache::{RotationCache, DEFAULT_CAPACITY as ROTATION_CACHE_DEFAULT_CAPACITY};
35pub use rotation_matrix::RotationMatrix;
36pub use service::{compress, decompress, Codec};