Views
No views yet
kv_quant.py — quantization primitives: formats (INT4 / INT3 / NVFP4-e2m1),
block layouts (per-head-dim, per-channel), absmax / MSE-optimal calibration,
the {format} × {layout} × {calib} sweep, and roundtrip.scripts/quant_sweep.py — reconstruction-RMSE grid over real KV activations.scripts/quant_ab.py — frozen-page teacher-forced KL A/B vs BF16 (incl. INT3).scripts/quant_longctx.py — long-context KL-by-position via an SDPA patch.PROBLEM.md — full analysis, vLLM kernel notes, cost/benefit.1uv sync
2.venv/bin/python scripts/quant_sweep.py # RMSE grid
3.venv/bin/python scripts/quant_ab.py # downstream KL A/B
4.venv/bin/python scripts/quant_longctx.py # long-context trendpoolside/Laguna-XS.2 and run on the Blackwell node.