Files
modelscope--ms-swift/examples/ray/grpo/run_opd.sh
T
wehub-resource-sync a203934033
Lint test / lint (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:34:58 +08:00

8 lines
299 B
Bash

#!/bin/bash
# Ray Megatron OPD-RL (On-Policy Distillation as RL) — colocate mode + colocated teacher.
export CUDA_VISIBLE_DEVICES=${CUDA_VISIBLE_DEVICES:-0,1,2,3}
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
megatron rlhf --use_ray true --config "$SCRIPT_DIR/opd_rl_colocate.yaml"