Skip to content

Commit

Permalink
[STASH] TEST run script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackmin801 committed Sep 26, 2024
1 parent 39ce068 commit d7532fa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions meow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

export GLOBAL_ADDR=localhost
export GLOBAL_PORT=1234
export GLOBAL_WORLD_SIZE=2

mkdir -p logs
GLOBAL_RANK=0 TORCH_UNIQUE_ID=A CUDA_VISIBLE_DEVICES=0,1 uv run torchrun --nproc_per_node=2 --node-rank 0 --rdzv-endpoint localhost:9999 --nnodes=1 $@ > logs/log0 2>&1 &
GLOBAL_RANK=1 TORCH_UNIQUE_ID=B CUDA_VISIBLE_DEVICES=2,3 uv run torchrun --nproc_per_node=2 --node-rank 0 --rdzv-endpoint localhost:10000 --nnodes=1 $@ > logs/log1 2>&1 &
wait

0 comments on commit d7532fa

Please sign in to comment.