#!/usr/bin/env bash # Default cache layout — keep in sync with scripts/train.py and # openpi.shared.local_cache_bootstrap. Source from other shell wrappers, e.g.: # source "$(dirname "$0")/openpi_cache_env.sh" : "${OPENPI_CACHE_BASE:=/scratch1/home/zhicao/openpi}" : "${OPENPI_DATA_HOME:=${OPENPI_CACHE_BASE}}" : "${HF_HOME:=${OPENPI_CACHE_BASE}/hf_cache}" : "${HUGGINGFACE_HUB_CACHE:=${OPENPI_CACHE_BASE}/hf_cache}" : "${HF_LEROBOT_HOME:=${OPENPI_CACHE_BASE}/lerobot_cache}" : "${TFDS_DATA_DIR:=${OPENPI_CACHE_BASE}/tfds_data}" # Used by `datasets` when set (train.py bootstrap leaves this unset → HF_HOME is enough). : "${HF_DATASETS_CACHE:=${OPENPI_CACHE_BASE}/hf_datasets}" : "${TMPDIR:=${OPENPI_CACHE_BASE}/tmp}" export OPENPI_CACHE_BASE OPENPI_DATA_HOME HF_HOME HUGGINGFACE_HUB_CACHE HF_LEROBOT_HOME TFDS_DATA_DIR HF_DATASETS_CACHE TMPDIR