Expand description
CodecConfig: immutable value object describing codec parameters.
Mirrors tinyquant_cpu.codec.codec_config.CodecConfig field-for-field.
The canonical config_hash format is a SHA-256 digest of a fixed
canonical string and matches the Python reference byte-for-byte so
artifacts produced by either implementation are interchangeable.
The canonical string format is:
CodecConfig(bit_width={b},seed={s},dimension={d},residual_enabled={r})where {r} stringifies the bool as Python’s str(bool) spelling —
"True" or "False" (capitalized). Deviating from this in any way
(spaces, case, field order) breaks parity.
Structs§
- Codec
Config - Immutable configuration snapshot that fully determines codec behavior.
Constants§
- SUPPORTED_
BIT_ WIDTHS - The complete set of quantization bit widths supported by
TinyQuant.