-
Notifications
You must be signed in to change notification settings - Fork 8
Enabling real PP run on 8 GPUs #227
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
Conversation
examples/example_ds3_pp.py
Outdated
| 2: [2, 6], | ||
| 3: [3, 7], | ||
| } | ||
| if fake_evaluate: |
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.
is it important to maintain 2 paths one for 8 stage one for 4 stage? if not it'd be nice to clean it up and have only one codepath
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.
Second this, just get a 8 gpu devserver pls
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.
Unified the code path
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on meta-pytorch#227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on meta-pytorch#227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on meta-pytorch#227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on meta-pytorch#227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on meta-pytorch#227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Summary: the issue from torch nightly has been fixed for the new export API. relanding. Test Plan: Also tested on #227 ``` =================================================================================== test session starts =================================================================================== platform linux -- Python 3.12.11, pytest-7.3.2, pluggy-1.6.0 rootdir: /data/users/zhxchen17/autoparallel plugins: xdoctest-1.1.0, hypothesis-5.35.1, xdist-3.3.1, subtests-0.13.1, rerunfailures-14.0, flakefinder-1.1.0, cpp-2.3.0, anyio-4.10.0 collected 21 items tests/test_aot_eager.py ..x [ 14%] tests/test_api.py .... [ 33%] tests/test_dtensor.py .... [ 52%] tests/test_optimize_placement.py ........ [ 90%] tests/test_ordered_sharding.py .. [100%] ======================================================================== 20 passed, 1 xfailed in 86.30s (0:01:26) ========================================================================= ```
Real run:
torchrun --standalone --nproc-per-node 8 examples/example_ds3_pp.pyFake run:
torchrun --standalone --nproc-per-node 4 examples/example_ds3_pp.py --fake-evaluate