
torchrec
Pytorch domain library for recommendation systems
The Lens
By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.
Updated May 2026
TorchRec is Meta's PyTorch library for training recommendation systems at scale. It is the engine behind the kind of "you might also like" model that runs on a feed of billions of items, packaged as a library you can use too. Free, BSD-3 licensed, used in production at Meta, Twitter, and Databricks.
Running this means GPU clusters, sharded embedding tables, and pipelined training. It gives you the parallelism primitives (model sharding, communication kernels, a planner that figures out the layout) but you bring the recommender model and the data pipeline. Single-GPU experiments work fine, the value shows up when your embedding table no longer fits in memory.
Solo: skip unless you are researching recsys at scale. Small teams: probably overkill, simpler libraries cover most product needs. Large teams shipping recommendations against tens of millions of items: this is what Meta built for itself, which is the strongest signal you will find.
The catch is that this is infrastructure, not a recommender. You still need to know what model you are training, how you are sharding it, and how to feed it. TorchRec makes the hard parts possible, not easy.
Free vs Self-Hosted vs Paid
fully freeFree tier: Full library under BSD-3. No paid version, no hosted variant.
Self-hosted: All you have. Runs on your own GPUs. Production deployments at Meta scale use multi-node clusters with NVIDIA hardware and a real ML infra team behind it.
Paid: None from the project itself. The cost lives in the hardware and the team running it.
Free and BSD-3 licensed. Cost is the GPU infrastructure and the people who know how to use it.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores
Trust Signals
License: BSD 3-Clause "New" or "Revised" License
Use freely. No endorsement clause.
Commercial use: ✓ Yes
About
- Owner
- Meta PyTorch (Organization)
- Stars
- 2,592
- Forks
- 677
Also by Meta PyTorch
Explore Further
More tools in the directory
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
102.2k ★sglang
SGLang is a high-performance serving framework for large language models and multimodal models.
31.2k ★Paddle
PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
24.0k ★