MicroDuck RL: From Simulation to the Real Robot — Part 14 of 14
This final installment covers the problems you are most likely to encounter. If you find a new one, please add it in the replies.
Q: Why does uv sync require Python 3.12 when my system uses Python 3.13?
A: You do not need to change your system Python. uv automatically downloads a managed Python 3.12 interpreter to ~/.local/share/uv/python/, and the project’s .venv uses that interpreter. Python 3.12 is pinned because the bam dependency requires a version earlier than 3.13.
Q: Training uses W&B by default. What if I do not have an account?
A: Add --agent.logger tensorboard. All training curves remain available locally; you only lose the cloud-based comparison features.
Q: Why does no window appear after I run play?
A: Under Wayland with GNOME/mutter, the native GLFW viewer may report OpenGL error 0x502. Use --viewer viser to open the browser-based viewer on port 8080; it is more reliable in this environment.
Q: Why did pkill -f "play Mjlab..." terminate my shell too?
A: The -f flag matches the full command line, and the same text also appears in the bash -c process that runs the command. Use a more precise approach: run pgrep -f "uv run play" to get the PID, then run kill <pid>.
Q: Why use pip install uv instead of the official curl | sh installer?
A: Some environments prohibit piping remote scripts directly into a shell. Both installation methods produce the same result.
Q: How long does training take?
A: Running all 50,000 iterations takes roughly 16 hours with 4,096 environments at about 1.13 seconds per iteration. In the project’s experience, however, a usable gait emerges after only one to two hours—a few thousand iterations—with 4,096 environments. You can load the latest checkpoint in the viewer at any time and stop when the behavior is good enough.
Q: Can I use the project without a GPU?
A: You cannot train locally without one, because MuJoCo Warp requires a CUDA-capable GPU. You can still run an exported ONNX policy with keyboard control on any machine using the CPU-based MuJoCo runtime in scripts/infer_policy.py. The repository also supports --hf-jobs for offloading training to Hugging Face Jobs.
That concludes the series. Together, the course index and these 14 installments provide the complete path from environment setup to deployment on the physical robot. If you found the series useful, bookmark it, leave a like, ask questions in the replies, and share a video of your own robot duck.