#!/usr/bin/env bash set -euo pipefail export PATH="/data/venv-training/bin:$PATH" export HF_HOME=/data/realstyle2/cache/huggingface export HF_ENDPOINT=https://huggingface.co # The /data volume cannot host Unix-domain sockets required by multiprocessing. # Only transient IPC uses /tmp; datasets, caches, code, logs and output stay /data. export TMPDIR=/tmp export PYTHONUNBUFFERED=1 export OMP_NUM_THREADS=4 export TOKENIZERS_PARALLELISM=false export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True cd /data/lora-scripts-next exec bash train_anima_by_toml.sh /data/realstyle2/configs/train.toml