offline-rl
Use AI-Optimizer's offline RL algorithms, d3rlpy-derived APIs, MDPDataset flows, and offline-to-online E2O/PEX workflows safely.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- offline-rl
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use AI-Optimizer's offline RL algorithms, d3rlpy-derived APIs, MDPDataset flows, and offline-to-online E2O/PEX workflows safely.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/dataset-and-d3rlpy-api.md7.1 KB
- 参考文档references/e2o-pex-workflows.md5.2 KB
- 参考文档references/offline-rl-overview.md4.6 KB
- 参考文档references/offline-training-workflows.md6.9 KB
- 参考文档references/troubleshooting.md5.1 KB
- 脚本scripts/build_offline_rl_command.py9.1 KB
- 脚本scripts/build_pex_command.py7.1 KB
- 脚本scripts/validate_mdp_dataset_npz.py7.7 KB
03 SKILL.md 正文
offline-rl
Use this sub-skill when a task mentions AI-Optimizer offline RL, batch RL, D4RL datasets, MDPDataset, d3rlpy-style APIs, BCQ, BEAR, CQL, AWAC, REDQ, UWAC, ISPI, COMBO, MOPO, E2O, PEX, or offline-to-online RL.
Do not use this sub-skill for model-based online RL outside the offline COMBO/MOPO workflows, or for multi-agent RL; route those tasks to the sibling model-based-rl or multi-agent-rl sub-skills.
Start here
- Read
references/offline-rl-overview.mdto choose the algorithm family and understand the PC/VR/MB/U/Off2On taxonomy. - Read
references/offline-training-workflows.mdbefore forming command lines for BCQ, BEAR, CQL, AWAC, REDQ, UWAC, ISPI, COMBO, or MOPO. - Read
references/e2o-pex-workflows.mdfor E2O and Policy Expansion offline-to-online workflows. - Read
references/dataset-and-d3rlpy-api.mdbefore creating or validating custom datasets or instantiating d3rlpy-derived algorithm classes. - Read
references/troubleshooting.mdbefore attempting simulator, D4RL, MuJoCo, Waymo, PyTorch, Gym, or checkpoint-heavy workflows.
Bundled safe helpers
These helpers are static and safe by default: they build or validate local inputs and never launch training, download datasets, mutate environments, or write model outputs.
scripts/build_offline_rl_command.pyprints shell-quoted command recipes for BCQ, BEAR, CQL, AWAC, REDQ, UWAC, ISPI, COMBO, and MOPO, including the correct dataset/env flag family.scripts/build_pex_command.pyprints shell-quoted PEX offline or online command recipes, including checkpoint and evaluation flags.scripts/validate_mdp_dataset_npz.pyvalidates local.npzarrays before converting them to anMDPDataset-style flow.
Operating constraints
- Treat full RL training, D4RL/MuJoCo/Waymo acquisition, CUDA execution, and long benchmark runs as task-specific prerequisites, not as capabilities already proven by this skill.
- Prefer static command construction and dataset schema validation before any expensive training attempt.
- Keep algorithm-specific script flag differences explicit: many offline scripts use
--dataset, REDQ and ISPI use--env, PEX uses--env_name, and GPU flags are not uniform. - For custom datasets, validate array shapes and terminal/timeout semantics before fitting an algorithm.
- For offline-to-online runs, require a deliberate checkpoint handoff from offline training to online fine-tuning; never assume a checkpoint exists.
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).