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 root uv sync installs packages.
- Treat
wizard.dry_run=true as 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=NONE for a manual Compose/debug workflow; use
wizard.dry_run=true to 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
wizard extra, verify Docker/NVIDIA/HF/scene
prerequisites, then run deploy=local topology=1gpu driver=vavam with an
explicit wizard.log_dir.
- Config/catalog check: run
alpasim_check_config with 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 run
docker compose -f <log_dir>/docker-compose.yaml up --exit-code-from runtime-0 from the generated directory.
- Cluster: choose a site-specific
deploy and an 8gpu_* topology through the
site's approved sbatch wrapper. Scheduler submission is an external,
credentialed action; this skill never autonomously submits it.
- Video model: use
deploy=managed_flashdreams only with a locally built
flashdreams-alpasim:local, or deploy=external_video_model with 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 wizard for wizard-only
work or uv sync --extra all for a full core checkout. Compile protobufs
when service imports need them. Check uv, Docker Compose, NVIDIA Container
Toolkit/CUDA host compatibility, cargo if 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,
or public_2507 for historical reproduction. For local artifacts use
scenes.local_usdz_dir=<dir>; the wizard scans *.usdz, reads each
metadata.yaml, creates an in-memory local suite, and uses that directory
as the mounted cache. Do not set incompatible scene_ids and
test_suite_id; cap with scenes.limit_to_first_n=N.
- Compose Hydra groups. Supply
deploy, topology, and driver when
launching the managed driver path. Optional groups include controller,
trafficsim, physics, cameras, chunking, driver_source, and
experiment presets. Use + only for optional keys (for example
+chunking=8frame or +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_config with the intended
overrides. Then use wizard.run_method=NONE for generated
docker-compose.yaml, resolved YAML, network addresses, and service
commands. Inspect mounts, image tags, GPU assignment, scene paths, external
endpoints, and assert_zero_decision_delay before a real run.
- Choose deployment.
deploy=local uses Docker Compose and the default
NuRec renderer. managed_flashdreams manages a local video-model container;
external_video_model omits the renderer and adds
wizard.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. For wizard.run_mode=SERVER,
wait for generated-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.
1---2name: simulation-wizard3description: "Install and operate AlpaSim's Hydra simulation wizard: select4 scenes and drivers, validate configs, generate or run Docker/Slurm5 deployments, tune timing/topology, and inspect run telemetry and outputs."6disable-model-invocation: true7metadata:8 source: https://skillmd.com/skills/vectorspacelab/simulation-wizard9 disco-role: operating10license: Apache 2.011---1213# Simulation wizard1415Use this route when the task is to prepare, configure, launch, or diagnose an16AlpaSim simulation run. It owns workspace extras, public prerequisites, Hydra17composition, scene/cache selection, deployment choice, capacity/timing knobs,18run-directory interpretation, and Prometheus setup. It does **not** own19microservice implementation/event-loop details, model/plugin contracts, ASL20evaluation, controller/physics/traffic internals, or protobuf development.21Route those topics to [runtime-services](../runtime-services/SKILL.md),22[drivers-and-plugins](../drivers-and-plugins/SKILL.md),23[evaluation-and-logs](../evaluation-and-logs/SKILL.md),24[control-physics-traffic](../control-physics-traffic/SKILL.md), or25[grpc-and-developer-tools](../grpc-and-developer-tools/SKILL.md).2627## Operating rules28291. Work from an AlpaSim checkout and use its own `uv.lock`; do not assume a30 bare root `uv sync` installs packages.312. Treat `wizard.dry_run=true` as command/deployment dry-run only: wizard32 context creation still validates catalogs, creates cache metadata, and may33 download missing scenes. Use a local USDZ directory or an already-populated34 cache for a no-network probe.353. Never paste HF tokens into commands, generated YAML, or logs. A gated scene36 or model requires the user's own access and `HF_TOKEN`/HF_HOME setup.374. Generate configs before launching unfamiliar or expensive deployments. Use38 `wizard.run_method=NONE` for a manual Compose/debug workflow; use39 `wizard.dry_run=true` to print deployment commands without starting them.405. Preserve the resolved `wizard.log_dir`. It is the source of generated41 configs, service logs, rollouts, evaluation products, and telemetry.4243## Quick paths4445- First local run: install the `wizard` extra, verify Docker/NVIDIA/HF/scene46 prerequisites, then run `deploy=local topology=1gpu driver=vavam` with an47 explicit `wizard.log_dir`.48- Config/catalog check: run `alpasim_check_config` with the same deploy,49 topology, driver, and scene overrides. This queries scene metadata but does50 not launch services.51- Compose generation only: add `wizard.run_method=NONE`; afterward run52 `docker compose -f <log_dir>/docker-compose.yaml up --exit-code-from53 runtime-0` from the generated directory.54- Cluster: choose a site-specific `deploy` and an `8gpu_*` topology through the55 site's approved `sbatch` wrapper. Scheduler submission is an external,56 credentialed action; this skill never autonomously submits it.57- Video model: use `deploy=managed_flashdreams` only with a locally built58 `flashdreams-alpasim:local`, or `deploy=external_video_model` with an59 externally reachable renderer address. Pair single-view driver presets with60 `+chunking=8frame`; do not add ad-hoc camera overrides.6162## Core workflow63641. **Install and preflight.** Choose `uv sync --extra wizard` for wizard-only65 work or `uv sync --extra all` for a full core checkout. Compile protobufs66 when service imports need them. Check `uv`, Docker Compose, NVIDIA Container67 Toolkit/CUDA host compatibility, `cargo` if building workspace utilities,68 and HF gated-dataset access. Run the bundled read-only69 [prerequisite probe](scripts/check_prerequisites.py) before changing the70 environment; see [troubleshooting](references/troubleshooting.md).712. **Select exactly one scene source.** Use `scenes.scene_ids=[...]`,72 `scenes.test_suite_id=public_2601` (recommended broad NuRec suite),73 `public_2601_video_model` (single-view video-model subset), `public_2604`,74 or `public_2507` for historical reproduction. For local artifacts use75 `scenes.local_usdz_dir=<dir>`; the wizard scans `*.usdz`, reads each76 `metadata.yaml`, creates an in-memory `local` suite, and uses that directory77 as the mounted cache. Do not set incompatible `scene_ids` and78 `test_suite_id`; cap with `scenes.limit_to_first_n=N`.793. **Compose Hydra groups.** Supply `deploy`, `topology`, and `driver` when80 launching the managed driver path. Optional groups include `controller`,81 `trafficsim`, `physics`, `cameras`, `chunking`, `driver_source`, and82 experiment presets. Use `+` only for optional keys (for example83 `+chunking=8frame` or `+runtime.renderer.video_model_config.return_hdmap_frames=true`).84 The complete group inventory and field ownership are in85 the [CLI reference](references/cli-reference.md) and86 [configuration](references/configuration.md).874. **Check before launch.** Run `alpasim_check_config` with the intended88 overrides. Then use `wizard.run_method=NONE` for generated89 `docker-compose.yaml`, resolved YAML, network addresses, and service90 commands. Inspect mounts, image tags, GPU assignment, scene paths, external91 endpoints, and `assert_zero_decision_delay` before a real run.925. **Choose deployment.** `deploy=local` uses Docker Compose and the default93 NuRec renderer. `managed_flashdreams` manages a local video-model container;94 `external_video_model` omits the renderer and adds95 `wizard.external_services.renderer=[host:port]`. Slurm and direct Enroot96 require a site wrapper, an active allocation (Enroot), image caches, and97 cluster-specific permissions. Details and safe boundaries are in98 [deployment](references/deployment.md).996. **Tune a bounded run.** Start with one scene, one rollout, and the smallest100 supported topology. Keep service capacities balanced. Use the timing formula101 in [configuration](references/configuration.md), not rounded frequencies,102 before changing camera/control cadence. Video-model chunk timing has its own103 constraints.1047. **Launch and observe.** Use `uv run alpasim_wizard ...` for a managed run.105 For one-shot manual Compose, use `--exit-code-from runtime-0`; the runtime106 exits while backing services remain servers. For `wizard.run_mode=SERVER`,107 wait for `generated-runtime-server.yaml`'s endpoint to accept connections108 before submitting client RPCs. Inspect telemetry and outputs using109 [scenes and results](references/scenes-and-results.md) and110 [telemetry](references/telemetry.md).1118. **Recover deliberately.** Preserve the run directory and first error. For112 an incomplete run, use the site's approved resume/requeue path and enable113 autoresume only after confirming the original resolved config and scene114 split. Do not delete caches or rerun a gated download blindly.115116## Canonical command templates117118```bash119# wizard-only environment; run at checkout root120uv sync --extra wizard121122# metadata/config check; no services launched123uv run alpasim_check_config deploy=local topology=1gpu driver=vavam \124 scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/check125126# generate Compose/configs without executing services127uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \128 scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/generated \129 wizard.run_method=NONE130131# one-shot default NuRec simulation132uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \133 scenes.scene_ids='[clipgt-<scene-id>]' wizard.log_dir=./runs/vavam134135# safe command-only deployment probe (still needs local/cache-resolvable scenes)136uv run alpasim_wizard deploy=local topology=1gpu driver=vavam \137 scenes.local_usdz_dir=./local-usdz wizard.log_dir=./runs/dry \138 wizard.dry_run=true139```140141For exact options, output trees, deployment variants, timing math, telemetry,142and recovery, follow the bundled references. They are intentionally143checkout-independent and contain no private environment paths.