-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from FX tracer to _export_to_torch_ir (#873)
## Changes - Use `torch._export._export_to_torch_ir` as new tracer (to replace FX symbolic tracing) - Remove pippy.fx and use torch.fx - Remove `PipelineDriver` (rpc backend) Old APIs such as `PipelineDriver` are no longer supported. And signature of the `from_tracing` API is changed to be in line with that of export. ## Major API usage ``` pipe = Pipe.from_tracing( mod, args.chunks, example_args=(x, y), ) stage = PipelineStage( pipe, args.rank, device=args.device, ) # Run if args.rank == 0: stage(x) elif args.rank == args.world_size - 1: out = stage(y) else: stage() ```
- Loading branch information
Showing
127 changed files
with
628 additions
and
39,116 deletions.
There are no files selected for viewing
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.