From cfc59164ebb3547e1246affd82a2f683721e1dd9 Mon Sep 17 00:00:00 2001 From: Levi Burner Date: Tue, 25 Feb 2025 03:25:51 -0500 Subject: [PATCH] rollout notebook: fixups to benchmarks, plots, text 1. MJX benchmarks use jax.lax.scan and block_until_ready 2. Benchmark parameters updated to match RL use case 3. humanoid benchmarks are warmstarted by 2 seconds, humanoid100 by 4 seconds 4. benchmarks use skip_checks and preallocated threadpools 5. Improved advanced usage plots 6. Benchmark no longer includes model initialization in timed section 7. Update notebook text as needed --- python/rollout.ipynb | 382 +++++++++++++++++++++++++------------------ 1 file changed, 223 insertions(+), 159 deletions(-) diff --git a/python/rollout.ipynb b/python/rollout.ipynb index e87a5067..fb559c3d 100644 --- a/python/rollout.ipynb +++ b/python/rollout.ipynb @@ -17,9 +17,9 @@ "\n", "This notebook describes the `rollout` module included in the MuJoCo Python library. It performs simulation \"rollouts\" with an underlying C++ function. The rollouts can be multithreaded.\n", "\n", - "Below, the usage of each argument is explained with examples. An example of using `rollout` with minimize is also given. Then `rollout` is benchmarked against pure python and MJX. Finally, some examples for advanced use cases are provided.\n", + "Below, the usage of each argument is explained with examples. Then some examples for advanced use cases are provided. Finally, `rollout` is benchmarked against pure python and MJX. \n", "\n", - "Note the benchmarks were designed to run on a AMD 5800X3D and an RTX 4090. They do not run in a reasonable amount of time on a typical free colab runtime.\n", + "Note the benchmarks were designed to run on >16 thread CPU and an RTX 4090 or A100. They do not run in a reasonable amount of time on a typical free colab runtime.\n", "\n", "