mirror of
https://github.com/twitter/the-algorithm-ml.git
synced 2025-06-15 18:58:28 +02:00
Twitter's Recommendation Algorithm - Heavy Ranker and TwHIN embeddings
This commit is contained in:
10
projects/home/recap/script/create_random_data.sh
Executable file
10
projects/home/recap/script/create_random_data.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Runs from inside venv
|
||||
|
||||
rm -rf $HOME/tmp/runs/recap_local_random_data
|
||||
python -m tml.machines.is_venv || exit 1
|
||||
export TML_BASE="$(git rev-parse --show-toplevel)"
|
||||
|
||||
mkdir -p $HOME/tmp/recap_local_random_data
|
||||
python projects/home/recap/data/generate_random_data.py --config_path $(pwd)/projects/home/recap/config/local_prod.yaml
|
15
projects/home/recap/script/run_local.sh
Executable file
15
projects/home/recap/script/run_local.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Runs from inside venv
|
||||
rm -rf $HOME/tmp/runs/recap_local_debug
|
||||
mkdir -p $HOME/tmp/runs/recap_local_debug
|
||||
python -m tml.machines.is_venv || exit 1
|
||||
export TML_BASE="$(git rev-parse --show-toplevel)"
|
||||
|
||||
torchrun \
|
||||
--standalone \
|
||||
--nnodes 1 \
|
||||
--nproc_per_node 1 \
|
||||
projects/home/recap/main.py \
|
||||
--config_path $(pwd)/projects/home/recap/config/local_prod.yaml \
|
||||
$@
|
Reference in New Issue
Block a user