icml_repro_scratch / recipe /scripts /train_l2a_only.sh
keepsloading's picture
Upload folder using huggingface_hub
5c2f3ce verified
Raw
History Blame Contribute Delete
542 Bytes
#!/usr/bin/env bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
RECIPE="$(cd "$SCRIPT_DIR/.." && pwd)"
GPU_L2A="${GPU_L2A:-0}"
cd "$RECIPE"
echo "L2A-style = per-token, head-shared gate; assigned visible GPU $GPU_L2A."
echo "Training L2A-style variant only."
python "$SCRIPT_DIR/validate_release.py"
python -m unittest -v tests.test_router_granularity
"$SCRIPT_DIR/train_one.sh" l2a_style "$GPU_L2A"
echo "L2A-style selected checkpoint: ${OUTPUT_ROOT:-$RECIPE/../outputs}/l2a_style/stage2/checkpoint-25"