Download setup.sh from AXERA-TECH/H-GTCRN.AXERA: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/AXERA-TECH/H-GTCRN.AXERA/resolve/main/setup.sh
- Command line
-
hf download hf://AXERA-TECH/H-GTCRN.AXERA/setup.sh
-
curl -L -o setup.sh https://huggingface.co/AXERA-TECH/H-GTCRN.AXERA/resolve/main/setup.sh
395 Bytes
| set -euo pipefail | |
| PYTHON_BIN="${PYTHON_BIN:-python3}" | |
| if [[ -x /root/miniforge3/bin/python ]]; then | |
| PYTHON_BIN=/root/miniforge3/bin/python | |
| fi | |
| "$PYTHON_BIN" -c 'import numpy; import axengine' 2>/dev/null || \ | |
| "$PYTHON_BIN" -m pip install -r "$(dirname "$0")/python/requirements.txt" | |
| "$PYTHON_BIN" -c 'import numpy; import axengine' | |
| echo "AX650 Python runtime is ready." | |