Download source/project/scripts/inference.sh from lupele/StatePlay-Reward-2280: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/datasets/lupele/StatePlay-Reward-2280/resolve/main/source/project/scripts/inference.sh
- Command line
-
hf download hf://datasets/lupele/StatePlay-Reward-2280/source/project/scripts/inference.sh
-
curl -L -o inference.sh https://huggingface.co/datasets/lupele/StatePlay-Reward-2280/resolve/main/source/project/scripts/inference.sh
388 Bytes
| set -euo pipefail | |
| ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" | |
| PYTHON_BIN="${PYTHON_BIN:-python}" | |
| BASE_MODEL="${STATEPLAY_BASE_MODEL:-${ROOT}/base_model}" | |
| CHECKPOINT="${STATEPLAY_CHECKPOINT:-${ROOT}/examples/checkpoint/StatePlay.safetensors}" | |
| cd "${ROOT}" | |
| exec "${PYTHON_BIN}" -m stateplay.cli --base-model "${BASE_MODEL}" --checkpoint "${CHECKPOINT}" "$@" | |