Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
T

the-algorithm-ml

> 编程语言
Open source

Source code for Twitter's Recommendation Algorithm

10.6K stars0 likes1 views
WebsiteGitHub

About

Source code for Twitter's Recommendation Algorithm

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.

Issues· 52 open

View all issuesOpen on GitHub
  • #415

    Is this repo active?

    Updated Jan 16, 2026
  • #52

    Fix run_training.py#L87 hack once pytorch issues #79388 fix

    Updated Dec 3, 2024
  • #152

    following limit troubleshoot

    Updated Sep 23, 2024
  • #151

    increase follows

    Updated Sep 17, 2024
  • #144

    Shadowban a tweet/post with multiple trending hashtags

    Updated Sep 14, 2024
  • #148

    twittonomy

    Updated Sep 7, 2024
  • #147

    followers and likes

    Updated Aug 29, 2024
  • #146

    twhin: translation embeddings not being added for negative examples

    Updated Jul 16, 2024
  • #139

    Can't restore model from checkpoint

    Updated May 17, 2023
  • #135

    Heavy ranker: does retweet prediction include quote tweets?

    Updated May 1, 2023

> Tags

Python

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言