Download source/project/rl_posttrain/scripts/run_api.sh from lupele/StatePlay-Reward-2280: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/datasets/lupele/StatePlay-Reward-2280/resolve/main/source/project/rl_posttrain/scripts/run_api.sh
- Command line
-
hf download hf://datasets/lupele/StatePlay-Reward-2280/source/project/rl_posttrain/scripts/run_api.sh
-
curl -L -o run_api.sh https://huggingface.co/datasets/lupele/StatePlay-Reward-2280/resolve/main/source/project/rl_posttrain/scripts/run_api.sh
623 Bytes
| set -euo pipefail | |
| RL_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)" | |
| cd "${RL_ROOT}" | |
| export CUDA_VISIBLE_DEVICES="${CUDA_VISIBLE_DEVICES:-0,1,2,3,4,5,6}" | |
| export TOKENIZERS_PARALLELISM=false | |
| export PYTHONUNBUFFERED=1 | |
| export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | |
| RL_PYTHON="${STATEPLAY_WORLD_PYTHON:-${RL_ROOT}/outputs/rl_posttrain/_envs/world/bin/python}" | |
| IFS=',' read -r -a RL_GPUS <<< "${CUDA_VISIBLE_DEVICES}" | |
| exec "${RL_PYTHON}" -m torch.distributed.run --standalone --nproc_per_node "${#RL_GPUS[@]}" -m rl_posttrain.train_api --config rl_posttrain/configs/api_b_only.yaml "$@" | |