# pgp-bill-3110/smolvla architecture

> Architecture diagram of the GitHub repository pgp-bill-3110/smolvla, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pgp-bill-3110/smolvla
- Repository: https://github.com/pgp-bill-3110/smolvla

## Overview

LeRobot is a robotics learning and control library; the README documents a LIBERO evaluation demo using a fine-tuned SmolVLA policy. The user-to-result path is the evaluation command, rollout setup, simulated environment and policy inference, ending in episode metrics and video. The tree also exposes reusable policy, dataset, processor, robot, and asynchronous-inference subsystems. Some paths are supported only by the tree or SOURCE INDEX, so their internal connections are omitted rather than inferred.

Main entry points: [`lerobot/src/lerobot/scripts/lerobot_eval.py`](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/scripts/lerobot_eval.py) (Evaluation command), [`lerobot/src/lerobot/rollout/context.py`](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/rollout/context.py) (Rollout context), [`lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py`](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py) (SmolVLA policy), [`lerobot/src/lerobot/async_inference/robot_client.py`](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/async_inference/robot_client.py) (Async robot client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_evaluation["Rollout evaluation"]
  node_eval_command["Evaluation command<br/>[lerobot_eval.py]"]
  node_rollout_context["Rollout context<br/>[context.py]"]
  node_inference["Inference engine"]
  node_libero["LIBERO environment<br/>[libero.py]"]
  node_episode_results["Metrics and video<br/>[lerobot_eval.py]"]
end

subgraph group_policy["Policies and processing"]
  node_smolvla["SmolVLA policy"]
  node_policy_base["Pretrained policies<br/>[pretrained.py]"]
  node_pi_gemma["Pi-Gemma model<br/>[pi_gemma.py]"]
  node_rtc["Real-time chunking<br/>[modeling_rtc.py]"]
  node_processor_pipeline["Processor pipeline<br/>[pipeline.py]"]
  node_processor_features["Feature mapping"]
end

subgraph group_data["Datasets and training"]
  node_dataset[("Dataset runtime<br/>[lerobot_dataset.py]")]
  node_dataset_metadata["Dataset metadata"]
end

subgraph group_robotics["Robot runtime"]
  node_robot["Robot drivers<br/>[robot.py]"]
  node_camera["Camera drivers<br/>[camera.py]"]
  node_async_client["Async robot client<br/>[robot_client.py]"]
  node_remote_policy["Policy server<br/>[policy_server.py]"]
end

node_user(("Operator"))

node_user -->|"runs"| node_eval_command
node_eval_command -.->|"sets up"| node_rollout_context
node_eval_command -->|"evaluates"| node_libero
node_rollout_context -->|"configures"| node_inference
node_rollout_context -->|"connects"| node_robot
node_rollout_context -->|"configures"| node_processor_pipeline
node_inference -.->|"runs policy"| node_smolvla
node_smolvla -->|"extends"| node_policy_base
node_smolvla -.->|"uses"| node_rtc
node_smolvla -.->|"uses"| node_pi_gemma
node_processor_features -->|"transforms features"| node_processor_pipeline
node_dataset -.->|"reads"| node_dataset_metadata
node_async_client -->|"controls"| node_robot
node_async_client -.->|"sends observations"| node_remote_policy
node_async_client -->|"configures"| node_camera
node_libero -->|"reports episode"| node_episode_results
node_eval_command -->|"writes results"| node_episode_results

click node_eval_command "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/scripts/lerobot_eval.py"
click node_rollout_context "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/rollout/context.py"
click node_inference "https://github.com/pgp-bill-3110/smolvla/tree/main/lerobot/src/lerobot/rollout/inference"
click node_libero "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/envs/libero.py"
click node_episode_results "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/scripts/lerobot_eval.py"
click node_smolvla "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py"
click node_policy_base "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/pretrained.py"
click node_pi_gemma "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/pi_gemma.py"
click node_rtc "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/rtc/modeling_rtc.py"
click node_processor_pipeline "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/processor/pipeline.py"
click node_processor_features "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/pipeline_features.py"
click node_dataset "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/lerobot_dataset.py"
click node_dataset_metadata "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/dataset_metadata.py"
click node_robot "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/robots/robot.py"
click node_camera "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/cameras/camera.py"
click node_async_client "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/async_inference/robot_client.py"
click node_remote_policy "https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/async_inference/policy_server.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_eval_command,node_rollout_context,node_inference,node_libero,node_episode_results toneBlue
class node_smolvla,node_policy_base,node_pi_gemma,node_rtc,node_processor_pipeline,node_processor_features toneAmber
class node_dataset,node_dataset_metadata toneMint
class node_robot,node_camera,node_async_client,node_remote_policy toneRose
class node_user toneIndigo
```

## Components

### Rollout evaluation

- [Evaluation command](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/scripts/lerobot_eval.py): `lerobot/src/lerobot/scripts/lerobot_eval.py`
- [Rollout context](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/rollout/context.py): `lerobot/src/lerobot/rollout/context.py`
- [Inference engine](https://github.com/pgp-bill-3110/smolvla/tree/main/lerobot/src/lerobot/rollout/inference): `lerobot/src/lerobot/rollout/inference`
- [LIBERO environment](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/envs/libero.py): `lerobot/src/lerobot/envs/libero.py`
- [Metrics and video](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/scripts/lerobot_eval.py): `lerobot/src/lerobot/scripts/lerobot_eval.py`

### Policies and processing

- [SmolVLA policy](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py): `lerobot/src/lerobot/policies/smolvla/modeling_smolvla.py`
- [Pretrained policies](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/pretrained.py): `lerobot/src/lerobot/policies/pretrained.py`
- [Pi-Gemma model](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/pi_gemma.py): `lerobot/src/lerobot/policies/pi_gemma.py`
- [Real-time chunking](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/policies/rtc/modeling_rtc.py): `lerobot/src/lerobot/policies/rtc/modeling_rtc.py`
- [Processor pipeline](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/processor/pipeline.py): `lerobot/src/lerobot/processor/pipeline.py`
- [Feature mapping](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/pipeline_features.py): `lerobot/src/lerobot/datasets/pipeline_features.py`

### Datasets and training

- [Dataset runtime](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/lerobot_dataset.py): `lerobot/src/lerobot/datasets/lerobot_dataset.py`
- [Dataset metadata](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/datasets/dataset_metadata.py): `lerobot/src/lerobot/datasets/dataset_metadata.py`

### Robot runtime

- [Robot drivers](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/robots/robot.py): `lerobot/src/lerobot/robots/robot.py`
- [Camera drivers](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/cameras/camera.py): `lerobot/src/lerobot/cameras/camera.py`
- [Async robot client](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/async_inference/robot_client.py): `lerobot/src/lerobot/async_inference/robot_client.py`
- [Policy server](https://github.com/pgp-bill-3110/smolvla/blob/main/lerobot/src/lerobot/async_inference/policy_server.py): `lerobot/src/lerobot/async_inference/policy_server.py`

### Other components

- **Operator**

## Connections

- Operator → Evaluation command: runs
- Evaluation command → Rollout context: sets up
- Evaluation command → LIBERO environment: evaluates
- Rollout context → Inference engine: configures (evidence: `lerobot/src/lerobot/rollout/context.py`)
- Rollout context → Robot drivers: connects (evidence: `lerobot/src/lerobot/rollout/context.py`)
- Rollout context → Processor pipeline: configures (evidence: `lerobot/src/lerobot/rollout/context.py`)
- Inference engine → SmolVLA policy: runs policy
- SmolVLA policy → Pretrained policies: extends
- SmolVLA policy → Real-time chunking: uses
- SmolVLA policy → Pi-Gemma model: uses
- Feature mapping → Processor pipeline: transforms features (evidence: `lerobot/src/lerobot/datasets/pipeline_features.py`)
- Dataset runtime → Dataset metadata: reads
- Async robot client → Robot drivers: controls (evidence: `lerobot/src/lerobot/async_inference/robot_client.py`)
- Async robot client → Policy server: sends observations
- Async robot client → Camera drivers: configures (evidence: `lerobot/src/lerobot/async_inference/robot_client.py`)
- LIBERO environment → Metrics and video: reports episode
- Evaluation command → Metrics and video: writes results
