Drivers and plugins

From VectorSpaceLab/AREX-Skill · View interactive version

Drivers and plugins is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Select, configure, inspect, and extend AlpaSim ego drivers and model plugins while preserving camera, trajectory, asset, and optional-backend contracts.

How to use this skill

Skill file

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

VAM policy. Choose vavam_video_model only when the renderer returns the

recorded f-theta view and driver-side rectification is intended.

four-camera, temporal VLA presets. Use alpamayo1_5_1cam for 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.

its checkpoint are installed.

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

  1. Inspect the installed registry before editing YAML. Run

python scripts/check_driver_plugins.py from this skill, or the installed

driver/plugin checker, or the installed

alpasim-info command. Confirm the requested model_type is present; a

config name alone does not install a model.

  1. 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.

  1. 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: cuda is 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.

  1. 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.

  1. Validate policy output before a run. Models return candidate poses in

rig coordinates (x forward, y left, z up); 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.

  1. 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

fields are checkpoint_path and device; VAM additionally requires

tokenizer_path. image_decode_device: cuda cannot be combined with

rectification because rectification operates on host images.

the temporal frame count per camera; subsample_factor selects older frames

from the frame cache; max_batch_size is an inference-worker bound, not a

guarantee that the model fits in VRAM. output_frequency_hz must match the

model's action spacing when the implementation does not resample.

command-based policies. The driver chooses the first route waypoint at least

min_lookahead_distance ahead; positive rig-frame lateral displacement over

command_distance_threshold means LEFT, negative means RIGHT, otherwise

STRAIGHT. Alpamayo 1.5 and 2 presets intentionally disable this path.

map. Use it for video-model output consumed by a pinhole-trained policy, not

for a renderer that already emits pinhole images.

candidate is sampled. ALWAYS_FIRST needs no previous plan; CLOSEST_3D and

CLOSEST_LATERAL require 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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.