Forge
Skip to main content

OpenPI and W&B for Physical AI: Experiment tracking guide

Learn how to use Weights & Biases with OpenPI for Physical AI development. Experiment comparison, simulation visualization, and model versioning.
Last updated: May 13, 2026
OpenPI is an open-source robotics framework published by Physical Intelligence that's been drawing a lot of attention in the physical AI space. In this report, we use OpenPI to illustrate how Weights & Biases can be used more effectively for physical AI development. OpenPI supports both JAX and PyTorch, and while it already includes basic Weights & Biases integration, including logging loss and learning rate, we also implemented additional features, such as simulation result visualization.

Using OpenPI, let us walk through useful ways to use Weights & Biases in physical AI, step by step. For the technical implementation details of the added integration, please refer to the README in the GitHub repository.
There is also a white paper explaining the value of Weights & Biases in physical AI, along with a general demo video using IsaacLab, so please take a look at those as well.
Jump the OpenPI tutorial




In AI development, a single training run produces a large amount of information. Looking only at train loss is not enough. To judge whether a model is actually good, you need to look at the evaluation episode list, checkpoints, success rate, and maximum reward together. Once these pieces are scattered across different scripts, different jobs, and different storage locations, comparison quickly becomes difficult. In physical AI in particular, simulation visualization matters just as much as metrics.
That is why we developed additional integrations for the OpenPI codebase from the following three perspectives:
  1. Strengthening the experiment comparison foundation
  2. Strengthening the evaluation pipeline with visualization
  3. Managing assets with W&B Artifacts and W&B Registry
In this report, together with the added integrations, we also walk through useful UI operations that make these workflows easier to use in practice.

What is OpenPI?

OpenPI is the open-source software stack from Physical Intelligence for running, adapting, and serving robot policy models. The repository describes itself as open-source models and packages for robotics, and it currently exposes three model types in one stack: pi0, pi0-fast, and pi0.5.
The problem it tackles is familiar to anyone working in robotics. Tooling is fragmented across robot drivers, camera pipelines, dataset formats, policy code, training loops, and deployment wrappers. On top of that, task-specific training is expensive, so researchers want reusable policies that can absorb image observations, robot state, and language goals, then output action chunks for real control. That is the gap OpenPI tries to close.
At a model level, OpenPI provides pretrained vision-language-action policies. In practice, that means models that can take one or more camera views, proprioceptive or state inputs, and a task prompt like “pick up the fork,” then predict continuous or tokenized robot actions. The repo couples those models with inference APIs, checkpoint handling, fine-tuning configs, and policy serving scripts.

The OpenPI model family


The table reflects the official repo, the open-sourcing blog, the FAST and knowledge-insulation pages, and current Hugging Face model listings as of April 6, 2026.

The tutorial: ALOHA sim transfer cube

In this tutorial, we use the Transfer Cube task, in which a two-arm ALOHA robot grasps a cube, transfers it from one arm to the other, and holds it stably. The training dataset is lerobot/aloha_sim_transfer_cube_human, and the configuration is pi0_aloha_sim.
This dataset contains 50 episodes in total. In this setup, 10 episodes are held out for final evaluation, while the remaining 40 episodes are used for training. In addition, periodic evaluation uses a fixed subset of 4 episodes from those 10 held-out episodes. Training runs up to 20,000 steps.
The main goal here is to demonstrate how training, evaluation, and asset management can be connected within W&B, so the dataset size is intentionally small. As a result, the outcomes shown here should be understood as workflow examples rather than as a strict benchmark or a statistically robust performance comparison.

1. Strengthening the experiment comparison foundation

Saving detailed experiment conditions in config

In Weights & Biases, you can save not only time-series data, such as loss, but also the conditions of each run in config. If you record information such as config_name, task_name, dataset_name, backend, git sha, and hostname, it becomes much easier later to filter specific conditions in the Workspace or compare runs by individual parameters. As shown later, these config values can also be used to color-code runs.
In the original OpenPI Weights & Biases integration, the information needed for comparison was not fully captured in config. To address this, we added src/openpi/utils/wandb/run_context.py and unified W&B run initialization. This makes it possible to store the metadata that is useful for comparison and organization directly in wandb.config. The same approach works whether you are using JAX or PyTorch.
For example, run information in W&B can be structured like this:
import wandb

wandb.init(
project="openpi-integration",
config={
"config_name": "pi0_aloha_sim",
"task_name": "Transfer cube",
"dataset_name": "lerobot/aloha_sim_transfer_cube_human",
"training_backend": "jax",
},
tags=["aloha", "transfer-cube"],
)
With the config structure above in place, let us look at several useful Workspace features in Weights & Biases for comparing many runs.

Useful feature 1: Parallel coordinates chart

