This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * TurboQuant: CPU Reference Implementation | |
| * ========================================== | |
| * Implements Algorithm 1 (TurboQuant_mse) from Zandieh et al., ICLR 2026. | |
| * | |
| * This is the portable C implementation that runs on CPU. | |
| * The CUDA implementation (ggml_turboquant.cu) mirrors this logic | |
| * with GPU-optimized kernels. | |
| * | |
| * Authors: Jim Sullivan / Claude collaboration |