Download box/scripts/gap_run_api.sh from TerryPei/gap-graph-as-policy: direct link, hf CLI and curl.
- Browser
- Download file 832 Bytes
-
https://huggingface.co/TerryPei/gap-graph-as-policy/resolve/main/box/scripts/gap_run_api.sh
- Command line
-
hf download hf://TerryPei/gap-graph-as-policy/box/scripts/gap_run_api.sh
-
curl -L -o gap_run_api.sh https://huggingface.co/TerryPei/gap-graph-as-policy/resolve/main/box/scripts/gap_run_api.sh
832 Bytes
| cd /root/autodl-tmp/graph-as-policy | |
| export PATH=/root/miniconda3/bin:$PATH | |
| # --- pip step: NO proxy, Tsinghua mirror (fast) --- | |
| unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY | |
| export UV_DEFAULT_INDEX=https://pypi.tuna.tsinghua.edu.cn/simple | |
| uv pip install -e "gap[libero]" 2>&1 | tail -2 | |
| # --- run step: key + proxy so openrouter.ai is reachable from CN --- | |
| source /root/.gap_env | |
| source /etc/network_turbo 2>/dev/null | |
| export HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 | |
| export MUJOCO_GL=egl PYOPENGL_PLATFORM=egl CUDA_VISIBLE_DEVICES=0 | |
| echo "=== gap check (providers) ==="; uv run gap check 2>&1 | tail -12 | |
| echo "=== GaP baseline run (LIBERO, OpenRouter VLM) ===" | |
| timeout 5400 uv run gap run examples/libero_quickstart/graph --sim libero_object_all_variance/0 2>&1 | tail -45 | |
| echo "GAP_API_EXIT=${PIPESTATUS[0]}" | |