motus
Use Motus, a unified latent-action world model, for robot-video/action data preparation, CUDA inference, RoboTwin evaluation, and distributed training configuration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- motus
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use Motus, a unified latent-action world model, for robot-video/action data preparation, CUDA inference, RoboTwin evaluation, and distributed training configuration.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/repo-provenance.md1.1 KB
- 参考文档references/repo-routing-metadata.json494 B
- 参考文档references/troubleshooting.md1.6 KB
03 SKILL.md 正文
Motus repository skill
Motus combines a WAN video generator, action expert, and frozen Qwen VLM in a trimodal mixture-of-tokens model for robot video, actions, and latent-action pretraining. Use this skill for operational work around the public Motus repository; it does not replace the external RoboTwin simulator or supply model checkpoints and datasets.
Route by task
- Data layouts, episode validation, camera views, normalization, conversion, or LeRobot/T5 caches: read data-preparation.
- Real-world image inference, T5 conditioning, checkpoints, or RoboTwin policy evaluation: read model-inference.
- YAML configuration, fine-tune/resume semantics, torchrun, DeepSpeed, SLURM, or checkpoint export: read training.
Read troubleshooting for cross-cutting installation, assets, optional backends, and path failures. Read provenance before deciding whether this skill matches a changed Motus checkout.
Installation and prerequisites
The source documents Python 3.10, CUDA 12.8, torch 2.7.1/torchvision 0.22.1,
flash-attn, and the pinned runtime requirements. Install a compatible CUDA
wheel first, then the requirements needed by the selected route. LeRobot adds
its own optional package and requirements. Use an isolated environment; do not
install all optional assets merely to inspect the routing skill.
Minimal import smoke:
python -c "import torch; print(torch.__version__, torch.cuda.is_available())"
python -c "from data.dataset import create_dataset, collate_fn; from models.action_expert import ActionExpertConfig; print(ActionExpertConfig())"
Actual model construction, checkpoint loading, T5 encoding, training, and
RoboTwin execution require CUDA, large external assets, and substantial VRAM.
The public guide estimates over 24 GB for pre-encoded-T5 inference, about 41 GB
for on-the-fly T5, and over 80 GB for training. Treat CPU imports and --help
checks as parser/API evidence only.
Shared operating rules
- Replace all example paths with paths valid on the target machine. Keep WAN, VLM, VAE, checkpoint, dataset, and output roots distinct and readable.
- Derive
action_chunk_sizefrom the common frame count and video/action frequency ratio; keep action dimensions, state dimensions, embodiment config, and normalization statistics aligned. - Prefer pre-encoded language embeddings when memory is constrained. Keep the selected text instruction aligned with its embedding variant.
- Run safe validation before any network download, cache rewrite, simulator launch, or distributed job. Launches are explicit, potentially expensive operations and are never inferred from an import success.
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).