Skip to content
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

[TorchRec] Add support for FakeProcessGroup for EBC #2228

Closed
wants to merge 1 commit into from

Conversation

TroyGarden
Copy link
Contributor

Summary: # context

Differential Revision: D51095381

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jul 13, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 13, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 13, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@TroyGarden TroyGarden force-pushed the export-D51095381 branch 2 times, most recently from 52da704 to 9558fcf Compare July 13, 2024 23:39
TroyGarden added a commit that referenced this pull request Jul 13, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 14, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 14, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 14, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 14, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 16, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 16, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Jul 16, 2024
Summary:
Pull Request resolved: #2228

# context

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

facebook-github-bot pushed a commit that referenced this pull request Aug 9, 2024
Summary:

# context
* use FakeProcessGroup to mimic the multi-process tests
* can use `_test_compile_fake_pg_fn` as the single-process VB compile test
```
from torchrec.distributed.tests.test_pt2_multiprocess import _test_compile_fake_pg_fn
_test_compile_fake_pg_fn(
    rank=0,
    world_size=2,
)
```

reference: D59637444

NOTE: right now only tested for EBC, not sure about other sparse modules like PEA or VLE, which shouldn't be too hard to add similar changes.

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

TroyGarden added a commit that referenced this pull request Aug 9, 2024
Summary:
Pull Request resolved: #2228

# context
* use FakeProcessGroup to mimic the multi-process tests
* can use `_test_compile_fake_pg_fn` as the single-process VB compile test
```
from torchrec.distributed.tests.test_pt2_multiprocess import _test_compile_fake_pg_fn
_test_compile_fake_pg_fn(
    rank=0,
    world_size=2,
)
```

reference: D59637444

NOTE: right now only tested for EBC, not sure about other sparse modules like PEA or VLE, which shouldn't be too hard to add similar changes.

Differential Revision: D51095381
Summary:
Pull Request resolved: #2228

# context
* use FakeProcessGroup to mimic the multi-process tests
* can use `_test_compile_fake_pg_fn` as the single-process VB compile test
```
from torchrec.distributed.tests.test_pt2_multiprocess import _test_compile_fake_pg_fn
_test_compile_fake_pg_fn(
    rank=0,
    world_size=2,
)
```

reference: D59637444

NOTE: right now only tested for EBC, not sure about other sparse modules like PEA or VLE, which shouldn't be too hard to add similar changes.

Reviewed By: ezyang

Differential Revision: D51095381
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D51095381

@TroyGarden TroyGarden changed the title enable unit test gpu [TorchRec] Add support for FakeProcessGroup for EBC Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants