-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add option to support garbage collection after torch compilation #2559
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D67062158 |
…orch#2559) Summary: X-link: pytorch/pytorch#142821 This diff is an extension of ezyang's PR https://fburl.com/6uvvzb4f. In ezyang's PR above, it adds gc after torch compilation finished. The gc operation is guarded by jk: pytorch/compiler:enable_run_gc_after_compile The gc op time cost will be logged into dynamo_compile scuba table. This diff extends the PR to: - Use garbage collection on Generation 1 instead of generation 2 (default), which greatly reduced the gc latency overhead from 160 sec per rank to 10 sec per rank. - Additionally introduce an environment variance which has the higher priority than the JK to control whether we do gc or not after the torch compilation. (default value set to gc enabled). This environment variance will be used for AB testing of training jobs to compare the pt2 compilation time and memory cost. Reviewed By: ezyang, yuxihu Differential Revision: D67062158
b5754ce
to
95f500a
Compare
This pull request was exported from Phabricator. Differential Revision: D67062158 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D67062158 |
95f500a
to
68829a6
Compare
This pull request was exported from Phabricator. Differential Revision: D67062158 |
d082407
to
29f6ce7
Compare
This pull request was exported from Phabricator. Differential Revision: D67062158 |
Summary: See test plan in internal diff [D66679369](https://our.internmc.facebook.com/intern/diff/D66679369) X-link: pytorch/pytorch#141919 Approved by: https://github.com/jamesjwu, https://github.com/ezyang Differential Revision: D67218561 Pulled By: masnesral
This pull request was exported from Phabricator. Differential Revision: D67062158 |
29f6ce7
to
0489041
Compare
Summary:
X-link: pytorch/pytorch#142821
This diff is an extension of ezyang's PR https://fburl.com/6uvvzb4f.
In ezyang's PR above, it adds gc after torch compilation finished.
The gc operation is guarded by jk: pytorch/compiler:enable_run_gc_after_compile
The gc op time cost will be logged into dynamo_compile scuba table.
This diff extends the PR to:
Reviewed By: ezyang
Differential Revision: D67062158