Skip to content

Commit

Permalink
Integrate PT2 pipeline with FullModelCompilation Config (pytorch#2475)
Browse files Browse the repository at this point in the history
Summary:

In current FMC setting, we start compilation from the first iteration. However, when we do sparse arch compilation, torchrec needs a few iterations of dry runs before compilation. So we need to postpone the compilation to happen in the torchrec pipeline.

Despite the difference, we aim to provide an uniform interface for users. Users can set `FullModelCompilation Config` as usual and if users also use `training.pipeline_type=pt2`, this diff can handle the postpone mechanism automatically.

Differential Revision: D63500331
  • Loading branch information
Microve authored and facebook-github-bot committed Oct 8, 2024
1 parent 558afe2 commit 11604d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions torchrec/distributed/train_pipeline/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
EvalPipelineSparseDist, # noqa
PrefetchTrainPipelineSparseDist, # noqa
StagedTrainPipeline, # noqa
TorchCompileConfig, # noqa
TrainPipeline, # noqa
TrainPipelineBase, # noqa
TrainPipelinePT2, # noqa
Expand Down

0 comments on commit 11604d2

Please sign in to comment.