Skip to content

Commit e083ca6

Browse files
TroyGardenfacebook-github-bot
authored andcommitted
migrate TorchRec from PyTorch to meta-pytorch on GitHub (#3403)
Summary: Pull Request resolved: #3403 # context Build Linux Wheels failed due to meta-pytorch migration * TorchRec (https://github.com/meta-pytorch/torchrec) is now with meta-pytorch on GitHub. * The Build Linux Wheels ([codepointer](https://github.com/meta-pytorch/torchrec/blob/main/.github/workflows/build-wheels-linux.yml#L53)) uses test-infra's [build_wheels_linux.yml](https://github.com/pytorch/test-infra/blob/main/.github/workflows/build_wheels_linux.yml) workflow * the ([jobs](https://github.com/meta-pytorch/torchrec/actions/runs/18128527424)) are failing with cedential error when uploadin the wheel to download.pytorch.org/whl/nightly {F1982370512} Reviewed By: nipung90 Differential Revision: D83571097 fbshipit-source-id: a67372fb5ea04413dc330207141be3b3f3bda9ea
1 parent ef3e5ca commit e083ca6

File tree

11 files changed

+17
-17
lines changed

11 files changed

+17
-17
lines changed

.github/scripts/validate_binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ conda run -n "${CONDA_ENV}" python --version
3030

3131
# Install pytorch, torchrec and fbgemm as per
3232
# installation instructions on following page
33-
# https://github.com/pytorch/torchrec#installations
33+
# https://github.com/meta-pytorch/torchrec#installations
3434

3535

3636
# figure out CUDA VERSION

.github/workflows/build-wheels-linux.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Checkout torchrec repository
3636
uses: actions/checkout@v4
3737
with:
38-
repository: pytorch/torchrec
38+
repository: meta-pytorch/torchrec
3939
- name: Filter Generated Built Matrix
4040
id: filter
4141
env:
@@ -49,10 +49,10 @@ jobs:
4949
echo "matrix=${MATRIX_BLOB}" >> "${GITHUB_OUTPUT}"
5050
build:
5151
needs: filter-matrix
52-
name: pytorch/torchrec
52+
name: meta-pytorch/torchrec
5353
uses: pytorch/test-infra/.github/workflows/build_wheels_linux.yml@main
5454
with:
55-
repository: pytorch/torchrec
55+
repository: meta-pytorch/torchrec
5656
ref: ""
5757
test-infra-repository: pytorch/test-infra
5858
test-infra-ref: main

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ jobs:
121121
s3-bucket: doc-previews
122122
if-no-files-found: error
123123
path: docs
124-
s3-prefix: pytorch/torchrec/${{ github.event.pull_request.number }}
124+
s3-prefix: meta-pytorch/torchrec/${{ github.event.pull_request.number }}

.github/workflows/validate-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
package_type: "wheel"
3737
os: "linux"
3838
channel: ${{ inputs.channel }}
39-
repository: "pytorch/torchrec"
39+
repository: "meta-pytorch/torchrec"
4040
smoke_test: "source ./.github/scripts/validate_binaries.sh"
4141
with_cuda: enable
4242
with_rocm: false

README.MD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Check out the [Getting Started](https://pytorch.org/torchrec/setup-torchrec.html
5959

6060
2. Clone TorchRec.
6161
```
62-
git clone --recursive https://github.com/pytorch/torchrec
62+
git clone --recursive https://github.com/meta-pytorch/torchrec
6363
cd torchrec
6464
```
6565

@@ -108,7 +108,7 @@ Check out the [Getting Started](https://pytorch.org/torchrec/setup-torchrec.html
108108

109109
## Contributing
110110

111-
See [CONTRIBUTING.md](https://github.com/pytorch/torchrec/blob/main/CONTRIBUTING.md) for details about contributing to TorchRec!
111+
See [CONTRIBUTING.md](https://github.com/meta-pytorch/torchrec/blob/main/CONTRIBUTING.md) for details about contributing to TorchRec!
112112

113113
## Citation
114114

benchmarks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ We evaluate the performance of two EmbeddingBagCollection modules:
44

55
1. `EmbeddingBagCollection` (EBC) ([code](https://pytorch.org/torchrec/torchrec.modules.html#torchrec.modules.embedding_modules.EmbeddingBagCollection)): a simple module backed by [torch.nn.EmbeddingBag](https://pytorch.org/docs/stable/generated/torch.nn.EmbeddingBag.html).
66

7-
2. `FusedEmbeddingBagCollection` (Fused EBC) ([code](https://github.com/pytorch/torchrec/blob/main/torchrec/modules/fused_embedding_bag_collection.py#L299)): a module backed by [FBGEMM](https://github.com/pytorch/FBGEMM) kernels which enables more efficient, high-performance operations on embedding tables. It is equipped with a fused optimizer, and UVM caching/management that makes much larger memory available for GPUs.
7+
2. `FusedEmbeddingBagCollection` (Fused EBC) ([code](https://github.com/meta-pytorch/torchrec/blob/main/torchrec/modules/fused_embedding_bag_collection.py#L299)): a module backed by [FBGEMM](https://github.com/pytorch/FBGEMM) kernels which enables more efficient, high-performance operations on embedding tables. It is equipped with a fused optimizer, and UVM caching/management that makes much larger memory available for GPUs.
88

99

1010
## Module architecture and running setup
@@ -24,7 +24,7 @@ Other setup includes:
2424

2525
## How to run
2626

27-
After the installation of Torchrec (see "Binary" in the "Installation" section, [link](https://github.com/pytorch/torchrec)), run the following command under the benchmark directory (/torchrec/torchrec/benchmarks):
27+
After the installation of Torchrec (see "Binary" in the "Installation" section, [link](https://github.com/meta-pytorch/torchrec)), run the following command under the benchmark directory (/torchrec/torchrec/benchmarks):
2828

2929
```
3030
python ebc_benchmarks.py [--mode MODE] [--cpu_only]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def main(argv: List[str]) -> None:
9292
description="TorchRec: Pytorch library for recommendation systems",
9393
long_description=readme,
9494
long_description_content_type="text/markdown",
95-
url="https://github.com/pytorch/torchrec",
95+
url="https://github.com/meta-pytorch/torchrec",
9696
license="BSD-3",
9797
keywords=[
9898
"pytorch",

torchrec/distributed/train_pipeline/pipeline_stage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ def forward_hook(
449449
) -> None:
450450
# Note: tricky part - a bit delicate choreography between
451451
# StagedPipeline and this class
452-
# (see https://github.com/pytorch/torchrec/pull/2239 for details)
452+
# (see https://github.com/meta-pytorch/torchrec/pull/2239 for details)
453453
# wait_dist need to be called as post_forward hook
454454
# at the end of the batch N, so that the data is awaited
455455
# before start of the next batch.

torchrec/distributed/train_pipeline/runtime_forwards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __call__(self, *input, **kwargs) -> Awaitable:
7676
self._name in self._context.input_dist_tensors_requests
7777
), f"Invalid PipelinedForward usage, input_dist of {self._name} is not available, probably consumed by others"
7878
# we made a basic assumption that an embedding module (EBC, EC, etc.) should only be evoked only
79-
# once in the model's forward pass. For more details: https://github.com/pytorch/torchrec/pull/3294
79+
# once in the model's forward pass. For more details: https://github.com/meta-pytorch/torchrec/pull/3294
8080
request = self._context.input_dist_tensors_requests.pop(self._name)
8181
assert isinstance(request, Awaitable)
8282
with record_function("## wait_sparse_data_dist ##"):
@@ -125,7 +125,7 @@ def __call__(
125125
self._name in self._context.embedding_a2a_requests
126126
), f"Invalid PipelinedForward usage, input_dist of {self._name} is not available, probably consumed by others"
127127
# we made a basic assumption that an embedding module (EBC, EC, etc.) should only be evoked only
128-
# once in the model's forward pass. For more details: https://github.com/pytorch/torchrec/pull/3294
128+
# once in the model's forward pass. For more details: https://github.com/meta-pytorch/torchrec/pull/3294
129129

130130
ctx = self._context.module_contexts.pop(self._name)
131131
cur_stream = torch.get_device_module(self._device).current_stream()

torchrec/distributed/train_pipeline/train_pipelines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ def detach(self) -> torch.nn.Module:
521521
Detaches the model from sparse data dist (SDD) pipeline. A user might want to get
522522
the original model back after training. The original model.forward was previously
523523
modified by the train pipeline. for more please see:
524-
https://github.com/pytorch/torchrec/pull/2076
524+
https://github.com/meta-pytorch/torchrec/pull/2076
525525
526526
To use the pipeline after detaching the model, pipeline.attach(model)
527527
needs to be called.
@@ -547,7 +547,7 @@ def attach(
547547
"""
548548
should be used with detach function. these functions should only be used from user code,
549549
when user want to switch the train pipeline. for more please see:
550-
https://github.com/pytorch/torchrec/pull/2076
550+
https://github.com/meta-pytorch/torchrec/pull/2076
551551
"""
552552
if model:
553553
self._model = model

0 commit comments

Comments
 (0)