veloxquant_mlx.artifacts.base module¶
Re-exports the ArtifactStore ABC for the artifacts subpackage.
Lets callers write from veloxquant_mlx.artifacts.base import ArtifactStore
alongside the concrete backends in this package instead of reaching into
core.abstractions directly.
- class veloxquant_mlx.artifacts.base.ArtifactStore[source]¶
Bases:
ABCDAO interface for loading and saving precomputed quantization artifacts.
- abstractmethod load_rotation_matrix(d, seed)[source]¶
Load a precomputed rotation matrix.
- Parameters:
- Return type:
- Returns:
MLX array of shape (d, d), fp16.
- Raises:
ArtifactNotFoundError – If the artifact does not exist.
- abstractmethod load_codebook(distribution, b, d)[source]¶
Load a precomputed codebook.
- Parameters:
- Return type:
- Returns:
MLX array of shape (2^b,), fp16.
- Raises:
ArtifactNotFoundError – If the artifact does not exist.
- abstractmethod load_jl_matrix(d, m, seed)[source]¶
Load a precomputed JL projection matrix.
- Parameters:
- Return type:
- Returns:
MLX array of shape (m, d), fp16.
- Raises:
ArtifactNotFoundError – If the artifact does not exist.