[graph_trainer] AutoParallel AOT FX Trace Backend Integration#2725
Open
sanketpurandare wants to merge 1 commit intosanketpurandare/stack/3from
Open
[graph_trainer] AutoParallel AOT FX Trace Backend Integration#2725sanketpurandare wants to merge 1 commit intosanketpurandare/stack/3from
sanketpurandare wants to merge 1 commit intosanketpurandare/stack/3from
Conversation
2d2fb54 to
bd097f8
Compare
9f9cc4c to
b0f0cc3
Compare
This was referenced Mar 27, 2026
b0f0cc3 to
cd1af1a
Compare
tianyu-l
approved these changes
Mar 27, 2026
cd1af1a to
0d30cb5
Compare
0d30cb5 to
e00f2a7
Compare
This was referenced Apr 24, 2026
yiming0416
reviewed
Apr 24, 2026
SherlockNoMad
approved these changes
Apr 24, 2026
e00f2a7 to
89d4fa1
Compare
89d4fa1 to
2c037b6
Compare
tianyu-l
requested changes
Apr 30, 2026
2c037b6 to
5adc1ea
Compare
The goal is to make AutoParallel a first-class `aot_fx_trace` integration with
two backend modes:
1. **Native GraphTrainer backend mode**
- `--compile.mode aot_fx_trace --compile.autoparallel`
- AutoParallel places the model.
- GraphTrainer traces forward, loss, and backward with `make_fx`.
- GraphTrainer uses its own aot-fx-trace graph passes and compile path.
2. **AutoParallel backend mode**
- `--compile.mode aot_fx_trace --compile.autoparallel`
- `--compile.inductor_compilation autoparallel_backend`
- AutoParallel places the model.
- GraphTrainer still traces forward, loss, and backward with `make_fx`.
- GraphTrainer switches from its native pass stack to AutoParallel's backend
policy helpers and full-Inductor compilation path.
The key design point: both modes share the same AutoParallel model placement and
the same GraphTrainer training-step tracing. They differ only in what pass and
backend policy is applied after GraphTrainer has the traced train-step graph.
stack-info: PR: #2725, branch: sanketpurandare/stack/4
5adc1ea to
28d5181
Compare
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.
Stacked PRs:
[graph_trainer] AutoParallel AOT FX Trace Backend Integration
The goal is to make AutoParallel a first-class
aot_fx_traceintegration withtwo backend modes:
Native GraphTrainer backend mode
--compile.mode aot_fx_trace --compile.autoparallelmake_fx.AutoParallel backend mode
--compile.mode aot_fx_trace --compile.autoparallel--compile.inductor_compilation autoparallel_backendmake_fx.policy helpers and full-Inductor compilation path.
The key design point: both modes share the same AutoParallel model placement and
the same GraphTrainer training-step tracing. They differ only in what pass and
backend policy is applied after GraphTrainer has the traced train-step graph.