Conversation
e386cea to
c5cbb3e
Compare
CI Test ResultsCode style checks: All passed (Black, Ruff) ATOM Tests:
Note: The 2 failed tests are due to insufficient GPU memory on single-GPU runners:
These failures are CI infrastructure issues, not related to the Flux diffusion model changes. The same tests pass on main when run on multi-GPU runners with sufficient memory. |
- Add FluxTransformer model (flux.py) with DiT architecture - Add VAE encoder/decoder (flux_vae.py) - Add text encoder wrapper (flux_text_encoder.py) - Add flow matching sampler (diffusion_sampler.py) - Add diffusion model runner (diffusion_runner.py) - Add OpenAI Images API server (image_server.py) - Add example script (simple_image_gen.py) - Add unit tests (test_flux.py) - Register FluxTransformer2DModel in model_runner.py
c5cbb3e to
aa61512
Compare
CI Test Failures - Infrastructure IssueThe two failing tests are not related to the Flux code changes in this PR:
Both tests are running on single GPU machines (\�tom-mi355-1gpu), but these 70B/120B models require more GPU memory than available to allocate the KV cache. This is a CI infrastructure configuration issue - the large models need to run on multi-GPU runners instead. Request: Could the maintainers please either:
The branch has been rebased onto the latest \main. Thank you! |
Summary
Add support for Flux diffusion transformer model for image generation.
Changes
atom/models/flux.pyatom/models/flux_vae.pyatom/models/flux_text_encoder.pyatom/model_ops/diffusion_sampler.pyatom/model_engine/diffusion_runner.pyatom/entrypoints/image_server.pyatom/examples/simple_image_gen.pyatom/tests/test_flux.pyatom/model_engine/model_runner.pyUsage
Test Results