Download run.sh from DevGwardo/minicpm5-toolcall-code: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/datasets/DevGwardo/minicpm5-toolcall-code/resolve/main/run.sh
- Command line
-
hf download hf://datasets/DevGwardo/minicpm5-toolcall-code/run.sh
-
curl -L -o run.sh https://huggingface.co/datasets/DevGwardo/minicpm5-toolcall-code/resolve/main/run.sh
494 Bytes
| 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 "$@" | |