Repository navigation
[docs] Fix the Flux MXFP8 example to use converters - #5012
Merged
Merged
Conversation
YeonwooSung
requested review from
fegin,
tianyu-l,
wconstab and
wwwjn
as code owners
October 2, 2026 02:47
|
|
tianyu-l
approved these changes
Oct 2, 2026
Contributor
|
ci failure |
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 custom MXFP8 example in
torchtitan/models/flux/README.mdcannot be copied. It assignsconfig.model_converters = ModelConvertersContainer.Config(...), butModelConvertersContaineris not defined, so that line raisesNameError.Trainer.ConfigandFluxTrainer.Configalso have nomodel_convertersattribute, so the assignment would raiseAttributeErroreven if the name existed.flux_schnell_mxfp8andflux_dev_mxfp8do not use that API._enable_mxfp8intorchtitan_recipes/models/flux.pyrebuilds the model withbuild_model_config(flavor, converters=[MXFP8LinearConverter.Config(fqns=[...])]).build_model_configintorchtitan/models/flux/flavors.pytakesconverters, notquantizationormodel_converters. The example now does the same assignment, imports the names it uses, and keeps the recipe FQNs:double_blocks,single_blocks,img_in,txt_in,time_in,vector_in, andfinal_layer.Test plan
/tmp/ttenv/bin/python -m pytest tests/unit_tests/cpu/test_flux_mxfp8_readme.py -q