#!/usr/bin/env bash set -euo pipefail PROJECT_ROOT="${PROJECT_ROOT:-/workspace/single_task_transfer}" STEPS="${STEPS:-70000}" BATCH_SIZE="${BATCH_SIZE:-128}" RUN_NAME="${RUN_NAME:-multi-source-coffee-pick-kitchen-b128-70k-seed1}" RUN_ROOT="${PROJECT_ROOT}/artifacts/encoders/multi_source_3task" RUN_DIR="${RUN_ROOT}/${RUN_NAME}" mkdir -p "${RUN_DIR}" cd "${PROJECT_ROOT}/third_party/importance-retrieval" export XLA_PYTHON_CLIENT_PREALLOCATE=false export JAX_COMPILATION_CACHE_DIR="${PROJECT_ROOT}/artifacts/jax_cache" export WANDB_MODE=offline unset WANDB_API_KEY if "${PROJECT_ROOT}/envs/train/bin/python" scripts/train.py \ --config "${PROJECT_ROOT}/configs/mimicgen_vae_sailor_multi_source.py:16,${STEPS},${BATCH_SIZE}" \ --path "${RUN_ROOT}" \ --name "${RUN_NAME}" \ --project "post-robot-multi-source-sailor"; then touch "${RUN_DIR}/.training_done" echo MULTI_SOURCE_ENCODER_TRAINING_DONE else touch "${RUN_DIR}/.training_failed" echo MULTI_SOURCE_ENCODER_TRAINING_FAILED >&2 exit 1 fi