#!/usr/bin/env bash set -euo pipefail cd /home/priya/qwen_unsloth export CUDA_VISIBLE_DEVICES=2,3 export TRAIN_BATCH_SIZE="${TRAIN_BATCH_SIZE:-4}" export TRAIN_GRAD_ACC="${TRAIN_GRAD_ACC:-4}" export HF_HOME=/22tdata/priya/qwen_unsloth/hf_cache export HF_DATASETS_CACHE=/22tdata/priya/qwen_unsloth/datasets_cache export XDG_CACHE_HOME=/22tdata/priya/qwen_unsloth/cache export TORCHINDUCTOR_CACHE_DIR=/22tdata/priya/qwen_unsloth/torchinductor_cache export TRITON_CACHE_DIR=/22tdata/priya/qwen_unsloth/triton_cache export TORCHINDUCTOR_COMPILE_THREADS=4 export OMP_NUM_THREADS=8 export TOKENIZERS_PARALLELISM=false export PYTHONUNBUFFERED=1 export TRAIN_OUTPUT_DIR=/22tdata/priya/qwen_unsloth/outputs/Qwen38-27B-3shotTrained-DDP # These two GPUs communicate through PCIe host bridges; use NCCL's shared-memory path. export NCCL_P2P_DISABLE=1 export NCCL_IB_DISABLE=1 exec .venv/bin/python -u -m torch.distributed.run --standalone --nproc_per_node=2 train_qwen38-3S.py