← Open Source

Source code for Twitter's Recommendation Algorithm.

Python
Momentum
+1stars in 24 hours+0.0%
10.6k
Stars
2.23k
Forks
+6
This week
0
Contributors
Created 2023-03-27 · Updated 2026-12-05 · #4151 today
README

This project open sources some of the ML models used at Twitter.

Currently these are:

  1. The "For You" Heavy Ranker (projects/home/recap).

  2. TwHIN embeddings (projects/twhin) https://arxiv.org/abs/2202.05387

This project can be run inside a python virtualenv. We have only tried this on Linux machines and because we use torchrec it works best with an Nvidia GPU. To setup run

./images/init_venv.sh (Linux only).

The READMEs of each project contain instructions about how to run each project.

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store