-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b91f0f
commit a508eb9
Showing
4 changed files
with
127 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -ex | ||
|
||
NUM_NODES=$1 | ||
shift | ||
|
||
if [[ $NUM_NODES -eq 1 ]]; then | ||
MULTI_NODE_ARGS="" | ||
COMMAND="scripts/beaker/ladder_peteish.sh localhost ${NUM_NODES} 0 $*" | ||
else | ||
MULTI_NODE_ARGS="--replicas ${NUM_NODES} --leader-selection --host-networking --propagate-failure --propagate-preemption --synchronized-start-timeout 30m" | ||
COMMAND="scripts/beaker/ladder_peteish_eval.sh \$BEAKER_LEADER_REPLICA_HOSTNAME ${NUM_NODES} \$BEAKER_REPLICA_RANK $*" | ||
fi | ||
|
||
gantry run \ | ||
--allow-dirty \ | ||
--workspace ai2/OLMo-tiny \ | ||
--task-name ladder \ | ||
--description "OLMo ladder with $*" \ | ||
--priority high \ | ||
--preemptible \ | ||
--beaker-image shanea/olmo-torch23-gantry \ | ||
--cluster ai2/jupiter-cirrascale-2 \ | ||
--gpus 8 \ | ||
$MULTI_NODE_ARGS \ | ||
--budget ai2/oe-training \ | ||
--no-nfs \ | ||
--weka oe-training-default:/weka/oe-training-default \ | ||
--env LOG_FILTER_TYPE=local_rank0_only \ | ||
--env OMP_NUM_THREADS=8 \ | ||
--env OLMO_TASK=model \ | ||
--env-secret WANDB_API_KEY=JIACHENGL_WANDB_API_KEY \ | ||
--env-secret AWS_ACCESS_KEY_ID=AKSHITAB_AWS_ACCESS_KEY_ID \ | ||
--env-secret AWS_SECRET_ACCESS_KEY=AKSHITAB_AWS_SECRET_ACCESS_KEY \ | ||
--shared-memory 10GiB \ | ||
--venv base \ | ||
--yes \ | ||
-- /bin/bash -c "${COMMAND}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env bash | ||
set -exuo pipefail | ||
IFS=$'\n\t' | ||
|
||
BEAKER_LEADER_REPLICA_HOSTNAME=$1 | ||
shift | ||
|
||
NUM_NODES=$1 | ||
shift | ||
|
||
BEAKER_REPLICA_RANK=$1 | ||
shift | ||
|
||
## Install flash attn | ||
pip install packaging ninja | ||
export FLASH_ATTENTION_SKIP_CUDA_BUILD=TRUE | ||
pip install flash-attn==2.5.9.post1 --no-build-isolation | ||
pip install '.[train]' | ||
|
||
# Force processes to synchronize at init_process_group | ||
export TORCH_DIST_INIT_BARRIER=1 | ||
|
||
# Tell OLMo all ranks share the same filesystem for checkpoints. | ||
export OLMO_SHARED_FS=1 | ||
|
||
export NCCL_DEBUG=INFO | ||
export NCCL_IB_HCA="^=mlx5_bond_0" | ||
export NCCL_SOCKET_IFNAME=ib | ||
# export NCCL_IB_GID_INDEX=0 | ||
|
||
# debug flags for IB NCCL error | ||
export TORCH_SHOW_CPP_STACKTRACES=1 | ||
export NCCL_INFO=DEBUG | ||
|
||
torchrun \ | ||
--nnodes ${NUM_NODES}:${NUM_NODES} \ | ||
--nproc-per-node 8 \ | ||
--rdzv_id=12347 \ | ||
--rdzv_backend=static \ | ||
--rdzv_endpoint=$BEAKER_LEADER_REPLICA_HOSTNAME:29400 \ | ||
--node_rank=$BEAKER_REPLICA_RANK \ | ||
--rdzv_conf="read_timeout=420" \ | ||
scripts/ladder_peteish.py eval "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 190M --data olmoe-mix-0924 --length 1xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-190M-1xC/step7272-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 370M --data olmoe-mix-0924 --length 1xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-370M-1xC/step14173-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 760M --data olmoe-mix-0924 --length 1xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-600M-1xC/step11405-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 600M --data olmoe-mix-0924 --length 1xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-760M-1xC/step14000-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 1B --data olmoe-mix-0924 --length 1xC --name peteish-final-eval --save_overwrite --device_batch_size 1 --batch_size_divisor 64 --device_eval_batch_size 4 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-1B-1xC/step16000-unsharded | ||
|
||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 190M --data olmoe-mix-0924 --length 2xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-190M-2xC/step14000-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 370M --data olmoe-mix-0924 --length 2xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-370M-2xC/step28336-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 600M --data olmoe-mix-0924 --length 2xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-600M-2xC/step22799-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 760M --data olmoe-mix-0924 --length 2xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-760M-2xC/step28934-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 1B --data olmoe-mix-0924 --length 2xC --name peteish-final-eval --save_overwrite --device_batch_size 1 --batch_size_divisor 64 --device_eval_batch_size 4 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-1B-2xC/step32547-unsharded | ||
|
||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 190M --data olmoe-mix-0924 --length 5xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-190M-5xC/step36318-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 370M --data olmoe-mix-0924 --length 5xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-370M-5xC/step70823-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 600M --data olmoe-mix-0924 --length 5xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-600M-5xC/step55000-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 760M --data olmoe-mix-0924 --length 5xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-760M-5xC/step72320-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 1B --data olmoe-mix-0924 --length 5xC --name peteish-final-eval --save_overwrite --device_batch_size 1 --batch_size_divisor 64 --device_eval_batch_size 4 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-1B-5xC/step81352-unsharded | ||
|
||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 190M --data olmoe-mix-0924 --length 10xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-190M-10xC/step72625-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 370M --data olmoe-mix-0924 --length 10xC --name peteish-final-eval --save_overwrite --device_batch_size 4 --batch_size_divisor 64 --device_eval_batch_size 16 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-370M-10xC/step141636-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 600M --data olmoe-mix-0924 --length 10xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-600M-10xC/step113000-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 760M --data olmoe-mix-0924 --length 10xC --name peteish-final-eval --save_overwrite --device_batch_size 2 --batch_size_divisor 64 --device_eval_batch_size 8 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-760M-10xC/step144630-unsharded | ||
./scripts/beaker/ladder_peteish_eval-launch.sh 2 --model 1B --data olmoe-mix-0924 --length 10xC --name peteish-final-eval --save_overwrite --device_batch_size 1 --batch_size_divisor 64 --device_eval_batch_size 4 --load_path /weka/oe-training-default/ai2-llm/checkpoints/OLMo-ladder/peteish-final-1B-10xC/step162000-unsharded |