AGENT SKILL

navsim

Use NAVSIM v2 for autonomous-driving agent development, OpenScene data setup, learned-agent training, EPDMS evaluation, traffic-policy experiments, visualization, and leaderboard submission preparation.

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

01 前言 Front Matter

name
navsim
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Use NAVSIM v2 for autonomous-driving agent development, OpenScene data setup, learned-agent training, EPDMS evaluation, traffic-policy experiments, visualization, and leaderboard submission preparation.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

NAVSIM v2 operating guide

Use this skill when a task names NAVSIM, OpenScene, EPDMS/PDM score, pseudo closed-loop driving evaluation, TransFuser/LTF, Trajectory, SensorConfig, NAVSIM split names, or the NAVSIM submission pickle. This is a self-contained operating graph: use its bundled references and safe helpers rather than reopening a NAVSIM checkout.

Route by task

  • Install, workspace, maps, logs, sensors, split choice, or loader/data layout: read setup-and-data.
  • Create/debug a planner agent, sensor history, trajectory, checkpoint, or TransFuser/LTF configuration: read agents.
  • Train a learned agent, build/reuse feature caches, or diagnose Lightning and Hydra training configuration: read training.
  • Build metric caches, run one-/two-stage EPDMS, select traffic policies, or diagnose score CSVs: read evaluation.
  • Plot camera/BEV/LiDAR data or prepare/validate a warmup/challenge pickle: read visualization-and-submission.

For a request that spans routes, start with setup-and-data, then follow the links from agents into training or evaluation; use visualization-and-submission only for plotting and submission artifacts.

Installation baseline

NAVSIM v2.0.0 documents Python 3.9+, a nuPlan devkit dependency, PyTorch 2.0.1, Hydra, PyTorch Lightning, NumPy, OpenCV, geospatial libraries, and optional visualization/Jupyter packages. Use a fresh environment and the package's versioned requirements rather than mutating an unrelated environment. For a public source installation, use a compatible Python 3.9+ environment and pin this source revision:

python -m pip install "navsim @ git+https://github.com/autonomousvision/navsim.git@0a380a9063d7162ec93d0f51e9990ebac585f720"
python -m pip check

If a user already has a source checkout, editable installation is equivalent: python -m pip install -e . from that checkout. A minimal public import check is:

python -c "import navsim; from navsim.common.dataclasses import SensorConfig, Trajectory; print('NAVSIM import OK')"

GPU is not required for metadata/API inspection, but learned TransFuser training and realistic sensor/evaluation workloads should use a compatible CUDA Torch installation. Never call a CPU import proof of GPU capability.

Workspace contract

Before any data-backed command, define these public variables and validate the selected roots with the bundled workspace validator from the setup-and-data route:

  • NUPLAN_MAP_VERSION=nuplan-maps-v1.0
  • NUPLAN_MAPS_ROOT: readable nuPlan map database
  • NAVSIM_EXP_ROOT: experiment outputs and metric cache
  • NAVSIM_DEVKIT_ROOT: the NAVSIM installation/project root used by the user's command context
  • OPENSCENE_DATA_ROOT: OpenScene logs, sensor blobs, and two-stage bundles

Do not create empty directories to satisfy the checker. Logs, sensor paths, map data, synthetic scenes, and metric caches are separate resources.

Cross-cutting guardrails

  • Keep agent trajectories in local rear-axle BEV (x, y, heading) form with a matching TrajectorySampling; the default model output is 4 seconds at 0.5-second intervals, while proposal evaluation commonly samples 4 seconds at 0.1 seconds.
  • Keep the metric-cache split, scene-filter split, synthetic roots, proposal sampling, and traffic policy aligned. Treat missing/unused token warnings or invalid pseudo-closed-loop aggregation as failed evaluation evidence.
  • Do not train challenge/test splits. navtrain/trainval/mini are training candidates; test, navtest, navhard_two_stage, warmup_two_stage, and private challenge splits are evaluation/submission surfaces.
  • Submission agents receive AgentInput, not an annotated Scene; a requires_scene=True privileged agent cannot generate a valid server pickle.
  • Dataset downloads, large cache creation, training, benchmark scoring, private-data access, uploads, and notebook rendering are explicit operations, not default smoke checks.

For a package/API/backend smoke, run the shared runtime inspector with --help, --json, or the explicitly requested --cuda probe. Read troubleshooting.md for cross-cutting install/import, environment-variable, split/cache, backend, Hydra, and output failures. Read repo-provenance.md before refreshing this graph against a newer NAVSIM source version.

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