#!/usr/bin/env bash # discoloop on the 2/3/4-hop dataset: ONE task on TWO GPUs (DDP). # Global batch stays 2048 (micro 1024 x 2 GPUs), answer loss, num-stages 4. # # Usage: # ./train_twin_hyper_4hop.sh # GPUs 4-7 # ./train_twin_hyper_4hop.sh --gpu 0,1 # other GPUs # ./train_twin_hyper_4hop.sh --fixed-alpha 1 --fixed-beta 0 # ./train_twin_hyper_4hop.sh --curricular-training configs/curriculum_234hop.json # All args are forwarded to train_twin_hyper.sh (later flags win). set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" exec ./train_twin_hyper.sh \ --gpu 4,5,6,7 \ --micro-batch-size 512 \ --master-port 29502 \ --data data/twin_234hop_truood_diff.500.50.10 \ --max-length 6 \ --train-twohop-count -1 \ --loop-scheme discoloop \ --num-stages 4 \ --gate-mode fixed \ --fixed-alpha 0.5 \ --fixed-beta 0.5 \ --loss-compute-method answer \ "$@"