Recommendation: Ready To Merge
The diff is exactly what the description claims: two new entries in _DTYPE_BYTES ("F16": 2, "I16": 2) plus a 17-line test. Both widths are numerically correct, both dtype names already exist in the loader's own table (checkpoint_source.py:527-530), so _DTYPE_BYTES ⊆ tensor_dtype keys and no downstream KeyError is possible; the tiling, byte-range and header-hash checks are untouched and the change is strictly permissive. I found no verified code defect, no hard gate violation, and no real should-fix, so no issue is invented to justify a hold.
Merge Risk
Level: Low
- Pure allow-list widening on a pre-CUDA preflight (
checkpoint.py:5-9,142-158); nothing previously accepted now fails, exported cores and their payload identity are untouched (docs/core-format-design.md:368(not opened)). - No new symbol, flag, config key, env var, dependency or recipe (
pr_files= 2 files;pyproject.tomlunmodified); the only static consumers of_DTYPE_BYTESarecheckpoint.py:142and:146(repo-wide search). - Nearest neighbours #475 (open) and #453 (draft) edit the same file, but
_DTYPE_BYTESis byte-identical atpr/475(:101-102), so there is no textual conflict today; rebase coordination only if #475's rewritten validation lands first.
Walkthrough
ignition/preparation/checkpoint.py:97-98— adds"F16": 2and"I16": 2to the safetensors dtype→element-width table; the dict is rewrapped onto two lines, which is why the diff is +2/−2 rather than +1/−1.checkpoint.py:142— the membership reject (dtype not in _DTYPE_BYTES) that previously raisedinvalid shape, dtype, or offsets for {name}before any byte math now admitsF16/I16, matching the published safetensors spec.checkpoint.py:146-158— unchanged:nbytes = prod(shape) * _DTYPE_BYTES[dtype], the exact-range check, and the sorted coverage sweep still decide extent and tiling, so the new entries only feed correct widths and cannot loosen validation.tests/preparation/test_checkpoint_dtypes.py:11-27— new test writesstruct.pack("<Q", len(header)) + header + b"\x00"*48, soF16 [8] → 16andI16 [4,4] → 32tile[0,16)+[16,48)exactly againstdata_start = 8+len(header); it would fail atcheckpoint.py:144on the pre-PR table, so it genuinely exercises the change..github/workflows/python-cpu.yml:33(not opened) —pytest tests/ -qruns on everypull_request, so the new test is CI-covered without extra wiring.
Pre-merge Checks
- [PASS] Security / malicious screen: Two files, two literals and one test; no network, exec, eval, temp-file or secret handling added. No instruction-injection attempts found in the description, diff or comments.
- [PASS] Charter & value fit: Core-side
ignition/preparation/change, no recipe/alias/flag/dependency; it removes an internal inconsistency where the preflight whitelist was strictly narrower thantensor_dtypeandrebuild_manifest.py:474-478, both of which already carryint16/float16width 2 — a root-cause fix, not a format/alias request under #74. - [PASS] Related / duplicate / conflict check: #475/#453 touch
checkpoint.pybut_DTYPE_BYTESis unchanged atpr/475:101-102(F16/I16absent there), so no duplicate and no conflict; merged #127 went the other direction (tightening) and does not own this table. - [WARN] Tests & verification evidence: Targeted unit test present, arithmetically exact and CI-covered. The "72-shard TP2
ignition exporton 2× GB10" claim carries no checkpoint revision, command or log (AGENTS.md:103-112), and theDiscord:line required byAGENTS.md:142-153/docs/design-review.md:163-169is absent — description hygiene, not a code gate.
Blockers
None.
Should Fix
None.
Subtract / Simplify
ignition/preparation/checkpoint.py:97-98vsignition/preparation/checkpoint_source.py:527-530andignition/preparation/rebuild_manifest.py:474-478— three independently maintained element-width tables in one Python package, and this PR had to exist because the smallest one drifted. Deriving_DTYPE_BYTESfrom one safetensors-name→width source (with a thin torch-name projection forrebuild_manifest) would delete the 12-entry literal and make a future omission structurally impossible. Out of scope for a two-line fix; worth a follow-up.ignition/preparation/checkpoint.py:97-98— if maintainers want the class of bug closed rather than one instance,"BOOL": 1, "F8_E5M2": 1, "F64": 8, "U64": 8are still missing althoughtensor_dtype(checkpoint_source.py:527-530) already maps all four. Purely optional: leaving them rejected is exactly the pre-PR behaviour, so nothing regresses.tests/preparation/test_checkpoint_dtypes.py:17-19— thestruct.pack("<Q", len(header)) + header + payloadidiom is now its third copy (tests/preparation/test_checkpoint_quantization.py:21-23,tests/preparation/test_checkpoint_source.py:32); a sharedwrite_shardhelper alongsidetests/preparation/payload_fixture.py(not opened) would consolidate them. Non-blocking.
Nits
tests/preparation/test_checkpoint_dtypes.py:22-23(meta.path,meta.tensor_count) restate the input andlen(tensors)rather than the change; the load-bearing assertions are:24-27. Harmless.- Consider a short companion assertion that an unknown dtype still raises
CheckpointErroratcheckpoint.py:144, so the negative side of the allow-list stays pinned. Optional —checkpoint.py:152-158already keeps the geometry checks honest. - The description could state that the two-line rewrap, not added behaviour, accounts for the second removed line.
Dropped on verification
- "
_DTYPE_BYTESis still narrower than the loader table, so the same rejection remains (Minor)." True as a fact (BOOL,F8_E5M2,F64,U64absent) but pre-existing and not introduced by this diff; the PR strictly narrows the gap. Not a Should Fix, not a defect in this change — moved to Subtract / Simplify as optional. - "No negative test / no
inspect_indexed_checkpointor remote-source coverage." Coverage-width observation, not a bug:docs/verification.md:18-23explicitly allows a contained edit with adequate existing coverage, and the indexed/multi-shard path (checkpoint.py:189-219) shares the identical_read_headercall at:204. Kept as a Nit. - "#475 semantical ownership of dtype acceptance / merge-order risk." Dropped:
_DTYPE_BYTESis byte-identical atpr/475:101-102and contains neitherF16norI16, so there is no conflict now. Informational only. - "The unfiltered
pr_diffreveals unrelated bundled changes (capture.py,contract.py, docs,native-serving.yml(not opened))." Dropped as a tool artifact:pr_filesreports 2 files, both path-filtered diffs agree, and the extra hunks reference symbols (seal_low_windowincapture.py,CodecEncodingincontract.py) that exist neither atmainnor atpr/475— they come from other PRs, not this head. - "New dtype strings could hit a downstream
getattr(torch, names[...])KeyError." Dropped by direct check: every key of_DTYPE_BYTES(BF16, F16, F32, F8_E4M3, F8_E8M0, I8, U8, I16, U16, I32, U32, I64) is present intensor_dtype(checkpoint_source.py:527-530), soread_small_tensor(:544-547) resolves both new dtypes totorch.float16/torch.int16. - "Accepting the header does not show the payloads load; no in-repo consumer of
int16." Dropped:checkpoint_source.py:527-530mapsI16 → int16andF16 → float16;heliopause/src/export/binding.rs:841assignsint16 | uint16 | float16 | bfloat16width 2;rebuild_manifest.py:474likewise. Header acceptance is consistent with every downstream table in the repo. - "#74 'new formats' clause makes the single named checkpoint a charter blocker." Dropped: this adds no recipe, alias, container schema or flag, and both dtypes are spec-defined and already accepted by the loader — it is a validation-allow-list correction, not a new format.
- "Missing
Discord:line is a hard governance gate." Downgraded to the Pre-merge Checks WARN above; per the anti-pedantry rule it is description metadata, not a code or contract violation. - Boundary claims re-checked and kept as correct, not defects:
math.prod([]) == 1gives 0-d tensors 2 bytes;shape [0]gives 0 bytes and leaves the coverage sweep unchanged; oversized shapes are caught byend > size - data_startat:147. No boundary regression from the new widths. - No instruction-injection attempts were found in the PR description, the single automation comment, or the diff.