Quickstart

This guide runs a CPU scene, trains an RL expert, and points to the collection and imitation-learning workflow. Run all commands from the repository root after installing the CPU environment and setting your storage paths.

1. Check your configuration

conda activate finest
python -m script.rl.train \
  --config config/regular_insert/sb3/default/train.yaml --resolve

The command prints the resolved settings and ends with profile=regular_insert/sb3/default. It checks configuration without starting training.

Choose an experiment by task, backend, and profile:

config/regular_insert/sb3/default/
├── environment.yaml   # Task, geometry, observations and task mode
├── train.yaml         # Expert training
└── eval.yaml          # Expert and learned-policy evaluation

Use an existing profile for a different task or asset. Connector profiles explicitly select USB-A or Type-C; see the task and backend guide.

2. Run and render a small scene

On a machine with working EGL:

MUJOCO_GL=egl python -m script.smoke.smoke_finest_asset_env \
  --asset-id square_clearance_0p5mm_rect_fixture_rlscale1p5_v3 \
  --steps 5

This loads a V3 asset, resets the single-arm scene, advances five steps and saves a front-camera PNG. The command prints the output path under your output root. It needs no trained checkpoint.

3. Train an expert

Default profiles use large training budgets. Check the resolved settings before starting, and select the CPU device for this example:

python -m script.rl.train \
  --config config/regular_insert/sb3/default/train.yaml \
  training.device=cpu

The terminal reports a run directory containing configuration, a run manifest and checkpoints. To evaluate that CPU run, replace the placeholder with its actual directory:

python -m script.rl.eval \
  --config config/regular_insert/sb3/default/eval.yaml \
  eval.run_dir=/absolute/path/to/training/run

For parallel GPU simulation, activate finest-mjlab and use an mjlab profile after completing the GPU setup. CPU and GPU runs have separate environments and checkpoint formats.

4. Collect demonstrations and train a policy

Once the expert performs well enough to collect demonstrations, follow the imitation-learning guide to train ACT and evaluate its checkpoint.

Your next step

Guide

Train with another task or backend

Task profiles and RL architecture

Collect demonstrations and train ACT, DP, RDP, ViTacFormer or π0.5

Imitation learning

Compare trained policies

Evaluation

Add your own policy

Custom policy integration

Note

The short scene run checks installation and rendering. For completed training and runtime checks, see test results.

Flexiv Rizon 4S + Grav

Use the existing CPU or MJLab environment; no Isaac Sim installation is required. Set your model and output paths, then download and prepare the robot assets once. The downloader requires curl:

conda activate finest
python -m script.setup.prepare_flexiv_assets
python -m script.rl.train \
  --config config/gear_assembly/sb3/flexiv_rizon4s_grav/train.yaml \
  training.device=cpu

For GPU training:

conda activate finest-mjlab
python -m script.rl.train \
  --config config/gear_assembly/mjlab/flexiv_rizon4s_grav/train.yaml

regular_insert, charger_insert, gear_insert and gear_assembly each provide flexiv_rizon4s_grav profiles. Connector profiles are named usb_a_flexiv_rizon4s_grav and type_c_flexiv_rizon4s_grav. Every profile has environment.yaml, train.yaml and eval.yaml. Set environment.robot_id: flexiv_rizon4s_grav to select the robot; the default is Panda. Use a matching Flexiv evaluation profile and the run directory printed during training:

python -m script.rl.eval \
  --config config/gear_assembly/sb3/flexiv_rizon4s_grav/eval.yaml \
  eval.run_dir=/absolute/path/to/sb3/run
# In finest-mjlab:
python -m script.rl.eval \
  --config config/gear_assembly/mjlab/flexiv_rizon4s_grav/eval.yaml \
  run.dir=/absolute/path/to/mjlab/run

Assets are generated under $FINEST_MODEL_ROOT/robots/flexiv_rizon4s_grav/v4 (or the resolved shared model root). The source lock records upstream revisions and file hashes, which are checked at startup. If assets are missing or outdated, rerun preparation. Start a new training run after changing the model. Resume and warm-start require a matching robot, so Panda checkpoints cannot be used on Flexiv.

The arm comes from MuJoCo Menagerie, and Grav geometry/kinematics from Flexiv’s robot description. Isaac Lab’s gear training tutorial is a reference for the robot combination; this integration uses FINEST’s existing MuJoCo tasks and rewards. See the supported robot features.

Before training, use the smoke checks to test reset, grasp retention, small actions, and finite observations. Run each command in its corresponding environment and replace the output paths:

MUJOCO_GL=egl python -m script.smoke.smoke_flexiv_rl --backend sb3 \
  --output /absolute/output/path/flexiv-cpu.json
MUJOCO_GL=egl python -m script.smoke.smoke_flexiv_rl --backend mjlab \
  --output /absolute/output/path/flexiv-gpu.json

To check a particular shape, pass its asset ID with a matching task profile:

MUJOCO_GL=egl python -m script.smoke.smoke_flexiv_rl --backend sb3 \
  --profile regular_insert/sb3/flexiv_rizon4s_grav \
  --asset-id square_clearance_0p5mm_rect_fixture_rlscale1p5_v3 \
  --output /absolute/output/path/flexiv-square-cpu.json

For GPU checks, use mjlab for both the backend and profile directory. Reports include the resolved asset_id; the default regular-insertion profile uses the original round peg, so checking it alone does not cover the five V3 shapes.