Repository navigation
gpt-oss: host-only config, tensor names and an MXFP4 block reader (slice 1) - #3513
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/gpt-oss-host
branch
2 times, most recently
from
November 19, 2026 16:01
fa318c7 to
4a58b19
Compare
ashhart
force-pushed
the
lead/gpt-oss-host
branch
from
November 19, 2026 18:30
4a58b19 to
3d6b853
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first slice of gpt-oss support: a host-only
gpt_osspackage and a reusable MXFP4 block reader. Nothing is registered with the server and no device code is added, so no served path changes.configreadsopenai/gpt-oss-20b's config (revision 6cee5e81ee, Apache-2.0) and refuses unknown or unsupported fields by name: the explicitlayer_typeslist, YaRN scaling, the 4,096-wide query against the 2,880-wide residual, attention biases and sinks.nameschecks all 459 tensor headers of the published checkpoint for complete coverage and the mixed BF16 and U8 projection shapes. The fixtures keep every name, dtype, shape and offset;fixtures/SOURCE.jsonrecords their digests.core/mxfp4.zigreads standard 32-value E2M1 blocks with UE8M0 scales in FP64 without expanding or rewriting checkpoint bytes. Nibble order is an explicit argument, because shapes alone can't establish it.zig build test-gpt-oss-hostandtest-gpt-oss-fastpass (15 tests, in debug and fast builds); fmt is clean and lean findings stay level. It was written from the checkpoint's own config, headers and model card; no other engine's gpt-oss code was read.