Skip to content

feat(flux): mxfp4 local-spec extension + fp4 utils/enums#814

Merged
luiza-amd merged 3 commits into
mainfrom
feat/flux/mxfp4
Jul 10, 2026
Merged

feat(flux): mxfp4 local-spec extension + fp4 utils/enums#814
luiza-amd merged 3 commits into
mainfrom
feat/flux/mxfp4

Conversation

@jasainio

Copy link
Copy Markdown
Contributor

Part of an 18-PR series splitting the Flux diffusion-training feature (training Flux, a DiT text-to-image diffusion model, on Primus/Megatron) out of one large branch for reviewability. Targets feat/flux/turbo — review after it.

What this changes

The mxfp4 (4-bit) local-spec turbo extension plus the supporting fp4 utils and enums.

Dependencies

Builds on the CI-pins PR (feat/flux/ci-env) — this is the path that hard-needs the bumped Primus-Turbo (its head carries that pin; that PR merges first): on the old pin it fails with gemm_fp4_impl(...) "expected at most 10 args but received 11" (the concrete motivation for the CI-pins PR). Also builds on feat/flux/turbo.

Test plan

pytest tests/unit_tests/backends/megatron/diffusion -k "mxfp4 or fp4_utils". Validated locally on an AMD GPU container: 7 passed.

Files

5 (mxfp4 local-spec extension, fp4 utils, enums + tests).

@luiza-amd luiza-amd changed the base branch from feat/flux/turbo to main July 9, 2026 06:23
Comment thread primus/backends/megatron/core/extensions/primus_turbo_mxfp4_local.py Dismissed
@luiza-amd luiza-amd marked this pull request as ready for review July 9, 2026 19:08
@luiza-amd luiza-amd merged commit 9a6ff6a into main Jul 10, 2026
14 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.

3 participants