You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base 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/ci-env`
and auto-retargets to `main` once that merges. Every other content PR
stacks on this one.
## What this changes
The shared runtime scaffolding the rest of the feature builds on: core
runtime state + train-runtime wiring, the Megatron adapter and
base/pretrain trainers, and a patch auto-loader (`patches/__init__.py`)
that imports every `*_patches.py` in the package on import, so each
later layer only drops in its own patch file with no registry edit. Also
carries the shared test root (`tests/conftest.py`, `tests/utils.py`) and
a one-line `.gitignore` change (the bare `data` ignore → root-anchored
`/data/*`, and nothing else) that stops Git from ignoring the in-repo
`data/` source and config directories the later layers add. Kept
deliberately small so it can land first.
## Dependencies
Sequenced after the CI-pins PR (`feat/flux/ci-env`); no functional
dependency on the turbo bump.
## Test plan
`pytest tests/unit_tests/core tests/unit_tests/backends/megatron`;
lint/pre-commit clean. Validated locally on an AMD GPU container: 58
passed.
## Files
39 (core runtime, Megatron adapter/trainers, base patch loader, shared
test root, `.gitignore`).
---------
Co-authored-by: Flux Split <flux-split@local>
Co-authored-by: WangLingxun <linxwang@amd.com>
Co-authored-by: Xiaoming-AMD <Xiaoming.Peng@amd.com>
Co-authored-by: luiza-amd <Luiza.Sayfullina@amd.com>
Co-authored-by: Flux Split Trial <flux-split-trial@local>
0 commit comments