AGENT SKILL

rex-gym

Operate the legacy Rex-Gym quadruped reinforcement-learning package for PyBullet environments, kinematics and gait modeling, PPO training setup, and packaged policy playback.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
rex-gym
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Operate the legacy Rex-Gym quadruped reinforcement-learning package for PyBullet environments, kinematics and gait modeling, PPO training setup, and packaged policy playback.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Rex-Gym operating skill

Use this skill when a task involves the rex_gym package, Rex/SpotMicro quadruped simulation, PyBullet Gym environments, inverse kinematics, Bezier walking/galloping, motor models, legacy PPO training, or shipped policy checkpoints.

Route the request

  • Use simulation-environments for environment construction, task/signal/terrain/mark selection, reset/step, observations, rewards, termination, and headless or GUI simulation.
  • Use locomotion-modeling for Kinematics, GaitPlanner, pose/frame ordering, motor constants, and torque conversion.
  • Use training-policy for rex-gym train, rex-gym policy, PPO configuration, agent counts, log directories, policy ids, checkpoints, and TensorFlow compatibility.

Read troubleshooting first when installation, legacy dependencies, package data, or a runtime error is involved. Read repository provenance before deciding whether this graph matches a changed checkout. Run the shared package inspector for a no-training import, CLI, mapping, and deterministic-kinematics check; use troubleshooting for cross-cutting failures.

Install and establish the compatibility family

The public distribution is rex_gym, imported as rex_gym, and exposes the rex-gym console command:

python -m pip install rex_gym
python -c "import rex_gym; print('rex_gym import ok')"
rex-gym --help

For the pinned repository behavior, prefer an isolated Python 3.7 environment with NumPy 1.17.3, PyBullet 2.8.3, Gym 0.17.1, TensorFlow 1.15.5, TensorFlow Probability 0.8, ruamel.yaml, and Click. Modern pip reports an upstream metadata conflict between Gym 0.17.1's cloudpickle range and TFP 0.8's exact pin; do not casually upgrade this legacy family. TensorFlow 1.15 also needs a protobuf 3.20.x-or-earlier runtime on modern installations. See the training route for the optional PPO surface and the troubleshooting reference for recovery.

Choose a safe execution mode

Prefer headless PyBullet (render=False) and a bounded step count on servers, CI, and first checks. Use the simulation smoke helper for a deterministic package/API check; it supplies terrain_id explicitly and always closes the environment. Do not start full training or policy playback merely to test an import. GUI playback and playground training require a display and can run until the environment ends.

The legacy environment API is reset() followed by step(action) returning (observation, reward, done, info), not the newer terminated/truncated pair. Use task-specific action spaces, and expect info["action"] to contain the transformed motor command. Always close environments in finally blocks.

Scope and non-goals

This graph covers the public simulation and learning tools in Rex-Gym. It does not operate physical hardware, replace rexctl, validate sim-to-real transfer, claim policy quality, or prescribe long PPO experiments without an explicit bounded run plan. Large TensorFlow checkpoint binaries remain package data; inspect their catalog and sidecars rather than copying them into this skill.

The source package is legacy and has no dedicated repository test suite or examples tree. The bundled routes and scripts therefore combine documented workflows, source-backed API facts, live import checks, and bounded synthetic smokes. Use the verification artifacts only as construction evidence; they are not runtime dependencies.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351