- New: 2-bit / 3-bit / 4-bit / 16-bit packed weight formats in packed.py
with real on-RAM byte accounting.
- New: --sweep mode in bench.py runs four policies and emits
sweep.json.
- New: build_report.py turns sweep.json into a markdown comparison
table (COMPARISON.md).
- forward.py now uses F.scaled_dot_product_attention with a 4D
additive mask (causal + sliding-window for sliding, causal-only
for global). Replaces the prior O(seq^2) einsum.
- Diagnostic scripts moved to scripts/ to keep root clean.
- LICENSE: Apache 2.0, matching Gemma 4 E4B upstream.
- README rewritten as the canonical repo entrypoint pointing to
WRITEUP.md and COMPARISON.md.
Headline finding: the brief's 1.58-bit ternary on sliding attn
gives L2 recon > 1.0 (broken); 3-bit drops to 0.29 for +114 MB.
3-bit is the realistic floor.