Installation

FINEST uses Python 3.11 and separate Conda environments for simulation backends and policies. Start with the CPU environment; add the GPU backend or a policy when you need it. Run commands from the repository root; no pip install -e . step is needed.

CPU/SB3

conda env create -f envs/environment.yml
conda activate finest
python -m script.rl.train \
  --config config/regular_insert/sb3/default/train.yaml --resolve

This installs the CPU runtime and development tools from envs/requirements-cpu.txt and envs/requirements-dev.txt. The final command validates a profile without starting training.

Continue with storage setup, then the quickstart.

GPU/MJLab

Use a CUDA-capable NVIDIA host and keep this environment separate from CPU/SB3:

conda env create -f envs/rl/mjlab/environment.yml
conda activate finest-mjlab
python -m script.setup.patch_mujoco_warp_epa_horizon
python -m script.setup.patch_mujoco_warp_epa_horizon --check
python -m script.rl.train \
  --config config/regular_insert/mjlab/default/train.yaml --resolve

The pinned stack requires the included patch: it sets MJ_MAX_EPAHORIZON=64 in mujoco-warp==3.10.0.2 for the contact geometries used by FINEST. Apply it after installation and confirm that --check passes. A different Warp version needs its own geometry and contact validation.

The GPU and policy recipes explicitly select PyTorch and torchvision CUDA 12.6 wheels. Keep their +cu126 version suffixes and wheel index together. The validation host uses NVIDIA driver 535; an unqualified PyPI installation can instead choose a CUDA 13 build that cannot run on that host.

Policy environments

Create only the environment for the policy you want to use:

Policy

Recipe

Environment

ACT

policy/ACT/environment.yml

finest-act

DP

policy/DP/environment.yml

finest-dp

RDP

policy/RDP/environment.yml

finest-rdp

ViTacFormer

policy/ViTacFormer/environment.yml

finest-vitacformer

π0.5

policy/pi05/environment.yml

finest-pi05

For example:

conda env create -f policy/ACT/environment.yml
conda activate finest-act

Policy shell scripts use the environment names above. Set CONDA_ENV explicitly if you use another environment name. Conversion, training and serving stay in the policy environment; run the evaluator in the environment for its selected simulation backend.

π0.5 pins a LeRobot source revision that requires Gymnasium 0.29.1. Keep its service in finest-pi05 and connect over WebSocket to the evaluator in finest or finest-mjlab. Fine-tuning also requires compatible external base weights; follow the π0.5 README. Let its environment recipe install the required Gymnasium version.

Use CPU policy wheels

To avoid downloading CUDA packages for a CPU-only policy run, create a temporary CPU recipe before installation. For example:

policy_recipe=policy/RDP/environment.yml
cpu_recipe=$(mktemp "${TMPDIR:-/tmp}/finest-policy-cpu.XXXXXX.yml")
sed -e 's@whl/cu126@whl/cpu@g' -e 's/+cu126/+cpu/g' \
  "$policy_recipe" > "$cpu_recipe"
conda env create -f "$cpu_recipe"
conda activate finest-rdp
rm "$cpu_recipe"

Select cpu for the device in the policy’s configuration as well. See test results for completed policy and installation checks. Some environment recipes have not yet been tested with a fresh installation.

Headless rendering

On a host with working EGL, set:

export MUJOCO_GL=egl

The quickstart scene checks rendering and writes an image. If EGL is unavailable, configure a supported headless OpenGL backend before running rendering or video collection.

Keep Conda environments outside the checkout. Configure external data and output paths before collecting demonstrations, training, or downloading model assets.

Build the documentation

Build the documentation in a separate environment; simulation dependencies are not needed:

conda create -n finest-docs python=3.11 pip
conda activate finest-docs
python -m pip install -r docs/requirements.txt
python -m sphinx -nW --keep-going -b html \
  -d /absolute/cache/path/finest-docs \
  docs /absolute/output/path/finest-docs

Open the generated index.html, or serve that output directory locally:

python -m http.server 8000 --bind 127.0.0.1 \
  --directory /absolute/output/path/finest-docs

Visit http://127.0.0.1:8000 on the same machine. For a remote server, use SSH port forwarding to preview locally. This command does not publish the site.

The build includes English and Chinese pages, local search, light/dark themes, and code-copy buttons. The published site is available at awilekong.github.io/FINEST. Changes to docs/, VERSION, or the documentation deployment workflow on main trigger a strict build and automatic GitHub Pages deployment.