drivers-and-plugins
Select, configure, inspect, and extend AlpaSim ego drivers and model plugins while preserving camera, trajectory, asset, and optional-backend contracts.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- drivers-and-plugins
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Select, configure, inspect, and extend AlpaSim ego drivers and model plugins while preserving camera, trajectory, asset, and optional-backend contracts.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/driver-api.md5.0 KB
- 参考文档references/manual-and-external.md3.8 KB
- 参考文档references/model-overview.md5.6 KB
- 参考文档references/plugin-contract.md4.2 KB
- 参考文档references/troubleshooting.md6.6 KB
- 脚本scripts/check_driver_plugins.py3.4 KB
03 SKILL.md 正文
Drivers and plugins
Use this sub-skill when the task is about which ego policy to run, the model-facing driver configuration, model input/output adaptation, camera rectification, manual/external drivers, or Python plugin discovery. It owns policy and model contracts; it does not own simulation deployment orchestration, service event-loop internals, or protobuf schema details.
Route the request first
- Choose
manualfor interactive keyboard control and a display. - Choose
vamthrough thevavampreset for a single-camera, single-image VAM policy. Choosevavam_video_modelonly when the renderer returns the recorded f-theta view and driver-side rectification is intended. - Choose
alpamayo1,alpamayo1_5, oralpamayo2for their corresponding four-camera, temporal VLA presets. Usealpamayo1_5_1camfor the documented single-view video-model path. Alpamayo policies use route text rather than the discrete waypoint command in the 1.5 and 2 presets. - Choose
alpamayo1_5_recipes_sftonly when the optional recipes package and its checkpoint are installed. - Choose
transfuseronly after installing its separate plugin package and supplying its four-camera checkpoint/config pair.
For a complete command, deployment target, topology, scene, cache, or external renderer setup, continue with simulation-wizard. Read model overview for preset/backend tradeoffs and manual and external for GUI or endpoint workflows. For runtime cadence, service lifecycle, or video chunk scheduling, use runtime-services. For generated stubs and protobuf-level API work, use grpc-and-developer-tools.
Standard driver workflow
- Inspect the installed registry before editing YAML. Run
python scripts/check_driver_plugins.pyfrom this skill, or the installed driver/plugin checker, or the installedalpasim-infocommand. Confirm the requestedmodel_typeis present; a config name alone does not install a model. - Select a matching driver config group. Start from a built-in policy
preset (
driver=vavam,driver=alpamayo1,driver=alpamayo1_5,driver=alpamayo2,driver=manual) or an installed plugin preset. Keep the model's camera count, frame cadence, context length, and output rate aligned with the renderer and runtime. - Set assets and device deliberately. Use a local checkpoint directory or
a documented Hugging Face model ID. Authenticate and pre-cache gated assets
outside the driver process; never put tokens in YAML.
device: cudais a request, not proof of GPU inference: the service falls back to a CPU Torch device when CUDA is unavailable, which is useful for the manual model but is not a CPU substitute for heavyweight VAM/Alpamayo/Transfuser inference. - Validate camera contracts. The session rejects requested logical IDs
absent from the rollout specification. A model also rejects the wrong set
of camera IDs, frame count, or unsupported frame dimensions. Preserve the
documented camera order; do not add
+cameras=...to a video-model preset unless the renderer seed/calibration is changed consistently. - Validate policy output before a run. Models return candidate poses in
rig coordinates (
xforward,yleft,zup); the driver converts the selected candidate to the simulator trajectory. Check output frequency, route semantics, and any candidate-selection settings before enabling optimization or sampling. - Run a bounded import/config smoke check. Load the registry and the Hydra config without instantiating a model when assets or optional backends are unavailable. Treat model-load, VRAM, gated-download, and renderer failures as distinct from YAML or plugin registration failures.
Configuration guardrails
model.model_typeis thealpasim.modelsentry-point name. Required model fields arecheckpoint_pathanddevice; VAM additionally requirestokenizer_path.image_decode_device: cudacannot be combined with rectification because rectification operates on host images.inference.use_camerasis an ordered logical-ID list.context_lengthis the temporal frame count per camera;subsample_factorselects older frames from the frame cache;max_batch_sizeis an inference-worker bound, not a guarantee that the model fits in VRAM.output_frequency_hzmust match the model's action spacing when the implementation does not resample.route.use_waypoint_commandscontrols discrete turn-command derivation for command-based policies. The driver chooses the first route waypoint at leastmin_lookahead_distanceahead; positive rig-frame lateral displacement overcommand_distance_thresholdmeans LEFT, negative means RIGHT, otherwise STRAIGHT. Alpamayo 1.5 and 2 presets intentionally disable this path.rectificationis an explicit per-camera f-theta-to-pinhole compatibility map. Use it for video-model output consumed by a pinhole-trained policy, not for a renderer that already emits pinhole images.trajectory_selectiononly has an effect when more than one Alpamayo candidate is sampled.ALWAYS_FIRSTneeds no previous plan;CLOSEST_3DandCLOSEST_LATERALrequire at least two samples and use the previous selected plan for continuity.
Safe plugin extension
A plugin is an installed Python distribution that registers entry points. A
model implements BaseTrajectoryModel, including from_config, predict,
camera_ids, context_length, and output_frequency_hz, then registers its
factory/class under alpasim.models. A Hydra config package is a separate
alpasim.configs entry point. Install both the model package and config
package before expecting model_type or driver=<name> to resolve.
Use the plugin contract for the exact Transfuser pattern and the driver API for the input/output shape contract. Do not copy weights, upstream repositories, credentialed downloaders, or scheduler launchers into this skill.
Failure recovery
Start with troubleshooting. First classify the failure as registry/import, config/camera contract, asset/auth, backend/VRAM, or deployment/runtime ownership. Fix only the owning layer, then rerun the smallest smoke check. Keep CUDA, containers, FlashDreams, gated Hugging Face assets, and model inference explicitly optional unless their prerequisites are present and verified.
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).