Skip to main content

Module compressed_vector

Module compressed_vector 

Source
Expand description

In-memory CompressedVector value object (Phase 15).

Serialization (to_bytes / from_bytes) arrives in Phase 16 inside tinyquant-io. Field layout is intentionally stable for that transition.

One byte per dimension in indices (upper bits zero for bit_width < 8); when present, residual is exactly 2 * dimension bytes of f16 LE.

Structs§

CompressedVector
Immutable per-vector compressed payload. Mirrors Python CompressedVector.