TorchEasyRec

A PyTorch-based recommendation system framework for production-ready deep learning models

License Unit Test Nightly Documentation Python GitHub Stars

What is TorchEasyRec?

TorchEasyRec implements state-of-the-art deep learning models for recommendation tasks: candidate generation (matching), scoring (ranking), multi-task learning, and generative recommendation. It enables efficient development of high-performance models through simple configuration and easy customization.

TorchEasyRec Framework

Key Features

Data Sources

Scalability

Production

Features & Models

Supported Models

Matching (Candidate Generation)

Model Description
DSSM Two-tower deep semantic matching model
MIND Multi-interest network with dynamic routing
TDM Tree-based deep model for large-scale retrieval
DAT Dual augmented two-tower model

Ranking (Scoring)

Model Description
DeepFM Factorization-machine based neural network
WideAndDeep Wide & Deep learning for recommendations
MultiTower Flexible multi-tower architecture
DIN Deep Interest Network with attention mechanism
DLRM Deep Learning Recommendation Model
DCN Deep & Cross Network
DCN-V2 Improved Deep & Cross Network
MaskNet Instance-guided mask for feature interaction
xDeepFM Compressed interaction network
WuKong Dense scaling with high-order interactions
RocketLaunching Knowledge distillation framework

Multi-Task Learning

Model Description
MMoE Multi-gate Mixture-of-Experts
PLE Progressive Layered Extraction
DBMTL Deep Bayesian Multi-task Learning
PEPNet Personalized Embedding and Parameter Network

Generative Recommendation

Model Description
DLRM-HSTU Hierarchical Sequential Transduction Units
ULTRA-HSTU HSTU with Semi-Local Attention, Attention Truncation, and Mixture of Transducers
HSTU-Match HSTU-based two-tower retrieval model

Documentation

Get started with TorchEasyRec in minutes:

Tutorial Description
Local Training Train models on your local machine or single server
PAI-DLC Training Distributed training on Alibaba Cloud PAI-DLC
PAI-DLC + MaxCompute Table Train with MaxCompute (ODPS) tables on PAI-DLC

For the complete documentation, please refer to https://torcheasyrec.readthedocs.io/

Community & Support

Contributing

Any contributions you make are greatly appreciated!

Citation

If you use TorchEasyRec in your research, please cite:

@software{torcheasyrec2024,
  title = {TorchEasyRec: An Easy-to-Use Framework for Recommendation},
  author = {Alibaba PAI Team},
  year = {2024},
  url = {https://github.com/alibaba/TorchEasyRec}
}

License

TorchEasyRec is released under Apache License 2.0. Please note that third-party libraries may not have the same license as TorchEasyRec.