Skip to content

Support the FP6 dtypes added in onnx 1.23 - #80

Merged
fpedd merged 1 commit into
mainfrom
support-onnx-fp6-dtypes
Oct 15, 2026
Merged

fpedd merged 1 commit into
mainfrom
support-onnx-fp6-dtypes

Conversation

@fpedd

@fpedd fpedd commented Oct 15, 2026

Copy link
Copy Markdown
Owner

onnx 1.23 adds FLOAT6E2M3 and FLOAT6E3M2, which make_tensor packs at 6 bits per element. They were missing from ITEMBITS, so test_itembits_covers_every_onnx_dtype fails on every build_wheels job: cibuildwheel installs the latest onnx (1.23.2), while Checks uses the locked 1.22.0 and stays green.

Adds both dtypes to ITEMBITS and to the test's sub-byte width table. Unit tests pass with onnx 1.22.0 and 1.23.2.

onnx 1.23 adds FLOAT6E2M3 and FLOAT6E3M2, packed at 6 bits per element.
Add them to ITEMBITS so the converter sizes them correctly and the
dtype coverage test passes again on the wheel builds, which install the
latest onnx rather than the locked one.
@fpedd
fpedd merged commit 656c348 into main Oct 15, 2026
13 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