Retrieved article excerpt
Open article · Retrieved 2026-11-11T20:21:36.581811+00:00
[Robotics](https://developer.nvidia.com/blog/category/robotics/)
# Running AV Reasoning Models Within Onboard Compute and Latency Limits
- [L](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Frunning-av-reasoning-models-within-onboard-compute-and-latency-limits%2F)
- [T](https://twitter.com/intent/tweet?text=Running+AV+Reasoning+Models+Within+Onboard+Compute+and+Latency+Limits+%7C+NVIDIA+Technical+Blog+https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Frunning-av-reasoning-models-within-onboard-compute-and-latency-limits%2F)
- [F](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Frunning-av-reasoning-models-within-onboard-compute-and-latency-limits%2F)
- [R](https://www.reddit.com/submit?url=https%3A%2F%2Fdeveloper.nvidia.com%2Fblog%2Frunning-av-reasoning-models-within-onboard-compute-and-latency-limits%2F&title=Running+AV+Reasoning+Models+Within+Onboard+Compute+and+Latency+Limits+%7C+NVIDIA+Technical+Blog)
- E
## AI-Generated Summary
- [NVIDIA Alpamayo 2 Edge](https://huggingface.co/nvidia/Alpamayo2-Edge) is a 2B-parameter adaptive reasoning vision-language-action model designed for real-time operation on NVIDIA DRIVE AGX Thor.
- The model generates Chain-of-Causation reasoning only when needed and uses a diffusion action expert to produce driving trajectories from surround-camera observations and navigation inputs.
- Closed-loop reinforcement learning in [AlpaGym](https://github.com/NVlabs/alpagym) improves driving performance by 48.9% over the best checkpoint without closed-loop RL.
- [AlpaJudge](https://huggingface.co/nvidia/alpajudge) provides human-calibrated evaluation of reasoning quality through reference-based and reference-free variants for different evidence types.
- Three workflows connect the edge model with repeatable improvement: running AlpaJudge on PhysicalAI-AV samples, selecting higher-value training examples, and using reasoning scores as rewards for post-training.
- Deployment recipes in the [Alpamayo Developer Hub](https://github.com/NVlabs/alpamayo-recipes) enable inference optimization with TensorRT and DFlash2, achieving 160-190 ms pixel-to-trajectory latency on DRIVE AGX Thor.
### Next Steps
- Explore the [Alpamayo 2 Edge model](https://huggingface.co/nvidia/Alpamayo2-Edge) on Hugging Face to evaluate its capabilities.
- Explore the [AlpaJudge model](https://huggingface.co/nvidia/alpajudge) on Hugging Face for reasoning evaluation.
- Visit the [Alpamayo developer forum](https://forums.developer.nvidia.com/c/autonomous-vehicles/alpamayo/766) for discussions and developer questions.
Powered by NVIDIA Nemotron. AI-generated content may summarize information incompletely. Verify important information. [Learn more](https://www.nvidia.com/en-us/agreements/trustworthy-ai/terms/)
Autonomous vehicle (AV) developers need reasoning models that can operate within the compute and latency constraints of an onboard system. Larger models provide a foundation for developing these capabilities, but moving them into a vehicle requires additional work to reduce model size, preserve useful reasoning, and validate performance on the target hardware.
[NVIDIA Alpamayo 2 Edge](https://huggingface.co/nvidia/Alpamayo2-Edge) addresses this need with an adaptive reasoning vision-language-action (VLA) model designed for real-time operation on [NVIDIA DRIVE AGX Thor](https://developer.nvidia.com/drive/agx/). Built on the 2B Nemotron-based reasoning backbone of [NVIDIA Cosmos 3 Edge](https://www.nvidia.com/en-us/ai/cosmos/) and paired with a diffusion action expert, it leverages surround-camera observations, temporal context, and navigation inputs to generate Chain-of-Causation (CoC) reasoning and future driving trajectories. It reasons *adaptively*, generating reasoning only when needed, reducing unnecessary token generation and conserving inference compute during routine driving.
Alpamayo 2 Edge is post-trained with closed-loop reinforcement learning (RL) in NVIDIA [AlpaGym](https://github.com/NVlabs/alpagym), improving closed-loop driving performance by 48.9% on top of the best-performing checkpoint without closed-loop RL. Together, these capabilities give developers a strong, edge-ready foundation for bringing reasoning-based driving into an onboard stack.
Making a reasoning model compact enough for onboard deployment introduces a key challenge: preserving the quality of its reasoning and driving behavior as model size is reduced. This requires a way to measure reasoning quality and use that feedback to improve the model. NVIDIA AlpaJudge is the human-calibrated evaluation and reward model used in Alpamayo 2 Edge development to evaluate reasoning traces, select higher-value training data, and provide RL rewards.
This post introduces Alpamayo 2 Edge, explains its inference optimization on DRIVE AGX Thor, and explores three ways to use AlpaJudge in AV development workflows:
- Run AlpaJudge-RB and AlpaJudge-RF on a PhysicalAI-AV sample, inspect their scores, and adapt the evaluation to policy-generated reasoning
- Select training examples that expose useful learning opportunities
- Use human-aligned reasoning scores as rewards for post-training
Together, these workflows connect an edge-oriented driving model with a repeatable process for measuring and improving it.
## Bring reasoning-based driving to the edge
An onboard driving model must interpret a changing scene and produce a useful trajectory within the system’s inference budget. The key question is how much driving and reasoning capability a model retains under that constraint.
Alpamayo 2 Edge architecture. Ego-motion history, multi-resolution camera video, navigation text, and optional visual questions feed motion, video, and language encoders. The Cosmos 3 Edge Reasoner backbone, draft model, and action expert produce adaptive causal reasoning, driving trajectories, and visual question-answering responses.
*Figure 1. Alpamayo 2 Edge processes multi-camera video, ego-motion history, and navigation instructions to generate adaptive causal reasoning and driving trajectories, with support for optional visual question answering*
To balance model capacity and efficiency, Alpamayo 2 Edge leverages multiple new features:
- A 2B-parameter Nemotron-based reasoning backbone, sized for onboard inference
- Adaptive reasoning, reducing unnecessary token generation and conserving inference compute during routine driving
- Offline distillation, training with CoC reasoning autolabels generated by Alpamayo 2 Super
- Closed-loop reinforcement learning post-training in [AlpaGym](https://github.com/NVlabs/alpagym), in which the model learns from the consequences of its actions end-to-end in simulation
- Multi-resolution inputs to efficiently encode surround-view observations online
- Speculative decoding with [DFlash2](https://github.com/z-lab/dflash) to accelerate online reasoning without sacrificing quality
- Recipes for quantization and inference acceleration with NVIDIA TensorRT and NVIDIA TensorRT-Edge-LLM
Figure 2, below, shows how these choices translate into capability, comparing Alpamayo 2 Edge with Qwen-Drive-1.0 across closed-loop driving, open-loop trajectory prediction, and scene understanding and reasoning.
Three benchmark panels compare Alpamayo 2 Edge (2B) with Qwen-Drive-1.0 (4B). Closed-loop driving results show 15.15 versus 0.25 kilometers between at-fault incidents, with a 60× highlight. Open-loop driving results show minimum average displacement errors of 0.53 versus 1.68 meters, where lower is better. Additional charts compare scene understanding and reasoning scores. In virtually all of them, Alpamayo 2 Edge outperforms Qwen-Drive-1.0 (4B).
*Figure 2. Alpamayo 2 Edge (2B) compared with Qwen-Drive-1.0 (4B) across closed-loop driving, open-loop driving, and scene understanding and reasoning benchmarks. Of note, Alpamayo 2 Edge achieves approximately 60× the distance between at-fault incidents in AlpaSim*
Early partner feedback also highlights Alpamayo 2 Edge’s driving performance and inference speed:
*“Within days of getting early access to Alpamayo 2 Edge, we had it running closed-loop in NuRec reconstructions of our own London street recordings. In our early simulation tests, Edge kept its lane in more than twice as many runs as Alpamayo 1.5, recovered from lane offsets about 40% more often, and out of the box planned roughly twice as fast as our hand-tuned Alpamayo 1.5 server on the same GPU.”* *—**Matas Simonavicius, CTO, PORT***
*“Alpamayo 2 Edge demonstrated impressive generalization capabilities, reducing displacement error (minADE) by 13.6% and lateral prediction error (RMSE) at 3 seconds by 46.1% compared to Alpamayo 2 Super in our zero-shot evaluation, despite substantial differences in sensor configurations. Fine-tuning on our own driving data delivered a further 44.2% reduction in displacement error compared to the Alpamayo 2 Edge baseline. Within just a few days, we went from receiving the model to running our first tests on a real vehicle.”* — ***Luca Crotti, co-founder and motion planning lead, Niulinx***
[](https://developer.download.nvidia.com/devblogs/niulinx-police-officer.mp4)
*Video 1. Niulinx’s driving demonstration shows the vehicle stopping for a traffic officer’s signal and yielding to pedestrians at a crosswalk*
*“In less than 48 hours, we made NVIDIA’s Alpamayo 2 Edge run at 10 Hz on AGX Thor for real-time planning.”—* ***Hans Salomonsson, CEO and co-founder,*** ***Embedl***
[](https://developer.download.nvidia.com/devblogs/Embedl.mp4)
*Video 2. Side-by-side comparison of Alpamayo 2 Edge running in PyTorch and with Embedl optimization, showing differences in planning speed, latency, and reasoning output*
The Alpamayo 2 Edge repository’s [inference script](https://github.com/NVlabs/alpamayo2-edge/tree/main/src/alpamayo2_edge/inference.py) shows how the model operates: It takes in surround-view camera observations over time, navigation text, and historical ego-motion to produce CoC reasoning traces and future trajectories.
```
import torch
import transformers
from alpamayo2_edge.checkpoint import load_model
from alpamayo2_edge.load_physical_aiavdataset import load_physical_aiavdataset
from alpamayo2_edge.helper import prepare_model_inputs, to_device
from alpamayo2_edge.models.utils import fuse_traj_tokens
data = load_physical_aiavdataset(**clip)
model, loading_info = load_model("nvidia/Alpamayo2-Edge")
settings = dict(
seed=43,
top_p=0.98,
top_k=None,
temperature=0.6,
num_traj_sets=1,
num_traj_samples=1,
max_generation_length=256,
diffusion_kwargs={"inference_step": 10},
)
prepared = prepare_model_inputs(data, model.config, model.tokenizer)
prepared = to_device(prepared, device="cuda")
"""Seed text and diffusion sampling, then run the model on prepared inputs."""
torch.manual_seed(settings["seed"])
generator = torch.Generator(device="cuda").manual_seed(settings["seed"])
with (
torch.inference_mode(),
torch.autocast(
device_type=torch.device("cuda").type,
dtype=model.dtype,
enabled=model.dtype != torch.float32,
),
):
xyz, rot, _, extra = model.sample_trajectories_from_data(
prepared,
num_traj_sets=settings["num_traj_sets"],
num_traj_samples=settings["num_traj_samples"],
top_p=settings["top_p"],
top_k=settings["top_k"],
temperature=settings["temperature"],
max_generation_length=settings["max_generation_length"],
diffusion_kwargs={**settings["diffusion_kwargs"], "generator": generator},
return_extra=True,
)
```
In particular, note that the model will now produce special `<NOMINAL>` tokens instead of reasoning traces sometimes, indicating routine driving and conserving inference compute.
### Retaining quality during deployment
When downloading the model from Hugging Face, by default, Alpamayo 2 Edge’s weights are represented in B