simulation-wizard
Install and operate AlpaSim's Hydra simulation wizard: select scenes and drivers, validate configs, generate or run Docker/Slurm deployments, tune timing/topology, and inspect run telemetry and outputs.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- simulation-wizard
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Install and operate AlpaSim's Hydra simulation wizard: select scenes and drivers, validate configs, generate or run Docker/Slurm deployments, tune timing/topology, and inspect run telemetry and outputs.
- disable-model-invocation
- true
02 资源文件 7
- 参考文档references/cli-reference.md3.5 KB
- 参考文档references/configuration.md5.1 KB
- 参考文档references/deployment.md4.7 KB
- 参考文档references/scenes-and-results.md3.1 KB
- 参考文档references/telemetry.md1.9 KB
- 参考文档references/troubleshooting.md5.3 KB
- 脚本scripts/check_prerequisites.py2.3 KB
03 SKILL.md 正文
Simulation wizard
Use this route when the task is to prepare, configure, launch, or diagnose an AlpaSim simulation run. It owns workspace extras, public prerequisites, Hydra composition, scene/cache selection, deployment choice, capacity/timing knobs, run-directory interpretation, and Prometheus setup. It does not own microservice implementation/event-loop details, model/plugin contracts, ASL evaluation, controller/physics/traffic internals, or protobuf development. Route those topics to runtime-services, drivers-and-plugins, evaluation-and-logs, control-physics-traffic, or grpc-and-developer-tools.
Operating rules
- Work from an AlpaSim checkout and use its own
uv.lock; do not assume a bare rootuv syncinstalls packages. - Treat
wizard.dry_run=trueas command/deployment dry-run only: wizard context creation still validates catalogs, creates cache metadata, and may download missing scenes. Use a local USDZ directory or an already-populated cache for a no-network probe. - Never paste HF tokens into commands, generated YAML, or logs. A gated scene
or model requires the user's own access and
HF_TOKEN/HF_HOME setup. - Generate configs before launching unfamiliar or expensive deployments. Use
wizard.run_method=NONEfor a manual Compose/debug workflow; usewizard.dry_run=trueto print deployment commands without starting them. - Preserve the resolved
wizard.log_dir. It is the source of generated configs, service logs, rollouts, evaluation products, and telemetry.
Quick paths
- First local run: install the
wizardextra, verify Docker/NVIDIA/HF/scene prerequisites, then rundeploy=local topology=1gpu driver=vavamwith an explicitwizard.log_dir. - Config/catalog check: run
alpasim_check_configwith the same deploy, topology, driver, and scene overrides. This queries scene metadata but does not launch services. - Compose generation only: add
wizard.run_method=NONE; afterward rundocker compose -f <log_dir>/docker-compose.yaml up --exit-code-from runtime-0from the generated directory. - Cluster: choose a site-specific
deployand an8gpu_*topology through the site's approvedsbatchwrapper. Scheduler submission is an external, credentialed action; this skill never autonomously submits it. - Video model: use
deploy=managed_flashdreamsonly with a locally builtflashdreams-alpasim:local, ordeploy=external_video_modelwith an externally reachable renderer address. Pair single-view driver presets with+chunking=8frame; do not add ad-hoc camera overrides.
Core workflow
- Install and preflight. Choose
uv sync --extra wizardfor wizard-only work oruv sync --extra allfor a full core checkout. Compile protobufs when service imports need them. Checkuv, Docker Compose, NVIDIA Container Toolkit/CUDA host compatibility,cargoif building workspace utilities, and HF gated-dataset access. Run the bundled read-only prerequisite probe before changing the environment; see troubleshooting. - Select exactly one scene source. Use
scenes.scene_ids=[...],scenes.test_suite_id=public_2601(recommended broad NuRec suite),public_2601_video_model(single-view video-model subset),public_2604, orpublic_2507for historical reproduction. For local artifacts usescenes.local_usdz_dir=<dir>; the wizard scans*.usdz, reads eachmetadata.yaml, creates an in-memorylocalsuite, and uses that directory as the mounted cache. Do not set incompatiblescene_idsandtest_suite_id; cap withscenes.limit_to_first_n=N. - Compose Hydra groups. Supply
deploy,topology, anddriverwhen launching the managed driver path. Optional groups includecontroller,trafficsim,physics,cameras,chunking,driver_source, and experiment presets. Use+only for optional keys (for example+chunking=8frameor+runtime.renderer.video_model_config.return_hdmap_frames=true). The complete group inventory and field ownership are in the CLI reference and configuration. - Check before launch. Run
alpasim_check_configwith the intended overrides. Then usewizard.run_method=NONEfor generateddocker-compose.yaml, resolved YAML, network addresses, and service commands. Inspect mounts, image tags, GPU assignment, scene paths, external endpoints, andassert_zero_decision_delaybefore a real run. - Choose deployment.
deploy=localuses Docker Compose and the default NuRec renderer.managed_flashdreamsmanages a local video-model container;external_video_modelomits the renderer and addswizard.external_services.renderer=[host:port]. Slurm and direct Enroot require a site wrapper, an active allocation (Enroot), image caches, and cluster-specific permissions. Details and safe boundaries are in deployment. - Tune a bounded run. Start with one scene, one rollout, and the smallest supported topology. Keep service capacities balanced. Use the timing formula in configuration, not rounded frequencies, before changing camera/control cadence. Video-model chunk timing has its own constraints.
- Launch and observe. Use
uv run alpasim_wizard ...for a managed run. For one-shot manual Compose, use--exit-code-from runtime-0; the runtime exits while backing services remain servers. Forwizard.run_mode=SERVER, wait forgenerated-runtime-server.yaml's endpoint to accept connections before submitting client RPCs. Inspect telemetry and outputs using scenes and results and telemetry. - Recover deliberately. Preserve the run directory and first error. For an incomplete run, use the site's approved resume/requeue path and enable autoresume only after confirming the original resolved config and scene split. Do not delete caches or rerun a gated download blindly.
Canonical command templates
# wizard-only environment; run at checkout root
uv sync --extra wizard
# metadata/config check; no services launched
uv run alpasim_check_config deploy=local topology=1gpu driver=vavam \
scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/check
# generate Compose/configs without executing services
uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \
scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/generated \
wizard.run_method=NONE
# one-shot default NuRec simulation
uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \
scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/vavam
# safe command-only deployment probe (still needs local/cache-resolvable scenes)
uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \
scenes.local_usdz_dir=./local-usdz wizard.log_dir=./runs/dry \
wizard.dry_run=true
For exact options, output trees, deployment variants, timing math, telemetry, and recovery, follow the bundled references. They are intentionally checkout-independent and contain no private environment paths.
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).