CharlesZhang-USTC's picture
Add files using upload-large-folder tool
ea1b5d0 verified
Raw History Blame Contribute Delete
482 Bytes
#!/usr/bin/env bash
set -euo pipefail
SNF_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
SNF_STORAGE="${SNF_STORAGE:-$SNF_ROOT/runtime}"
mkdir -p "$SNF_STORAGE/weights" "$SNF_STORAGE/data" "$SNF_STORAGE/outputs"
if [ "$#" -eq 0 ]; then set -- doctor; fi
docker run --rm --gpus all --ipc=host --init \
-e HF_TOKEN -e HF_ENDPOINT \
-v "$SNF_STORAGE/weights:/weights" \
-v "$SNF_STORAGE/data:/data" \
-v "$SNF_STORAGE/outputs:/outputs" \
"${SNF_IMAGE:-snf-five-models:cu128}" "$@"