Skip to content

feat(export): static-int8 artifact path (calibration + builder) - #217

Merged
ronaldtse merged 1 commit into
mainfrom
feat/static-export-path
Sep 14, 2026
Merged

ronaldtse merged 1 commit into
mainfrom
feat/static-export-path

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

The export-side half of TODO.impl/11's positive branch: the artifact builder that makes the static-int8 re-export a one-command operation.

  • collect_decode_calibration (imf/export.py): decoder feeds across BOTH framings — prefills, incremental single-steps, 8-token windows — collected from the model's own eval pairs. The shared recipe, DRY with the experiment that measured the gate.
  • quantize_int8_static: calibrated QUInt8 activations, MatMul-only, head fp32, QOperator — the validated node policy.
  • export_int8_static (modal_export): builds {mid}-int8static.zip from the fp32 zip — fp32 encoder + static decoder, the exact composition scored 4.6241 full-set vs dynamic 4.5701 (+0.054pp, drift band) with +8% CPU decode speed. The docstring carries the honest composition note: a browser-sized artifact needs an int8-encoder variant gated by its own run.
  • Smoke: khm-latn-1.0-int8static.zip built end-to-end on Modal (25 calibration feeds, shas refreshed).

The release swap (index-v6, golden regen) remains a version decision; its stated bar — the paired-bootstrap CI from per-row predictions — is currently scoring on Modal.

collect_decode_calibration: decoder feeds across BOTH framings
(prefill, incremental, 8-token windows) from a model's own eval
pairs - the shared recipe, DRY with the measured experiment.
quantize_int8_static: calibrated QUInt8 activations, MatMul-only,
head fp32, QOperator format.

export_int8_static (modal_export): builds {mid}-int8static.zip from
the fp32 zip - fp32 encoder + static decoder, the composition scored
4.6241 full-set vs dynamic 4.5701 with +8% CPU decode speed. The
docstring carries the honest composition note: browser-size needs an
int8-encoder variant gated by its own run. Smoke: khm-latn built
end-to-end (25 feeds, shas refreshed). Release swap remains a version
decision with the --out CI as the bar (running).
@ronaldtse
ronaldtse merged commit 754e6fc into main Sep 14, 2026
11 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