-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
32 lines (26 loc) · 1.78 KB
/
Copy pathenv.sh
File metadata and controls
32 lines (26 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
# Shared configuration for all Act2Answer eval/run scripts. Every script sources this.
# REPO_ROOT is derived from this file's own location (scripts/ lives at the repo root).
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
export REPO_ROOT
# External repos are not vendored. By default they live next to this repo.
export A2A_EXTERNAL_DIR="${A2A_EXTERNAL_DIR:-$(dirname "$REPO_ROOT")}"
export PI0_DEPS_ROOT="${PI0_DEPS_ROOT:-$A2A_EXTERNAL_DIR/RL4VLA}"
export INTERNVLA_REPO="${INTERNVLA_REPO:-$A2A_EXTERNAL_DIR/InternVLA-M1}"
export XIAOMI_REPO="${XIAOMI_REPO:-$A2A_EXTERNAL_DIR/Xiaomi-Robotics-0}"
export MOLMOACT_REPO="${MOLMOACT_REPO:-$A2A_EXTERNAL_DIR/molmoact2}"
export SPATIALVLA_CKPT="${SPATIALVLA_CKPT:-IPEC-COMMUNITY/spatialvla-4b-224-pt}"
export MOLMOACT_CKPT="${MOLMOACT_CKPT:-$A2A_EXTERNAL_DIR/molmoact2_ckpt}"
# Where eval logs are written.
export A2A_LOG_DIR="${A2A_LOG_DIR:-$REPO_ROOT/logs}"; mkdir -p "$A2A_LOG_DIR"
export A2A_OUTPUT_DIR="${A2A_OUTPUT_DIR:-$REPO_ROOT/outputs}"; mkdir -p "$A2A_OUTPUT_DIR"
# This node's network workarounds (authenticating proxy + dead IPv6); harmless elsewhere.
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY ALL_PROXY all_proxy 2>/dev/null || true
export NO_PROXY=127.0.0.1,localhost no_proxy=127.0.0.1,localhost
export PYTHONNOUSERSITE=1 TOKENIZERS_PARALLELISM=false
# conda (so `conda activate <env-name>` works inside scripts)
# Where conda envs are created/activated (this node uses a non-default location).
export CONDA_ENVS_DIR="${CONDA_ENVS_DIR:-/home/jovyan/.mlspace/envs}"
source "${CONDA_ROOT:-/opt/conda}/etc/profile.d/conda.sh" 2>/dev/null || true
# Standard PYTHONPATH for in-process evals (SimplerEnv + ManiSkill; openvla adds $REPO_ROOT/openvla).
export A2A_PYTHONPATH="$REPO_ROOT/SimplerEnv:$REPO_ROOT/ManiSkill"