Skip to main content

Crate tinyquant_core

Crate tinyquant_core 

Source
Expand description

CPU-only vector quantization codec — core types, codec, corpus, and backend trait.

This crate is no_std (requires alloc only). It contains no I/O, no file-system access, and no platform-specific code.

Re-exports§

pub use crate::codec::service::GpuComputeBackend;
pub use crate::codec::service::GPU_BATCH_THRESHOLD;

Modules§

backend
Search-backend trait and associated types.
codec
Codec layer: deterministic CodecConfig, canonical rotation matrix, rotation cache, codebook quantization, residual helpers, the stateless Codec service, and the PreparedCodec session object.
corpus
Corpus aggregate root and related domain types.
errors
Error enums for the TinyQuant core.
gpu
GPU acceleration trait and threshold constant.
prelude
Convenience re-exports for glob import (use tinyquant_core::prelude::*).
types
Shared primitive type aliases mirroring tinyquant_cpu._types.