The Parallel Coordinates Chart is a panel that lets you view relationships between multiple hyperparameters and result metrics at once. For example, if you place learning_rate, batch_size, training_backend, eval/success_rate, and eval_final/primary_score on the axes, you can visually trace which run configurations led to higher success rates.
When you are running many follow-up experiments, it is already useful to simply see where promising runs cluster. Even when the final loss alone is hard to interpret, looking at success rate and reward alongside it makes the relationship between settings and outcomes much easier to read.
When you run a large search manually, you need to launch jobs one by one, each with different commands and settings. With W&B Sweeps, you can define the search space in YAML, and wandb agent can automatically choose candidate settings and launch runs. We did not use it in this demo, but it is easy to use and well worth checking out.



Useful feature 2: Pinned runs and baseline comparison

Pinned Runs let you keep important baseline runs at the top of the run list. Even as many new experiments are added, your reference runs stay easy to find.
When combined with Baseline Comparison, the baseline run is highlighted directly on line plots, making it much easier to judge whether a new run actually improved on the baseline. This is especially useful when comparing fine-tuning runs against a public checkpoint.


Useful feature 3: Semantic colors by config values

Semantic Colors by Config Values automatically assigns colors to runs based on config values. Simply having consistent colors by learning rate, model family, or backend can make a large difference in how readable the charts are.
For example, if training_backend=jax and training_backend=pytorch are automatically shown in different colors, you can quickly see backend-related trends in the same Workspace. Because individual runs remain easy to distinguish before aggregation, it also speeds up judgment during follow-up experiments.
Below, the runs are colored by lr_schedule.peak_lr.

13 selected runs



Useful feature 4: Saved views

W&B Workspace Saved Views let you save panel layouts, filter conditions, color assignments, and display targets exactly as they are.
This is more than just a saved layout. What matters is that you can save a research perspective itself. For example, it is useful to keep separate views such as:
  • For training checks: a view centered on train/loss and train/grad_norm
  • For periodic evaluation: a view centered on eval/success_rate and eval/leaderboard
  • For video review: a view centered on eval_final/videos
If a team shares the same Saved View, everyone is literally looking at the same screen when discussing results. Even that alone can make reviews much faster.

Automatically choosing and launching the next experiment: W&B Skills

Weights & Biases also provides Skills. This is a framework that makes it easier for coding agents to work with W&B experiment management features. Agents can review training results and run comparisons, consider what conditions to try next, and even proceed to code changes when necessary.
For example, once several training runs have completed, an agent can review the runs and suggest what conditions to try next. When used well, this makes it easier to build a workflow that continuously improves experiments while looking at the latest results.
In our experiments as well, we used W&B Skills as a lightweight aid when deciding later follow-up conditions. W&B Skills is still a fairly new tool, so we would love for you to try it and share lots of feedback.
# Local (current project):
npx skills add wandb/skills --skill '*' --yes

# Global (all projects):
npx skills add wandb/skills --skill '*' --yes --global

# To link skills to a specific agent (for example, Claude Code):
npx skills add wandb/skills --agent claude-code --skill '*' --yes --global

2. Strengthening the physical AI evaluation pipeline

In physical AI, checking the simulation itself is extremely important. Quantitative metrics such as success rate or reward do not tell you how the robot actually moved, where it became unstable, or how it failed. That is why visualizing the simulation and checking behavior directly is a necessary part of evaluation.
In other words, both of the following are essential in physical AI evaluation:
  • Quantitative evaluation: indicators such as success rate, maximum reward, and number of steps, which are easy to compare across runs
  • Qualitative evaluation: reviewing rollout videos to understand how the robot moves and how it fails

Quantitative evaluation: uilding a leaderboard with W&B Tables

The scripts/eval_aloha_dataset.py script we added does more than save evaluation results as JSON or CSV. It also logs them as W&B Tables. W&B Tables let you store structured data in the UI directly.
There are two main ideas here. The first is that we prepared a leaderboard that gives an overview of evaluation results for each run and checkpoint. This makes it easy to compare which checkpoints performed well when multiple runs are displayed side by side in the Workspace.

14 selected runs

The second is that we do not stop at the aggregated results. We also preserve sample-level evaluation details. That makes it possible to inspect questions such as "the overall scores are similar, but which samples differ?" or "which episodes failed?" In the W&B Report, you can choose which run to display with the run filter below the panel.

1 selected runs

The details of what information goes into the Tables are implemented in scripts/eval_aloha_dataset.py and src/openpi/utils/wandb/leaderboard.py. The main evaluation values are also written into run.summary, so they can be used for filtering and sorting in the Workspace even without opening the Table itself.

Qualitative evaluation: Viewing rollout videos in W&B Media Panels

