Repository navigation
Add PerfLab benchmark Experiments and test plan - #1565
alexmillane merged 9 commits into
Conversation
Port the PerfLab benchmark Experiments from the perflab-benchmarks branch so they run on main: - The same-object and mixed-object workloads use two environment YAMLs in the perflab folder instead of the object_set field the branch added to the Maple-table environment. Both use the stationary droid_rel_joint_pos embodiment and assign fruit to environments in list order. - Drop the reduced-camera workload. Main replaced explicit camera dimensions with camera_resolution_mode, and its policy_default mode does not apply to the zero-action policy. - Replace the provisional 10-step rollout with the 300 steps that every measured trial uses. The tests check that every workload loads through the typed loader, that the camera workloads keep the DROID rig's camera resolution, and that the two object workloads differ only in their fruit list. Signed-off-by: Clemens Volk <[email protected]>
Port the PerfLab test plan from the perflab-benchmarks branch to main's runtime: - Clone main instead of the benchmark branch. - Run Python through ./submodules/IsaacLab/isaaclab.sh -p. Main's image installs Isaac Lab and Arena into a uv venv, so /isaac-sim/python.sh no longer finds them, and isaaclab.sh is not on PATH in shells attached with docker exec. - Drop --rendering_mode, which Isaac Lab 3.0 removed. The runner rejects unknown flags, so the old commands fail at startup. - Drop -g from the policy server commands. Main's server scripts always give the server container every GPU. - Check trials with main's artifacts: arena_run_timings.json and the step, step/env_step and step/policy_inference timers, instead of arena_experiment_metadata.json and the rollout/* timers. - State the R580 driver requirement of main's CUDA 13.0 PyTorch. Signed-off-by: Clemens Volk <[email protected]>
Keep the PerfLab benchmarks in their own folder, named after what they measure, instead of the shared experiment_configs folder: - isaaclab_arena_environments/experiment_configs/perflab/ moves to isaaclab_arena_environments/performance/. - README.md becomes perflab_benchmark_plan.md, which says what the file is. - test_perflab_benchmark_configs.py becomes test_performance_benchmark_configs.py. The plan's commands and the object Experiments' environment paths point at the new folder. Signed-off-by: Clemens Volk <[email protected]>
[Low impact] The PR appears safe to merge; no actionable issue was found. SummaryAdds seven single-run benchmark configurations, paired object scenes, a six-workload PerfLab plan, and configuration tests.
Reviews (1) · Last reviewed commit: "Move PerfLab benchmarks to a performance..." · Reviewed by Greptile |
🤖 Isaac Lab-Arena Review BotSummaryThis PR adds seven single-Run PerfLab Experiments, two graph-spec fruit scenes, an operator test plan, and a test for the configs. It changes no production code, and the Experiment YAMLs follow the pattern of the existing Design, Boundaries & Scope
Findings🟡 Warning: isaaclab_arena_environments/performance/same_object_environment.yaml:6 — Duplicated fruit scene. Share it through Test Coverage and CI CostThe new tests have no markers, so they run in the in-process PhysX phase. They load configs without starting a SimulationApp, so the CI cost is small. The concern is what they protect:
Limitations: I didn't finish checking the plan's operational details against the scripts and code. That covers the VerdictMinor fixes needed |
PerfLab is an internal tool, so its runbook belongs with the other development-team guides rather than next to the Experiment configs: - isaaclab_arena_environments/performance/perflab_benchmark_plan.md becomes docs/pages/development_team_internal/perflab_benchmarks.rst. - The Development Team Internal index lists the new page. The content is unchanged apart from the Markdown-to-RST conversion and naming the config folder explicitly, since the guide no longer sits in it. Signed-off-by: alex <[email protected]>
- Lay out isaaclab_arena_environments/performance/ like RoboLab: the Experiments move to experiment_configs/, the two fruit environments become tasks/same_object.yaml and tasks/mixed_object.yaml, and the scene they share moves to scenes/fruit_bowl_maple_table.yaml. The task files drop the empty params entries. - Replace the config tests that restated YAML values with one parametrized test that loads each Experiment with the overrides the guide's commands pass, then checks its Run name, cameras and embodiment. - State in the camera Experiments and the guide that the DROID rig renders at its declared 1280x720, with a TODO to move to the policies' default resolution. - Add the GR00T Experiment to the PerfLab guide. - Note in the performance reference that the maintained configs on main may differ from the pinned, measured ones. Signed-off-by: alex <[email protected]>
alexmillane
left a comment
There was a problem hiding this comment.
Comments addressed!
load_arena_experiment_from_config_file checks that every registered environment has a config. In CI, test_external_environment runs earlier in the same process and leaves ExternalFrankaTableEnvironment registered without one, so every PerfLab config test failed (issue #1580). Load the PerfLab Experiments with load_arena_experiment_from_yaml and an explicit environment config mapping instead, as test_experiment_hydra does. Switch back once #1379 fixes the loader. Signed-off-by: alex <[email protected]>
Signed-off-by: alex <[email protected]>
…benchmarks-main Signed-off-by: alex <[email protected]>
The typed loader now skips registered environments without a config, so the explicit environment config mapping is no longer needed. This reverts commit c8d6385. Signed-off-by: alex <[email protected]>
68c4f54
into
alex/fix/typed_loader_external_envs
|
Auto-merge merged this into its base branch |
Add the PerfLab benchmark Experiments in `isaaclab_arena_environments/performance/`, and their test plan in the internal developer docs. Replaces #1565 (merged into its base by mistake; review history is there). Stacked on #1594: merge that first. ## Why this change? The PerfLab Experiments and test plan from #1151 no longer run on main: the Python launcher, the Experiment fields and the timing files they use have all changed. ## What changes? - Seven single-Run Experiments in `performance/experiment_configs/`: camera-free, production-camera, Pi0.5, Cosmos, GR00T, same-object and mixed-object. The object workloads share one scene in `performance/scenes/` and differ only in their fruit list. - The test plan in `docs/pages/development_team_internal/perflab_benchmarks.rst`. - `test_performance_benchmark_configs.py` loads each Experiment with the plan's overrides and checks the result. ## Validation - `test_performance_benchmark_configs.py`: 9 passed. - Camera-free, same-object, mixed-object, production-camera and Pi0.5 pass the plan's trial checks on CPU with 1 environment. Not run: on GPU, Cosmos and GR00T. --------- Signed-off-by: Clemens Volk <[email protected]> Signed-off-by: alex <[email protected]> Co-authored-by: Clemens Volk <[email protected]>
Add the PerfLab benchmark Experiments and their test plan in a new
isaaclab_arena_environments/performance/folder, updated to run on main.Why this change?
PerfLab runs a fixed set of Arena workloads on larger GPUs and reports timings. The Experiments and test plan for them in #1151 were written against main from August and no longer run on main:
/isaac-sim/python.sh, which now fails withNo module named 'isaaclab'because main's image installs Isaac Lab and Arena into a uv environment. It also passes--rendering_mode, which Isaac Lab 3.0 removed.object_setfield thatPickAndPlaceMapleTableEnvironmentdoes not have on main.arena_experiment_metadata.jsonandrollout/*timers, which main does not write.What changes?
isaaclab_arena_environments/performance/: camera-free, production-camera, Pi0.5, Cosmos, GR00T, same-object and mixed-object. The two object Experiments build their scenes from graph-spec YAMLs in the same folder, which differ only in the fruit list, so Arena code does not change.perflab_benchmark_plan.mdin the same folder is the PerfLab test plan. It checks each trial with main's artifacts,arena_run_timings.jsonand thestep,step/env_stepandstep/policy_inferencetimers, and states the R580 driver requirement of main's CUDA 13.0 PyTorch.test_performance_benchmark_configs.pychecks that every Experiment loads through the typed loader, that the camera Experiments keep the DROID rig's camera resolution, and that the two object environments differ only in their fruit list.Validation
isaaclab_arena/tests/test_performance_benchmark_configs.py: 11 passed.--device cpu, 1 environment and the plan's 300 steps. Both timing files contain the records the plan describes, and thestep,step/env_stepandstep/policy_inferencecounts are 300. The Pi0.5 run used a local OpenPI server with the samepi05_droid_jointpos_polarisconfig the plan's server command starts.apple_01.runs.<run>.environment_builder.solve_relations=false, because placement builds the cuRobo IK reachability check, which requires CUDA, and the Pi0.5 run neededshared.policy.policy_device=cpu. Object placement was therefore not exercised.--device cuda:0run, because the test machine's driver (560) is older than R580, and the Cosmos and GR00T Experiments.