Skip to content

Inference

Deploy your trained models and run inference locally. After a fine-tuning job finishes, download its model onto your robot’s device: the run’s Result panel has a Download button with the command to copy, or use the CLI directly:

Terminal window
qualia model list # find the model's ID
qualia model download <MODEL_ID> --dir ./my-policy # fetch, check and resume

The directory is in Hugging Face layout; pass it to --policy.path in the script below. No Hugging Face account or token is needed to download it.

To record evaluation episodes to the Hugging Face Hub, log in there first (Record a dataset). Then run inference in your setup:

Terminal window
lerobot-record \
--robot.type=so101_follower \
--robot.port=/dev/ttyACM0 \ # <- Use your port
--robot.id=my_blue_follower_arm \ # <- Use your robot id
--robot.cameras="{ front: {type: opencv, index_or_path: 8, width: 640, height: 480, fps: 30}}" \ # <- Use your cameras
--dataset.single_task="Grasp a lego block and put it in the bin." \ # <- Use the same task description you used in your dataset recording
--dataset.repo_id=${HF_USER}/eval_DATASET_NAME_test \ # <- This will be the dataset name on the Hugging Face Hub
--dataset.episode_time_s=50 \
--dataset.num_episodes=10 \
--policy.path=./my-policy # <- The directory qualia model download wrote

Qualia models are trained against LeRobot 0.4.4. Install it on your robot’s device before running inference.

Requirements: Python >= 3.10 (3.12 recommended), ffmpeg with libsvtav1

uv handles Python versions and virtual environments automatically.

Terminal window
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Create a project and pin lerobot
uv init my-robot && cd my-robot
uv add 'lerobot==0.4.4'
# Or run lerobot commands directly without a project
uvx --from 'lerobot==0.4.4' lerobot --help

Miniforge bundles ffmpeg automatically.

Terminal window
conda create -n lerobot python=3.12 -y
conda activate lerobot
pip install 'lerobot==0.4.4'
Terminal window
python3.12 -m venv .venv
source .venv/bin/activate
pip install 'lerobot==0.4.4'

LeRobot depends on PyTorch. By default pip installs the CPU build. For CUDA, install the GPU wheel first:

Terminal window
# Example: CUDA 12.8 (check https://pytorch.org/get-started for your version)
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
pip install 'lerobot==0.4.4'

With uv, use --index-url or configure a [[tool.uv.index]] in pyproject.toml (see uv docs on PyTorch).

Install model-specific extras depending on what you fine-tuned:

Terminal window
pip install 'lerobot[pi]==0.4.4' # Pi0.5
pip install 'lerobot[smolvla]==0.4.4' # SmolVLA (models trained before its retirement)
Terminal window
python -c "import lerobot; print(lerobot.__version__)"
# Expected: 0.4.4

You only need a Hugging Face login to push evaluation datasets to the Hub; your fine-tuned model comes from qualia model download:

Terminal window
huggingface-cli login

Linux build errors — if pip fails compiling native extensions, install these first:

Terminal window
sudo apt-get install cmake build-essential python3-dev pkg-config \
libavformat-dev libavcodec-dev libavdevice-dev libavutil-dev \
libswscale-dev libswresample-dev libavfilter-dev

For other platforms see the PyAV compilation guide.

WSL (Windows) — also install evdev:

Terminal window
conda install evdev -c conda-forge
# or: pip install evdev