-
Notifications
You must be signed in to change notification settings - Fork 651
[Compiler Toolkit] Add option for full inductor. #2150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aditvenk
wants to merge
1
commit into
main
Choose a base branch
from
ps/rr/_compiler_toolkit__add_option_for_full_inductor_
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Compiler Toolkit] Add option for full inductor. #2150
aditvenk
wants to merge
1
commit into
main
from
ps/rr/_compiler_toolkit__add_option_for_full_inductor_
+303
−21
Conversation
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
SherlockNoMad
requested changes
Dec 15, 2025
Contributor
SherlockNoMad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm with comments.
yiming0416
reviewed
Dec 15, 2025
Being able to compile fw/bw graphs using compile_fx_inner will help with establishing perf rooflines. <!-- ps-id: 5d590700-6d1f-44fe-8f70-4d2ea39106f4 -->
bd66bbd to
82834ba
Compare
Author
|
aot_eager for llama3: full inductor: |
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.
Being able to compile fw/bw graphs using compile_fx_inner could help with establishing perf rooflines.
Full inductor compilation is achieved using
compile_fx_inner, however, it requires the graph to have been decomposed using Inductor's default decomposition table. We apply this decomposition as a pass on the joint graph. We need to be careful to suitably unwrap the primals/tangents before running this decomposition.Manual testing:
NGPU=4
CONFIG_FILE=./torchtitan/models/llama3/train_configs/debug_model.toml
TRAIN_FILE=torchtitan.experiments.compiler_toolkit.train
./run_train.sh
--model.name $MODEL_NAME
--parallelism.data_parallel_shard_degree=2
--parallelism.tensor_parallel_degree=2
--job.custom_config_module=torchtitan.experiments.compiler_toolkit.job_config
--compile.joint_passes inductor_decomposition
--compile.passes full_inductor_compilation