#1 [high] PR #717 subtraction audit findings
PR #717: adds "F16": 2 and "I16": 2 to ignition/preparation/checkpoint.py:97-98 _DTYPE_BYTES; one new test tests/preparation/test_checkpoint_dtypes.py (17 lines).
Facts:
- checkpoint.py:97-98 head:
_DTYPE_BYTES = {"BF16": 2, "F16": 2, "F32": 4, "F8_E4M3": 1, "F8_E8M0": 1,/"I8": 1, "U8": 1, "I16": 2, "U16": 2, "I32": 4, "U32": 4, "I64": 8}. Main same minus F16/I16. - Only consumers: checkpoint.py:142 (membership reject), :146
nbytes = math.prod(shape) * _DTYPE_BYTES[dtype]. Verified by search_code — no other use of_DTYPE_BYTES. - Duplicate table: ignition/preparation/rebuild_manifest.py:474-478
widths = {'bool': 1, 'uint8': 1, 'int8': 1, 'int16': 2, 'uint16': 2, 'float16': 2, 'bfloat16': 2, ... 'float8_e5m2': 1, ...}— torch-style names, 20 dtypes, already includes int16/float16 and float8_e5m2. - Missing from checkpoint table still: BOOL, F8_E5M2, F64, U64 (safetensors spec dtypes).
- Guard at :138-144 is one 6-line boolean; :146 re-looks-up width after membership already proven.
- Test hand-rolls shard bytes at :17-19
struct.pack("<Q", len(raw_header)) + raw_header + b"\x00" * 48; same idiom already in tests/preparation/test_checkpoint_quantization.py:18-23 and tests/preparation/test_checkpoint_source.py:29-32 (three copies). safetensors pkg is a test dep (tests/preparation/payload_fixture.py:14from safetensors import safe_open). _read_headerappears in no other test file (search: only test_checkpoint_dtypes.py:8,21).- Test asserts 6 things (:22-27); meta.path/meta.tensor_count re-test the fixture; only nbytes/dtype carry the change. No new flags/knobs/wrappers/dead branches/deps introduced.