Spaces:
Sleeping
Sleeping
Download scripts/launch_train.sh from Rachit17-12/Open_Mind: direct link, hf CLI and curl.
- Browser
- Download file 922 Bytes
-
https://huggingface.co/spaces/Rachit17-12/Open_Mind/resolve/main/scripts/launch_train.sh
- Command line
-
hf download hf://spaces/Rachit17-12/Open_Mind/scripts/launch_train.sh
-
curl -L -o launch_train.sh https://huggingface.co/spaces/Rachit17-12/Open_Mind/resolve/main/scripts/launch_train.sh
922 Bytes
| # ============================================================ | |
| # OpenMind - Launch Training Script | |
| # ============================================================ | |
| # Usage: | |
| # Single GPU: bash scripts/launch_train.sh | |
| # Multi-GPU: bash scripts/launch_train.sh --nproc 4 | |
| # ============================================================ | |
| set -e | |
| NPROC=${1:-1} | |
| CONFIG=${2:-configs/base_config.yaml} | |
| echo "============================================" | |
| echo " OpenMind Training Launcher" | |
| echo "============================================" | |
| echo " GPUs: $NPROC" | |
| echo " Config: $CONFIG" | |
| echo "============================================" | |
| if [ "$NPROC" -gt 1 ]; then | |
| torchrun \ | |
| --nnodes=1 \ | |
| --nproc_per_node=$NPROC \ | |
| --rdzv_id=openmind \ | |
| --rdzv_backend=c10d \ | |
| src/training/train.py \ | |
| --config $CONFIG | |
| else | |
| python src/training/train.py --config $CONFIG | |
| fi | |