ai-optimizer
Route AI-Optimizer reinforcement-learning collection tasks across model-based RL, easy-MARL, offline RL, safe command builders, and repository limitations.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- ai-optimizer
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Route AI-Optimizer reinforcement-learning collection tasks across model-based RL, easy-MARL, offline RL, safe command builders, and repository limitations.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/repo-provenance.md3.6 KB
- 参考文档references/repo-routing-metadata.json532 B
- 参考文档references/repository-map.md3.0 KB
- 参考文档references/troubleshooting.md3.3 KB
- 脚本scripts/check_ai_optimizer_static.py7.1 KB
03 SKILL.md 正文
AI-Optimizer
Use this repo skill when a task names AI-Optimizer or asks for help with its reinforcement-learning algorithm collection: model-based RL, easy-MARL multi-agent RL, offline RL, algorithm selection, command construction, dataset/schema checks, dependency caveats, or safe static verification before running experiments.
AI-Optimizer is a research-code collection rather than one installable Python distribution. Treat each algorithm family as its own runtime surface with separate dependencies and simulator/data requirements.
Route by task
| User request mentions | Read |
|---|---|
| Dreamer, ED2-Dreamer, PlaNet, MuZero, Sampled MuZero, MBPO, ED2-MBPO, BMPO, CaDM, world models, learned dynamics, planning, model-based baselines | model-based-rl |
| MARL, easy-MARL, IDQN, VDN, QMIX, CommNet, IDDPG, MADDPG, IPPO, MAPPO, MAGYM, MPE, scenario names, multi-agent training commands | multi-agent-rl |
| Offline RL, batch RL, D4RL, MDPDataset, d3rlpy-derived APIs, BCQ, BEAR, CQL, AWAC, REDQ, UWAC, ISPI, COMBO, MOPO, E2O, PEX, offline-to-online | offline-rl |
| Unsure where a folder or algorithm belongs, or need a high-level map of checked-in and empty areas | repository-map.md |
| Import/install/backend/data failures shared across algorithm families | troubleshooting.md |
| Staleness, source commit, dirty state, or evidence-path audit | repo-provenance.md |
Safe default workflow
- Identify the algorithm family and route to the matching sub-skill.
- Use bundled command builders or validators before running original training code:
- Model-based MuZero command builder:
sub-skills/model-based-rl/scripts/build_muzero_command.py. - Easy-MARL command builder:
sub-skills/multi-agent-rl/scripts/build_easy_marl_command.py. - Offline RL command builders and dataset validator:
sub-skills/offline-rl/scripts/.
- Model-based MuZero command builder:
- Run scripts/check_ai_optimizer_static.py when checking a generated skill tree or a target checkout layout without launching training.
- Before executing any printed command, verify the target runtime environment for that algorithm family. Do not assume dependencies are shared across subdirectories.
- Treat full RL training, simulator execution, CUDA allocation, dataset downloads, and background experiment launches as deliberate heavy actions that need task-specific approval and resources.
Important constraints
- The inspected checkout contains checked-in code for
modelbased-rl,multiagent-rl/easy-marl, andoffline-rl-algorithms. - Several submodule placeholders are empty in the inspected source snapshot:
cornerstone,self-supervised-rl,transfer-and-multi-task-reinforcement-learning, andmultiagent-rl/core. Do not claim their code is available from this skill. - Many algorithm folders target old ML stacks: TensorFlow 1.x/2.1/2.2 GPU, Ray 0.6/0.7, old Gym, MuJoCo 1.50, dm_control, D4RL, Waymo, MAGYM, or MPE. Keep those prerequisites explicit.
- This skill preserves operating guidance and safe helpers. It does not verify benchmark scores or completed training runs.
- Runtime links in this skill point to bundled skill files. Source-path names in references are identifiers for target AI-Optimizer checkouts, not links to this production checkout.
Minimal inspection checks
For a target AI-Optimizer checkout, prefer safe checks before training:
python scripts/check_ai_optimizer_static.py --source-root /path/to/AI-Optimizer
python sub-skills/multi-agent-rl/scripts/build_easy_marl_command.py --agent-name IDQN --env-name discrete_meeting
python sub-skills/model-based-rl/scripts/build_muzero_command.py --env CartPole-v1 --case classic_control --opr train --no-cuda --force
python sub-skills/offline-rl/scripts/build_offline_rl_command.py bcq --dataset halfcheetah-medium-v2 --seed 0 --omit-gpu
The printed commands are recipes for a target checkout. The helpers do not install dependencies, start environments, download datasets, run training, or write model outputs.
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).