{"id":31451123,"url":"https://github.com/meta-pytorch/torchrec","last_synced_at":"2026-02-15T22:01:23.344Z","repository":{"id":37023772,"uuid":"385408663","full_name":"meta-pytorch/torchrec","owner":"meta-pytorch","description":"Pytorch domain library for recommendation systems","archived":false,"fork":false,"pushed_at":"2026-02-11T11:48:10.000Z","size":27037,"stargazers_count":2469,"open_issues_count":204,"forks_count":603,"subscribers_count":36,"default_branch":"main","last_synced_at":"2026-02-11T14:12:10.178Z","etag":null,"topics":["cuda","deep-learning","gpu","pytorch","recommendation-system","recommender-system","sharding"],"latest_commit_sha":null,"homepage":"https://pytorch.org/torchrec/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meta-pytorch.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-12T23:15:48.000Z","updated_at":"2026-02-11T06:21:17.000Z","dependencies_parsed_at":"2023-12-18T20:38:17.815Z","dependency_job_id":"32fbe0ff-22e4-42b1-8c4b-44a34bdf9233","html_url":"https://github.com/meta-pytorch/torchrec","commit_stats":{"total_commits":2108,"total_committers":297,"mean_commits":7.097643097643098,"dds":0.9425996204933587,"last_synced_commit":"374b8431157fd6748b70b37d1a8d90af25657606"},"previous_names":["facebookresearch/torchrec","meta-pytorch/torchrec","pytorch/torchrec"],"tags_count":137,"template":false,"template_full_name":null,"purl":"pkg:github/meta-pytorch/torchrec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-pytorch%2Ftorchrec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-pytorch%2Ftorchrec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-pytorch%2Ftorchrec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-pytorch%2Ftorchrec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meta-pytorch","download_url":"https://codeload.github.com/meta-pytorch/torchrec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meta-pytorch%2Ftorchrec/sbom","scorecard":{"id":271027,"data":{"date":"2025-08-11","repo":{"name":"github.com/pytorch/torchrec","commit":"3b437e62e9b99190ead95df468182e00f9152185"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/cpp_unittest_ci_cpu.yml:41","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/docs.yml:15","Info: jobLevel 'contents' permission set to 'read': .github/workflows/unittest_ci.yml:67","Info: jobLevel 'contents' permission set to 'read': .github/workflows/unittest_ci_cpu.yml:53","Info: topLevel 'contents' permission set to 'read': .github/workflows/build-wheels-linux.yml:17","Warn: no topLevel permission defined: .github/workflows/build_dynamic_embedding_wheels.yml:1","Warn: no topLevel permission defined: .github/workflows/cpp_unittest_ci_cpu.yml:1","Warn: no topLevel permission defined: .github/workflows/docs.yml:1","Warn: no topLevel permission defined: .github/workflows/pre-commit.yaml:1","Warn: no topLevel permission defined: .github/workflows/pyre.yml:1","Warn: no topLevel permission defined: .github/workflows/release_build.yml:1","Warn: no topLevel permission defined: .github/workflows/unittest_ci.yml:1","Warn: no topLevel permission defined: .github/workflows/unittest_ci_cpu.yml:1","Warn: no topLevel permission defined: .github/workflows/validate-binaries.yml:1","Warn: no topLevel permission defined: .github/workflows/validate-nightly-binaries.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-wheels-linux.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build-wheels-linux.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-wheels-linux.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build-wheels-linux.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-wheels-linux.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build-wheels-linux.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-wheels-linux.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build-wheels-linux.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_dynamic_embedding_wheels.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build_dynamic_embedding_wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build_dynamic_embedding_wheels.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build_dynamic_embedding_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_dynamic_embedding_wheels.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build_dynamic_embedding_wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build_dynamic_embedding_wheels.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/build_dynamic_embedding_wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/cpp_unittest_ci_cpu.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/cpp_unittest_ci_cpu.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/docs.yml:109: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/docs.yml:117: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/docs.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/pre-commit.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pyre.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/pyre.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pyre.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/pyre.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_build.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/release_build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_build.yml:105: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/release_build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_build.yml:159: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/release_build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_build.yml:200: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/release_build.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/unittest_ci.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/unittest_ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/unittest_ci_cpu.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/unittest_ci_cpu.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/validate-binaries.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/pytorch/torchrec/validate-binaries.yml/main?enable=pin","Warn: containerImage not pinned by hash: torchrec/datasets/scripts/nvt/Dockerfile:1: pin your Docker image by updating nvcr.io/nvidia/merlin/merlin-pytorch-training:nightly to nvcr.io/nvidia/merlin/merlin-pytorch-training:nightly@sha256:ca0d24da00fbcaca6a786af09de06dc9f5115ae26ea9cb198bb7d3bb6762a1bf","Warn: containerImage not pinned by hash: torchrec/inference/inference_legacy/docker/Dockerfile:1","Warn: pipCommand not pinned by hash: torchrec/datasets/scripts/nvt/Dockerfile:3-4","Warn: pipCommand not pinned by hash: torchrec/inference/inference_legacy/docker/Dockerfile:23-34","Warn: pipCommand not pinned by hash: torchrec/inference/inference_legacy/docker/Dockerfile:23-34","Warn: pipCommand not pinned by hash: torchrec/inference/inference_legacy/docker/Dockerfile:40-49","Warn: pipCommand not pinned by hash: .github/scripts/install_libs.sh:25","Warn: pipCommand not pinned by hash: .github/scripts/install_libs.sh:27","Warn: pipCommand not pinned by hash: .github/scripts/install_libs.sh:31","Warn: pipCommand not pinned by hash: contrib/dynamic_embedding/tools/before_linux_build.sh:26","Warn: pipCommand not pinned by hash: contrib/dynamic_embedding/tools/before_linux_build.sh:27","Warn: downloadThenRun not pinned by hash: .github/workflows/docs.yml:37","Warn: downloadThenRun not pinned by hash: .github/workflows/release_build.yml:55","Warn: downloadThenRun not pinned by hash: .github/workflows/release_build.yml:167","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  11 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   9 pipCommand dependencies pinned","Info:   0 out of   3 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2017-74","Warn: Project is vulnerable to: PYSEC-2024-48 / GHSA-fj7x-q9j7-g6q6","Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2018-49 / GHSA-rprw-h62v-c2w7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Warn: 'allow deletion' enabled on branch 'release/v1.2.0'","Warn: 'allow deletion' enabled on branch 'release/v1.1.0'","Warn: 'allow deletion' enabled on branch 'release/v1.0.0'","Warn: 'allow deletion' enabled on branch 'release/v0.8.0'","Warn: 'allow deletion' enabled on branch 'release/v0.7.0'","Warn: 'allow deletion' enabled on branch 'release/v0.6.0'","Warn: 'allow deletion' enabled on branch 'release/v0.5.0'","Warn: 'allow deletion' enabled on branch 'release/v0.3.2'","Warn: 'allow deletion' enabled on branch 'release/0.1.1'","Warn: 'allow deletion' enabled on branch 'release/0.1.0'","Info: 'force pushes' disabled on branch 'main'","Warn: 'force pushes' enabled on branch 'release/v1.2.0'","Warn: 'force pushes' enabled on branch 'release/v1.1.0'","Warn: 'force pushes' enabled on branch 'release/v1.0.0'","Warn: 'force pushes' enabled on branch 'release/v0.8.0'","Warn: 'force pushes' enabled on branch 'release/v0.7.0'","Warn: 'force pushes' enabled on branch 'release/v0.6.0'","Warn: 'force pushes' enabled on branch 'release/v0.5.0'","Warn: 'force pushes' enabled on branch 'release/v0.3.2'","Warn: 'force pushes' enabled on branch 'release/0.1.1'","Warn: 'force pushes' enabled on branch 'release/0.1.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v1.2.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v1.1.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v1.0.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v0.8.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v0.7.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v0.6.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v0.5.0'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/v0.3.2'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/0.1.1'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'release/0.1.0'","Warn: branch 'main' does not require approvers","Warn: codeowners review is not required on branch 'main'","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: could not determine whether codeowners review is allowed","Warn: 'up-to-date branches' is disabled on branch 'main'","Warn: 'up-to-date branches' is disabled on branch 'release/v1.2.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v1.1.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v1.0.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v0.8.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v0.7.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v0.6.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v0.5.0'","Warn: 'up-to-date branches' is disabled on branch 'release/v0.3.2'","Warn: 'up-to-date branches' is disabled on branch 'release/0.1.1'","Warn: 'up-to-date branches' is disabled on branch 'release/0.1.0'","Info: status check found to merge onto on branch 'main'","Info: status check found to merge onto on branch 'release/v1.2.0'","Info: status check found to merge onto on branch 'release/v1.1.0'","Info: status check found to merge onto on branch 'release/v1.0.0'","Info: status check found to merge onto on branch 'release/v0.8.0'","Info: status check found to merge onto on branch 'release/v0.7.0'","Info: status check found to merge onto on branch 'release/v0.6.0'","Info: status check found to merge onto on branch 'release/v0.5.0'","Info: status check found to merge onto on branch 'release/v0.3.2'","Info: status check found to merge onto on branch 'release/0.1.1'","Info: status check found to merge onto on branch 'release/0.1.0'","Warn: PRs are not required to make changes on branch 'main'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v1.2.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v1.1.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v1.0.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v0.8.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v0.7.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v0.6.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v0.5.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/v0.3.2'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/0.1.1'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings","Warn: PRs are not required to make changes on branch 'release/0.1.0'; or we don't have data to detect it.If you think it might be the latter, make sure to run Scorecard with a PAT or use Repo Rules (that are always public) instead of Branch Protection settings"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-17T13:21:04.384Z","repository_id":37023772,"created_at":"2025-08-17T13:21:04.385Z","updated_at":"2025-08-17T13:21:04.385Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29490360,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cuda","deep-learning","gpu","pytorch","recommendation-system","recommender-system","sharding"],"created_at":"2025-10-01T05:01:27.487Z","updated_at":"2026-02-15T22:01:23.338Z","avatar_url":"https://github.com/meta-pytorch.png","language":"Python","funding_links":[],"categories":["Python","Industry Strength Recommender System"],"sub_categories":[],"readme":"# TorchRec\n\n**TorchRec** is a PyTorch domain library built to provide common sparsity and parallelism primitives needed for large-scale recommender systems (RecSys). TorchRec allows training and inference of models with large embedding tables sharded across many GPUs and **powers many production RecSys models at Meta**.\n\n## External Presence\nTorchRec has been used to accelerate advancements in recommendation systems, some examples:\n* [Latest version of Meta's DLRM (Deep Learning Recommendation Model)](https://github.com/facebookresearch/dlrm) is built using TorchRec\n* [Disaggregated Multi-Tower: Topology-aware Modeling Technique for Efficient Large-Scale Recommendation](https://arxiv.org/abs/2403.00877) paper\n* [The Algorithm ML](https://github.com/twitter/the-algorithm-ml) from Twitter\n* [Training Recommendation Models with Databricks](https://docs.databricks.com/en/machine-learning/train-recommender-models.html)\n* [Toward 100TB model with Embedding Offloading Paper](https://dl.acm.org/doi/10.1145/3640457.3688037)\n\n\n## Introduction\n\nTo begin learning about TorchRec, check out:\n* Our complete [TorchRec Tutorial](https://pytorch.org/tutorials/intermediate/torchrec_intro_tutorial.html)\n* The [TorchRec documentation](https://pytorch.org/torchrec/) for an overview of TorchRec and API references\n\n\n### TorchRec Features\n- Parallelism primitives that enable easy authoring of large, performant multi-device/multi-node models using hybrid data-parallelism/model-parallelism.\n- Sharders to shard embedding tables with different strategies including data-parallel, table-wise, row-wise, table-wise-row-wise, column-wise, and table-wise-column-wise sharding.\n- Planner that can automatically generate optimized sharding plans for models.\n- Pipelined training overlapping dataloading device transfer (copy to GPU), inter-device communications (input_dist), and computation (forward, backward) for increased performance.\n- Optimized kernels for RecSys powered by [FBGEMM](https://github.com/pytorch/FBGEMM/tree/main).\n- Quantization support for reduced precision training and inference, along with optimizing a TorchRec model for C++ inference.\n- Common modules for RecSys.\n- RecSys datasets (criteo click logs and movielens)\n- Examples of end-to-end training such the dlrm event prediction model trained on criteo click logs dataset.\n\n\n## Installation\n\nCheck out the [Getting Started](https://pytorch.org/torchrec/setup-torchrec.html) section in the documentation for recommended ways to set up Torchrec.\n\n### From Source\n\n**Generally, there isn't a need to build from source**. For most use cases, follow the section above to set up TorchRec. However, to build from source and to get the latest changes, do the following:\n\n1. Install pytorch. See [pytorch documentation](https://pytorch.org/get-started/locally/).\n   ```\n   CUDA 12.6\n\n   pip install torch --index-url https://download.pytorch.org/whl/nightly/cu126\n\n   CUDA 12.8\n\n   pip install torch --index-url https://download.pytorch.org/whl/nightly/cu128\n\n   CUDA 12.9\n\n   pip install torch --index-url https://download.pytorch.org/whl/nightly/cu129\n\n   CPU\n\n   pip install torch --index-url https://download.pytorch.org/whl/nightly/cpu\n   ```\n\n2. Clone TorchRec.\n   ```\n   git clone --recursive https://github.com/meta-pytorch/torchrec\n   cd torchrec\n   ```\n\n3. Install FBGEMM.\n   ```\n   CUDA 12.6\n\n   pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cu126\n\n   CUDA 12.8\n\n   pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cu128\n\n   CUDA 12.9\n\n   pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cu129\n\n   CPU\n\n   pip install fbgemm-gpu --index-url https://download.pytorch.org/whl/nightly/cpu\n   ```\n\n4. Install other requirements.\n   ```\n   pip install -r requirements.txt\n   ```\n\n4. Install TorchRec.\n   ```\n   python setup.py install develop\n   ```\n\n5. Test the installation.\n   ```\n   GPU mode\n\n   torchx run -s local_cwd dist.ddp -j 1x2 --gpu 2 --script test_installation.py\n\n   CPU Mode\n\n   torchx run -s local_cwd dist.ddp -j 1x2 --script test_installation.py -- --cpu_only\n   ```\n   See [TorchX](https://pytorch.org/torchx/) for more information on launching distributed and remote jobs.\n\n5. If you want to run a more complex example, please take a look at the torchrec [DLRM example](https://github.com/facebookresearch/dlrm/blob/main/torchrec_dlrm/dlrm_main.py).\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/meta-pytorch/torchrec/blob/main/CONTRIBUTING.md) for details about contributing to TorchRec!\n\n## Citation\n\nIf you're using TorchRec, please refer to BibTeX entry to cite this work:\n```\n@inproceedings{10.1145/3523227.3547387,\nauthor = {Ivchenko, Dmytro and Van Der Staay, Dennis and Taylor, Colin and Liu, Xing and Feng, Will and Kindi, Rahul and Sudarshan, Anirudh and Sefati, Shahin},\ntitle = {TorchRec: a PyTorch Domain Library for Recommendation Systems},\nyear = {2022},\nisbn = {9781450392785},\npublisher = {Association for Computing Machinery},\naddress = {New York, NY, USA},\nurl = {https://doi.org/10.1145/3523227.3547387},\ndoi = {10.1145/3523227.3547387},\nabstract = {Recommendation Systems (RecSys) comprise a large footprint of production-deployed AI today. The neural network-based recommender systems differ from deep learning models in other domains in using high-cardinality categorical sparse features that require large embedding tables to be trained. In this talk we introduce TorchRec, a PyTorch domain library for Recommendation Systems. This new library provides common sparsity and parallelism primitives, enabling researchers to build state-of-the-art personalization models and deploy them in production. In this talk we cover the building blocks of the TorchRec library including modeling primitives such as embedding bags and jagged tensors, optimized recommender system kernels powered by FBGEMM, a flexible sharder that supports a veriety of strategies for partitioning embedding tables, a planner that automatically generates optimized and performant sharding plans, support for GPU inference and common modeling modules for building recommender system models. TorchRec library is currently used to train large-scale recommender models at Meta. We will present how TorchRec helped Meta’s recommender system platform to transition from CPU asynchronous training to accelerator-based full-sync training.},\nbooktitle = {Proceedings of the 16th ACM Conference on Recommender Systems},\npages = {482–483},\nnumpages = {2},\nkeywords = {information retrieval, recommender systems},\nlocation = {Seattle, WA, USA},\nseries = {RecSys '22}\n}\n```\n\n## License\nTorchRec is BSD licensed, as found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-pytorch%2Ftorchrec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeta-pytorch%2Ftorchrec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeta-pytorch%2Ftorchrec/lists"}