DevGwardo's picture
a10g + smaller micro-batch
5d461c5 verified
Raw History Blame Contribute Delete
494 Bytes
#!/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 "$@"