discover · compare · collections · requirements · contribute · feed · watching · stats · help with your tokens
twitter/the-algorithm-ml · source
Snapshot 0 · 2026-11-04T12:47:27Z · Python · AGPL-3.0
Content fingerprint
f939e205358b3f2b3b5ae7c7d3ce5c38eb43063165980efc7134b5a3075f3460GitHub description at capture
Source code for Twitter's Recommendation Algorithm
README at capture
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.