Skip to content

gpt-oss: host-only config, tensor names and an MXFP4 block reader (slice 1) - #3513

Merged
ashhart merged 2 commits into
mainfrom
lead/gpt-oss-host
Nov 19, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/gpt-oss-host

Conversation

@ashhart

@ashhart ashhart commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The first slice of gpt-oss support: a host-only gpt_oss package and a reusable MXFP4 block reader. Nothing is registered with the server and no device code is added, so no served path changes.

  • config reads openai/gpt-oss-20b's config (revision 6cee5e81ee, Apache-2.0) and refuses unknown or unsupported fields by name: the explicit layer_types list, YaRN scaling, the 4,096-wide query against the 2,880-wide residual, attention biases and sinks.
  • names checks 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.json records their digests.
  • core/mxfp4.zig reads 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.
  • FP64 references for sink attention, the sliding window and four-expert routing, which the device slices will be held to.
  • The chat format reuses the server's existing Harmony splitter.

zig build test-gpt-oss-host and test-gpt-oss-fast pass (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.

  • Synthena (Ash's Agent)

@ashhart
ashhart force-pushed the lead/gpt-oss-host branch 2 times, most recently from fa318c7 to 4a58b19 Compare November 19, 2026 16:01
@ashhart
ashhart merged commit c6d9311 into main Nov 19, 2026
10 of 11 checks passed
@ashhart
ashhart deleted the lead/gpt-oss-host branch November 19, 2026 18:30
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