File size: 494 Bytes
dacca4a 5d461c5 dacca4a | 1 2 3 4 5 6 7 8 9 10 11 | #!/usr/bin/env bash
set -euo pipefail
export HF_HUB_DISABLE_PROGRESS_BARS=1
export TOKENIZERS_PARALLELISM=false
export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
# The pytorch image ships a torchvision built against a different torch ABI.
# We never use vision, and a broken torchvision breaks the transformers import.
pip uninstall -y -q torchvision torchaudio >/dev/null 2>&1 || true
pip install -q --upgrade transformers peft accelerate "jinja2>=3.1.6"
python /code/train_eval.py "$@"
|