AGENT SKILL

env-integration

Routes DI-engine environment wrappers, env managers, and DIZoo environment onboarding.

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

01 前言 Front Matter

name
env-integration
license
Apache 2.0
metadata
{ "disco-role": "operating", "disable-model-invocation": true }
description
Routes DI-engine environment wrappers, env managers, and DIZoo environment onboarding.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Environment integration

Use this sub-skill for environment wrappers, env-manager selection, and the DIZoo patterns used to add or debug a new environment. The key question is usually "what shape should the environment return, and how should DI-engine manage it?"

Owns

  • DingEnvWrapper and its collector/evaluator configuration helpers
  • BaseEnvManager, BaseEnvManagerV2, EnvSupervisor, and subprocess-based env management
  • create_env_manager, get_vec_env_setting, and related env-manager helpers
  • environment-template patterns under dizoo/classic_control/, bitflip/, frozen_lake/, and league_demo/
  • env-shape debugging for observation, action, reward, and done semantics

Does not own

  • Legacy training loops and data collection logic; those belong to serial-pipelines
  • Framework/middleware examples and multi-process message routing; those belong to framework-runtime
  • CLI flag parsing and config compilation; those belong to cli-config

Read this first when the user asks

  • how to wrap a Gym or Gymnasium environment for DI-engine
  • how to choose the right env manager backend
  • how to add a new environment under dizoo/
  • why a collector or evaluator env is returning the wrong shapes
  • why a manager is timing out, blocking, or restarting children

Workflow

  1. Use references/environment-reference.md to identify the wrapper or manager the request needs.
  2. Use references/troubleshooting.md when the user sees shape or timeout errors.
  3. Use scripts/env_wrapper_smoke.py for a small check that the installed environment can still wrap and step a representative env.
  4. If the problem is really about policy or pipeline logic, move to the neighboring sub-skill instead of widening this one.

Common decision points

  • Use DingEnvWrapper when you need to normalize a Gym/Gymnasium env into the DI-engine timestep and action/observation conventions.
  • Use BaseEnvManager or BaseEnvManagerV2 for local single-machine env management.
  • Use EnvSupervisor when the workflow needs explicit child restart and timeout control.
  • Use the dizoo/classic_control/ family as the simplest representative environment pattern when you are onboarding a new env.

Helpful bundle links

  • references/environment-reference.md for signatures, manager choices, and representative environment families.
  • references/troubleshooting.md for shape, timeout, and optional-package failures.
  • scripts/env_wrapper_smoke.py for a small wrapper check using CartPole under both Gym and Gymnasium.

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