myosuite
Use MyoSuite's MuJoCo musculoskeletal environments, task registry, model and kinematics tools, reference-motion utilities, optional MJX acceleration, rendering, and bounded reinforcement-learning integrations.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- myosuite
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use MyoSuite's MuJoCo musculoskeletal environments, task registry, model and kinematics tools, reference-motion utilities, optional MJX acceleration, rendering, and bounded reinforcement-learning integrations.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/installation-and-assets.md2.7 KB
- 参考文档references/repo-provenance.md2.4 KB
- 参考文档references/repo-routing-metadata.json497 B
- 参考文档references/troubleshooting.md2.9 KB
03 SKILL.md 正文
MyoSuite operating guide
MyoSuite is a Python package of musculoskeletal MuJoCo environments exposed through Gymnasium-compatible APIs. Use this skill for task selection, short control rollouts, observation/reward inspection, simulation and rendering, model edits/IK, reference trajectories, optional JAX/MJX acceleration, or RL integration planning. This is a self-contained operating graph: use its bundled references and scripts, not the source checkout's tests, tutorials, or launchers.
Route first
- Environment/task creation, reset/step, seeds, spaces, task IDs, or safe headless rollouts: read environments.
- MuJoCo model state, XML loading, cameras, offscreen/onscreen rendering, or viewer failures: read simulation-rendering.
- XML/model transformations, robot edits, site-pose IK, or quaternion/vector utilities: read model-editing-kinematics.
- Fixed/random/tracked trajectories, interpolation, playback, or reference logs: read reference-motion.
- JAX/MJX/MJWarp, device probes, CUDA, or NumPy/JAX parity: read mjx-acceleration.
- Saved-policy evaluation, SB3/MJRL/DEP-RL/TorchRL boundaries, or training handoff/config validation: read training-integration.
For package-wide setup failures, read installation and assets and troubleshooting. Read repository provenance before treating this graph as current for a changed checkout.
Install and smoke check
Use an isolated Python 3.10–3.13 environment and install the released package or an editable source distribution with its documented MuJoCo model assets. The core route needs Gymnasium below 1.3, MuJoCo 3.6.x, NumPy, Click, and the other base dependencies declared by the package. Do not install MJX/CUDA or RL extras unless the requested route needs them.
python -m pip install -U myosuite
python -c "import myosuite, mujoco; print(myosuite.__version__, mujoco.__version__)"
python sub-skills/environments/scripts/environment_smoke.py \
--env-id myoElbowPose1D6MRandom-v0 --steps 3 --seed 123 --render none
For a source checkout, missing MuJoCo include files usually mean the repository's asset submodules/package data are unavailable; see the asset guidance rather than changing task IDs. The verified package snapshot imported MyoSuite 2.12.2, MuJoCo 3.6.0, and Gymnasium 1.2.3, registered 398 environments, and completed a seeded pose reset/step smoke after model assets were available.
Operating rules
- Import
myosuitebefore querying the Gymnasium registry; registration is an import side effect. Prefergym.spec(task_id)and an exact task ID from the linked task catalog beforegym.make(task_id). - Use
reset(seed=...), seed the action space for deterministic sampled controls, honor the five-value Gymnasiumstepresult, and close every environment in afinallyblock. - Keep CPU/base behavior separate from optional display and MJX/CUDA claims. A successful MuJoCo CPU step does not prove JAX, CUDA, or a windowing stack.
- Bound episodes, frames, output files, and training plans. Do not fetch model assets, open viewers, deserialize untrusted policies, or launch long experiments without explicit user intent.
- Preserve task-specific observation/action shapes and reference joint order; do not copy a control vector or reference file between tasks without checking its declared spaces and dimensions.
Verification boundary
The base package, registry, seeded environment lifecycle, model-editor tests, CLI help, and safe bundled scripts are CPU-verifiable. MJX/JAX/CUDA, onscreen viewer behavior, networked asset setup, and long RL training are optional or environment-dependent; route them to the relevant sub-skill and keep any unverified backend visible. The generated skill is intentionally not imported into the managed DisCo repo-skill collection for this run.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).