google-deepmind / google-deepmind/mujoco_playground

warp backend causes nans in simulation

Open
#248 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
359
Avg merge
7d 3h
Merged PRs (30d)
1

Description

I've been using mujoco-playground to train a C.elegans biomechanical model to do imitation learning using the mjx backend and it has worked fine. When I try switching to warp with identitical configurations otherwise, the physics becomes unstable and goes to nan. I'm not sure what could be causing this. These are the library versions I'm working with:
```
jax 0.7.2 pypi_0 pypi
jax-cuda12-pjrt 0.7.2 pypi_0 pypi
jax-cuda12-plugin 0.7.2 pypi_0 pypi
jaxlib 0.7.2 pypi_0 pypi
jaxopt 0.8.5 pypi_0 pypi
mujoco 3.4.0 pypi_0 pypi
mujoco-mjx 3.4.0 pypi_0 pypi
mujoco-warp 0.0.1 pypi_0 pypi
playground 0.0.5 pypi_0 pypi
warp-lang 1.10.0 pypi_0 pypi
```
I'm on ubuntu and using a 5090 gpu with `cuda 12.8`. I've attached a minimal example to reproduce the bug by just stepping through a basic environment:

[warp_debug.zip](https://github.com/user-attachments/files/24200971/warp_debug.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.