In this integration, ALOHA Sim rollouts are logged as wandb.Video and can be viewed step by step in W&B Media Panels. Because rollout videos are kept for each evaluation sample, you can later trace how the robot behaved at each checkpoint.
This makes it possible to visually confirm whether the robot is actually learning to solve the task as training progresses, or whether instability remains along the way. The key point is that improvements and failure modes that are hard to see in scalar metrics alone can now be tracked as simulation videos at each step.
For implementation details, see scripts/eval_aloha_dataset.py, src/openpi/training/aloha_eval.py, and src/openpi/utils/wandb/videos.py.

1 selected runs


Especially useful Media Panel features

As described in the Media Panels documentation, W&B Media Panels continues to improve. As interest in Physical AI grew, the tools for handling simulations and rollout videos also became more capable.
Here, we highlight a few Media Panel features that are especially useful in the Physical AI context.
Synchronized Video Playback
This feature lets you play multiple videos in sync. It is useful when comparing successful and failed examples from the same checkpoint, or the same prompt across a JAX run and a PyTorch run. Once you scrub one video, all the others align to the same timestamp, so it becomes easy to compare grasp timing or handoff behavior frame by frame.
Synced Media Sliders
This feature synchronizes media sliders across multiple panels. It is useful not only for videos, but also when you want to compare related images or derived media at the same step.
Bulk control of Media Panels
This feature lets you manage panel settings together across an entire Workspace or a specific Section. As the number of video panels grows, manual configuration becomes costly. Bulk control helps you align display styles and grid layouts all at once, so you can spend more time analyzing and less time configuring.

3. Asset management

It is important to be able to trace, later on, which data was used for training, which checkpoints were evaluated, and what results were obtained. As the number of checkpoints grows, managing everything using only local filenames quickly becomes difficult.
That is why this integration places strong emphasis on versioning checkpoints and preserving lineage from data to models to evaluation results.

Artifacts: strengthening checkpoint version management

W&B Artifacts are designed to manage the many checkpoints and result files that appear during experiments as versioned assets. In this integration, we especially strengthened how model checkpoints are handled during training.
For pi0_aloha_sim, milestone checkpoints are published every 5,000 steps, with aliases such as step-5000, step-10000, step-15000, and final. This keeps storage costs under control while still making it easy to compare training progress checkpoint by checkpoint. These settings are also easy to change.
In addition, by using lineage features, we made it easier to trace which datasets and parameters were used to produce each checkpoint, so that model versioning becomes something useful for later comparison and validation rather than simple file storage.


Registry: preserving dataset and model lineage

W&B Registry is designed to make shared datasets and models easy for a team to reference. In this integration, we first register the training dataset and evaluation datasets in the Registry, and then start training and evaluation by referencing them. While Artifacts are designed to manage the large number of assets generated during experiments, Registry is designed to keep the important assets that a team wants to share easy to find and reuse.

The training dataset and evaluation datasets are registered in the Registry, and training and evaluation are launched by referring to those assets. The artifact refs used here are:
  • train: wandb32/wandb-registry-Physical AI - openpi/training dataset:v0
  • eval: wandb32/wandb-registry-Physical AI - openpi/evaluation dataset for openpi:v0
  • holdout (eval_final): wandb32/wandb-registry-Physical AI - openpi/evaluation dataset for openpi:v1
In practice, the implementation references the train / eval / holdout (eval_final) artifacts using use_artifact as shown below. The train artifact is referenced so the dataset version used for training is recorded, while the eval and holdout artifacts are used to resolve manifests and drive actual evaluation.
dataset_artifact_refs = _dataset_artifacts.configured_dataset_artifact_refs(config)
if train_ref := dataset_artifact_refs.get("train"):
wandb.run.use_artifact(train_ref)

if eval_ref := dataset_artifact_refs.get("eval"):
wandb.run.use_artifact(eval_ref)
resolved_eval_manifest = _download_artifact_payload(eval_ref, artifact_root / "eval")
if resolved_eval_manifest is not None:
config = dataclasses.replace(config, eval_manifest_path=str(resolved_eval_manifest))

if holdout_ref := dataset_artifact_refs.get("eval_final"):
wandb.run.use_artifact(holdout_ref)
resolved_holdout_manifest = _download_artifact_payload(holdout_ref, artifact_root / "eval_final")
if resolved_holdout_manifest is not None:
config = dataclasses.replace(config, final_eval_manifest_path=str(resolved_holdout_manifest))

Because the same dataset does not need to be uploaded again for every run, operations stay easier to manage, and it also becomes much easier to understand the assumptions behind a model when revisiting it later.

Conclusion

With this OpenPI x W&B integration, our goal is to enable tracking, from a single run, the configuration used, evaluation results at each checkpoint, rollout videos, and the connections between training and evaluation data.
In physical AI, loss and success rate alone are not enough. By making simulation results easy to visualize, we made it easier to understand performance in a deeper, more practical way.
We hope the integrations introduced here and the workflow shown in this report will be useful as a reference when building an experiment foundation for physical AI.