mirror of
https://github.com/leigest519/ScreenCoder.git
synced 2026-03-19 18:33:29 +00:00
Add post-training folder
This commit is contained in:
21
post-training/scripts/run_rl.sh
Normal file
21
post-training/scripts/run_rl.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Usage: bash scripts/run_rl.sh <VLM-R1/run_scripts/*.sh>
|
||||
# For direct torchrun or python entrypoints, pass them after a --.
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <VLM-R1/run_scripts/*.sh | -- <cmd...>>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
||||
REPO_ROOT=$(cd -- "$SCRIPT_DIR/.." && pwd)
|
||||
cd "$REPO_ROOT/VLM-R1"
|
||||
|
||||
if [ "$1" == "--" ]; then
|
||||
shift
|
||||
"$@"
|
||||
else
|
||||
bash "$1"
|
||||
fi
|
||||
Reference in New Issue
Block a user