Download GR00T-WholeBodyControl/install_scripts/install_inference.sh from Timsty/groot_deployment: direct link, hf CLI and curl.
- Browser
- Download file 3.35 kB
-
https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/install_scripts/install_inference.sh
- Command line
-
hf download hf://Timsty/groot_deployment/GR00T-WholeBodyControl/install_scripts/install_inference.sh
-
curl -L -o install_inference.sh https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/install_scripts/install_inference.sh
3.35 kB
| # install_inference.sh | |
| # Sets up the .venv_inference venv for running VLA inference with | |
| # Isaac-GR00T PolicyClient against a remote or local policy server. | |
| # | |
| # Installs gear_sonic[inference] which pulls in the Isaac-GR00T library, | |
| # PyZMQ, msgpack, Pinocchio, and other inference dependencies. | |
| # | |
| # Usage: bash install_scripts/install_inference.sh (run from repo root) | |
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" | |
| # ββ 0. System dependencies ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| ARCH="$(uname -m)" | |
| echo "[OK] Architecture: $ARCH" | |
| # ββ 1. Ensure uv is installed and available ββββββββββββββββββββββββββββββββββ | |
| if ! command -v uv &>/dev/null; then | |
| echo "[INFO] uv not found β installing via official installer β¦" | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| if [ -f "$HOME/.local/bin/env" ]; then | |
| # shellcheck disable=SC1091 | |
| source "$HOME/.local/bin/env" | |
| elif [ -f "$HOME/.cargo/env" ]; then | |
| # shellcheck disable=SC1091 | |
| source "$HOME/.cargo/env" | |
| else | |
| export PATH="$HOME/.local/bin:$PATH" | |
| fi | |
| if ! command -v uv &>/dev/null; then | |
| echo "[ERROR] uv installation succeeded but binary not found on PATH." | |
| echo " Please add ~/.local/bin (or ~/.cargo/bin) to your PATH and re-run." | |
| exit 1 | |
| fi | |
| fi | |
| echo "[OK] uv $(uv --version)" | |
| # ββ 2. Install a uv-managed Python 3.10 (includes dev headers / Python.h) ββββ | |
| echo "[INFO] Installing uv-managed Python 3.10 (includes development headers) β¦" | |
| uv python install 3.10 | |
| MANAGED_PY="$(uv python find --no-project 3.10)" | |
| echo "[OK] Using Python: $MANAGED_PY" | |
| # ββ 3. Clean previous venv (if any) ββββββββββββββββββββββββββββββββββββββββββ | |
| cd "$REPO_ROOT" | |
| echo "[INFO] Removing old .venv_inference (if present) β¦" | |
| rm -rf .venv_inference | |
| # ββ 4. Create venv & install inference extra βββββββββββββββββββββββββββββββββ | |
| echo "[INFO] Creating .venv_inference with uv-managed Python 3.10 β¦" | |
| uv venv .venv_inference --python "$MANAGED_PY" --prompt gear_sonic_inference | |
| # shellcheck disable=SC1091 | |
| source .venv_inference/bin/activate | |
| echo "[INFO] Installing gear_sonic[inference] (this may take a few minutes) β¦" | |
| uv pip install -e "gear_sonic[inference]" | |
| echo "" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |
| echo " Setup complete! Activate the venv with:" | |
| echo "" | |
| echo " source .venv_inference/bin/activate" | |
| echo "" | |
| echo " You should see (gear_sonic_inference) in your prompt." | |
| echo "" | |
| echo " Then run VLA inference with:" | |
| echo " python gear_sonic/scripts/run_vla_inference.py --help" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |