TorchRec is a PyTorch library for building and scaling recommendation systems, providing modular building blocks for distributed training, large embeddings, and advanced sharding strategies. Current version is 1.6.0, with a release cadence of roughly quarterly.
pip install torchrecNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal example using EmbeddingBagCollection and KeyedJaggedTensor on CPU.
git remote set-url origin https://github.com/meta-pytorch/torchrec.git
Migrate any custom type checking configuration to Pyrefly; refer to https://github.com/facebook/pyrefly
Ensure torch.__version__ >= '2.0.0' and CUDA >= 11.7. Check compatibility with the torchrec version you install.
Pin torchrec==1.5.0 or similar exact version in your requirements.txt.