Skip to content

docs: the tagline named the codebook the flagship path replaced - #63

Merged
cnygaard merged 1 commit into
mainfrom
docs/tagline-lattice-and-trellis
Aug 17, 2026
Merged

docs: the tagline named the codebook the flagship path replaced#63
cnygaard merged 1 commit into
mainfrom
docs/tagline-lattice-and-trellis

Conversation

@cnygaard

Copy link
Copy Markdown
Owner

README.md opened with "E8-lattice post-training quantization", which describes one of four codebooks — and not the one the project recommends.

--codebook accepts e8_shell, e8_relaxed, e8p and trellis. The trellis path is QTIP TCQ; from its own module docstring it "reaches effective quantization dimension 256 with a lookup-free / small-LUT decode, beating GLQ's 8-D E8 lattice at low bit-rates".

The contradiction was visible on a single screen: line 3 said E8-lattice, line 17 said "NEW in v0.7 — trellis (TCQ) codebook", and the checkpoint table marks SmolLM3-3B-trellis-3inst-4bpw-kernel as "fastest GLQ decode".

It also undersold the result: 2 bpw trellis beats 2 bpw e8p at PPL 11.94 vs 13.79 (bf16 9.12) because it is not an 8-dimensional lattice.

Changed

  • Tagline → "Lattice and trellis-coded post-training quantization … 2–8 bits/weight". The bit range was already correct and is unchanged.
  • Mechanism paragraph — it described E8 index encoding as simply what "GLQ" does. It now names both families, says which is recommended, and gives the low-bpw evidence. The shared parts (RHT, Hessian-weighted proxy, fused kernel against compressed indices) read the same for both.
  • pyproject.toml description — same correction. This reaches PyPI only on the next release, so 0.8.7's page keeps the old wording.
  • GitHub repo description — updated out-of-band via gh repo edit, already live.

No code change; no claim about speed, footprint or quality is altered.

"E8-lattice post-training quantization" described one of four codebooks, and not the
recommended one. `--codebook` accepts e8_shell, e8_relaxed, e8p and trellis; the trellis
path is QTIP TCQ, which reaches effective dimension 256 with a lookup-free decode and is
explicitly not an 8-dimensional lattice.

The contradiction was visible on one screen: the first line said E8-lattice, and a few lines
later "NEW in v0.7 — trellis (TCQ) codebook" plus a checkpoint table marking the trellis
build as the fastest GLQ decode. It also undersold the work — 2 bpw trellis beats 2 bpw e8p
on SmolLM3-3B at PPL 11.94 vs 13.79 (bf16 9.12), precisely because it is not a lattice.

The mechanism paragraph had the same problem: it described E8 index encoding as what "GLQ"
does. It now leads with trellis as the recommended path and keeps E8 in its actual role —
which is more than backward compatibility. `--codebook` still defaults to e8_shell, and
trellis hard-errors on anything but a uniform integer bpw ("requires a uniform integer bpw
(2-8)"), so fractional and per-layer mixed precision are E8-only. Claiming E8 was kept
merely to load old checkpoints would have been the opposite error to the one being fixed.

The GitHub repo description is updated to match (takes effect immediately). The pyproject
description reaches PyPI only on the next release, so 0.8.7's page keeps the old wording.
@cnygaard
cnygaard force-pushed the docs/tagline-lattice-and-trellis branch from ccb80a0 to ee07ec5 Compare August 17, 2026 21:48
@cnygaard
cnygaard enabled auto-merge (squash) August 17, 2026 21:48
@cnygaard
cnygaard merged commit a8fd459 into main Aug 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant