AlpaSim
AlpaSim is a modular, data-driven autonomous-driving simulator. It orchestrates
renderer, driver, controller, physics, traffic, runtime, and evaluation
services through gRPC. Use this root as a router; read only the focused
sub-skill needed for the task.
Route by intent
- Prepare or run a simulation, compose Hydra overrides, select scenes,
Docker/Slurm deployment, tune GPUs/timing, or inspect telemetry: read
simulation-wizard.
- Understand the event loop, service lifecycle, addresses, daemon mode,
replay, timing validation, renderer caches, or video-model chunking: read
runtime-services.
- Select or adapt an ego policy, manual/external driver, model input/output,
camera rectification, or plugin entry points/config discovery: read
drivers-and-plugins.
- Inspect ASL logs, extract frames, evaluate/aggregate/re-evaluate runs,
interpret metrics/videos, or use trajectory/geometry utilities: read
evaluation-and-logs.
- Choose MPC, inspect vehicle state, run ground physics, understand CATK
traffic sessions/handover, or classify CUDA/PyG/Warp requirements: read
control-physics-traffic.
- Change protobufs, compile generated stubs, use gRPC clients, inspect
package entry points, or review safe developer/tool workflows: read
grpc-and-developer-tools.
Cross-cutting details are in troubleshooting,
package and backend notes, and
coordinate frames. Run the read-only
environment checker before optional backend work; the
structured routing metadata is consumed
by the specialized repo-skill importer. Check repository provenance before treating this
graph as current for another checkout.
Installation orientation
AlpaSim is a uv workspace. The root project intentionally has no default
runtime dependencies; install only the workspace extra for the chosen workflow:
uv sync --extra wizard # wizard and its transitive core
uv sync --extra all # all core packages, no optional plugin
uv sync --extra all --extra transfuser # core plus the public Transfuser plugin
Use Python 3.11 for the core packages. alpasim_driver currently requires
Python 3.12, so use a compatible environment for driver/model inspection. A
full simulation additionally requires Docker Compose, NVIDIA Container
Toolkit/CUDA, scene artifacts, and often Hugging Face access; a package import
is not proof that those services or assets work.
After changing .proto definitions, compile stubs from the gRPC package with
uv run compile-protos; use the developer-tools route for the safe bundled
compiler and clean/build distinctions. Verify a selected environment with:
python -c "import alpasim_grpc, alpasim_utils, alpasim_runtime, alpasim_wizard"
python -c "from alpasim_grpc.v0 import runtime_pb2, runtime_pb2_grpc"
Operating boundaries
- Keep
HF_TOKEN, external endpoints, private paths, model weights, scene
caches, and scheduler credentials out of prompts, generated YAML, logs, and
skill content. Treat gated scene/model downloads as user-authorized actions.
- Start with config generation and a one-scene/one-rollout plan. Prefer
wizard.run_method=NONE or a read-only checker before containers, network
services, GPU inference, or scheduler submission.
- Preserve resolved run files and the first causal service error. A rollout is
successful only when its
_complete marker and expected evaluation outputs
exist; an ASL file alone is not completion.
- Do not use CPU imports to claim CUDA renderer, Warp, CATK/PyG, or model
inference coverage. The optional backend notes preserve those limits.
- Keep coordinate-frame names explicit:
local, rig, aabb, ecef, and the
estimated/noised frame are not interchangeable. Read the coordinate reference
before changing transforms or service messages.
Verification entry points
The generated graph is intended to support focused, reproducible checks rather
than a default full simulation. Use the verification artifacts outside this
runtime tree when reviewing coverage. Safe native candidates include wizard
config/dispatch, runtime validation/replay, controller, evaluation/ASL,
utilities, plugin registry, and protobuf compilation tests. Full Docker,
NuRec/FlashDreams, gated HF assets, model inference, CATK compiled extensions,
Slurm submission, and large benchmarks remain explicitly conditional.
1---2name: alpasim3description: "Use AlpaSim repository guidance for autonomous-driving simulation4 setup, Hydra wizard runs, runtime services, ego drivers and plugins, ASL5 evaluation, controller/physics/traffic components, gRPC contracts, and6 operational troubleshooting."7disable-model-invocation: true8metadata:9 source: https://skillmd.com/skills/vectorspacelab/alpasim10 disco-role: operating11license: Apache 2.012---1314# AlpaSim1516AlpaSim is a modular, data-driven autonomous-driving simulator. It orchestrates17renderer, driver, controller, physics, traffic, runtime, and evaluation18services through gRPC. Use this root as a router; read only the focused19sub-skill needed for the task.2021## Route by intent2223- **Prepare or run a simulation, compose Hydra overrides, select scenes,24 Docker/Slurm deployment, tune GPUs/timing, or inspect telemetry:** read25 [simulation-wizard](sub-skills/simulation-wizard/SKILL.md).26- **Understand the event loop, service lifecycle, addresses, daemon mode,27 replay, timing validation, renderer caches, or video-model chunking:** read28 [runtime-services](sub-skills/runtime-services/SKILL.md).29- **Select or adapt an ego policy, manual/external driver, model input/output,30 camera rectification, or plugin entry points/config discovery:** read31 [drivers-and-plugins](sub-skills/drivers-and-plugins/SKILL.md).32- **Inspect ASL logs, extract frames, evaluate/aggregate/re-evaluate runs,33 interpret metrics/videos, or use trajectory/geometry utilities:** read34 [evaluation-and-logs](sub-skills/evaluation-and-logs/SKILL.md).35- **Choose MPC, inspect vehicle state, run ground physics, understand CATK36 traffic sessions/handover, or classify CUDA/PyG/Warp requirements:** read37 [control-physics-traffic](sub-skills/control-physics-traffic/SKILL.md).38- **Change protobufs, compile generated stubs, use gRPC clients, inspect39 package entry points, or review safe developer/tool workflows:** read40 [grpc-and-developer-tools](sub-skills/grpc-and-developer-tools/SKILL.md).4142Cross-cutting details are in [troubleshooting](references/troubleshooting.md),43[package and backend notes](references/package-and-backend-overview.md), and44[coordinate frames](references/coordinate-frames.md). Run the read-only45[environment checker](scripts/check_env.py) before optional backend work; the46structured [routing metadata](references/repo-routing-metadata.json) is consumed47by the specialized repo-skill importer. Check [repository provenance](references/repo-provenance.md) before treating this48graph as current for another checkout.4950## Installation orientation5152AlpaSim is a `uv` workspace. The root project intentionally has no default53runtime dependencies; install only the workspace extra for the chosen workflow:5455```bash56uv sync --extra wizard # wizard and its transitive core57uv sync --extra all # all core packages, no optional plugin58uv sync --extra all --extra transfuser # core plus the public Transfuser plugin59```6061Use Python 3.11 for the core packages. `alpasim_driver` currently requires62Python 3.12, so use a compatible environment for driver/model inspection. A63full simulation additionally requires Docker Compose, NVIDIA Container64Toolkit/CUDA, scene artifacts, and often Hugging Face access; a package import65is not proof that those services or assets work.6667After changing `.proto` definitions, compile stubs from the gRPC package with68`uv run compile-protos`; use the developer-tools route for the safe bundled69compiler and clean/build distinctions. Verify a selected environment with:7071```bash72python -c "import alpasim_grpc, alpasim_utils, alpasim_runtime, alpasim_wizard"73python -c "from alpasim_grpc.v0 import runtime_pb2, runtime_pb2_grpc"74```7576## Operating boundaries7778- Keep `HF_TOKEN`, external endpoints, private paths, model weights, scene79 caches, and scheduler credentials out of prompts, generated YAML, logs, and80 skill content. Treat gated scene/model downloads as user-authorized actions.81- Start with config generation and a one-scene/one-rollout plan. Prefer82 `wizard.run_method=NONE` or a read-only checker before containers, network83 services, GPU inference, or scheduler submission.84- Preserve resolved run files and the first causal service error. A rollout is85 successful only when its `_complete` marker and expected evaluation outputs86 exist; an ASL file alone is not completion.87- Do not use CPU imports to claim CUDA renderer, Warp, CATK/PyG, or model88 inference coverage. The optional backend notes preserve those limits.89- Keep coordinate-frame names explicit: `local`, `rig`, `aabb`, `ecef`, and the90 estimated/noised frame are not interchangeable. Read the coordinate reference91 before changing transforms or service messages.9293## Verification entry points9495The generated graph is intended to support focused, reproducible checks rather96than a default full simulation. Use the verification artifacts outside this97runtime tree when reviewing coverage. Safe native candidates include wizard98config/dispatch, runtime validation/replay, controller, evaluation/ASL,99utilities, plugin registry, and protobuf compilation tests. Full Docker,100NuRec/FlashDreams, gated HF assets, model inference, CATK compiled extensions,101Slurm submission, and large benchmarks remain explicitly conditional.