.github/workflows | ||
common | ||
core | ||
images | ||
machines | ||
metrics | ||
ml_logging | ||
optimizers | ||
projects | ||
reader | ||
tools | ||
.gitignore | ||
.pre-commit-config.yaml | ||
COPYING | ||
LICENSE.torchrec | ||
model.py | ||
pyproject.toml | ||
README.md |
Twitter Machine Learning models
This project open sources some of the ML models used at Twitter.
Models
Currently these are:
-
The "For You" Heavy Ranker (projects/home/recap).
-
TwHIN embeddings (projects/twhin) https://arxiv.org/abs/2202.05387
Installation
To install this project, follow these steps:
-
Clone the repository to your local machine.
-
Navigate to the project directory.
-
Run the following command to set up a Python virtual environment:
./images/init_venv.sh
(Linux only).
Note: This command is only supported on Linux machines.
- Follow the instructions provided in the READMEs of each project to run the desired model.
Note:
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.
Contributing
To contribute to this project, please follow these steps:
- Submit a bug report or feature request via the issue tracker.
- Fork the repository and make your changes on a new branch.
- Submit a pull request with your changes.
License
This project is licensed under the [insert license here]. Copyright (c) [insert copyright information].