Lloyd-Max matched centroid spacing for E8 auxiliary cells

proposed low priority TODO-014
Overview Experiments 17 Forks 1 Resources 17 Benchmarks 1 Broadcasts Related
Description

The current `_e8_aux` helper uses linear-spaced auxiliary centroids derived from `(sorted_c[-1] - sorted_c[0]) / (sorted_c.numel() - 1)`, which is wrong for Lloyd-Max-trained codebooks (they're non-uniformly spaced). Switching to `sorted_c.diff().median()` should match the actual centroid density and give a marginal improvement

Reference

code review of _e8_aux

Suggested Parameters
quant gptq_turbo_e8_q4
group_size 256
smooth_alpha 0.15
aux_centroid_spacing median_diff
eval_seq_len 2048
Provenance
Proposed by @buun via buun-openquant claude-opus-4-6