界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

policy-eval

policy-eval

【效率与协作】Configure RoboTwin XPolicyLab policy evaluation, remote policy servers, scheduler dry-runs, and action-adapter checks.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: policy-eval description: "Configure RoboTwin XPolicyLab policy evaluation, remote policy servers, scheduler dry-runs, and action-adapter checks." metadata: disco-role: operating disable-model-invocation: true license: MIT

RoboTwin policy evaluation

Use this sub-skill when the user asks to evaluate a policy in RoboTwin, configure XPolicyLab local or remote evaluation, debug scheduler configs, validate policy action formats, or interpret evaluation result layouts.

Route first

Prerequisites

  • A RoboTwin workspace with assets installed and simulation dependencies working.
  • If you only have the generated skill tree, use the root workspace bootstrapper first to materialize a pinned public workspace.
  • The XPolicyLab submodule initialized and a policy adapter under XPolicyLab/policy/<policy_name>/.
  • Separate policy and evaluation environments when the policy stack and RoboTwin simulation dependencies differ.
  • GPU IDs and capacity chosen for the host.

Main workflows

Evaluation modes

  1. bash scripts/eval_policy.sh serve --config env_cfg/eval/remote_server.yml starts a pool of policy servers.
  2. bash scripts/eval_policy.sh multitask --config env_cfg/eval/all_tasks.yml ... schedules local policy+simulator jobs or local simulator clients against remote servers.
  3. Without multitask or serve, scripts/eval_policy.sh dispatches a single eval call to the XPolicyLab adapter path.

Validation signals

  • --dry-run prints the schedule and concrete commands without launching policies.
  • Scheduler config rejects unknown fields, duplicate tasks, invalid GPU IDs, missing checkpoint in local mode, and missing remote endpoints in remote mode.
  • eval_result/multitask/<run_id>/summary.json reports jobs total/succeeded/failed/skipped.
  • Per-task logs are under eval_result/multitask/<run_id>/logs/.
  • Single task eval writes _result.txt under eval_result/<task>/<policy>/<task_config>/<checkpoint>/<timestamp>/.
我的收藏