alibaba/TorchEasyRec

An easy-to-use framework for large scale recommendation algorithms.

What it solves

TorchEasyRec is a PyTorch-based framework designed to simplify the development and deployment of production-ready deep learning recommendation systems. It addresses the complexity of implementing state-of-the-art recommendation models, managing large-scale embeddings, and ensuring consistent feature generation between training and serving.

How it works

The framework provides a suite of pre-implemented models for different recommendation stages—including candidate generation (matching), scoring (ranking), multi-task learning, and generative recommendation. It utilizes TorchRec for hybrid data and model parallelism to handle large embeddings through various sharding strategies (row-wise, column-wise, table-wise). It also supports a wide range of data sources including MaxCompute, Parquet, CSV, and Kafka streaming, and integrates with Alibaba Cloud's PAI ecosystem for distributed training and EAS deployment.

Who it’s for

This tool is for machine learning engineers and data scientists specializing in recommendation systems who need to build, scale, and train high-performance models for production environments.

Highlights

  • Extensive Model Library: Includes 20+ battle-tested algorithms such as DSSM, DeepFM, DIN, MMoE, and DLRM-HSTU.
  • C-Scale Scalability: Supports distributed training with mixed precision (FP16/BF16) and zero-collision hashing for dynamic embeddings.
  • Production-Ready Integration: Native integration with Alibaba Cloud PAI-DLC, PAI-DSW, and EAS for seamless deployment and acceleration via TensorRT/AOTInductor.
  • Flexible Feature Engineering: Supports over 10 feature types (e.g., IdFeature, SequenceFeature) and allows for easy implementation of custom features and models.

Related

  • Project
  • Project
  • Project
  • Project
  • Project