alpamini: A 3x Faster Version of NVIDIA's Alpamayo 2 Edge Autopilot
2 min read
alpamini is an optimized version of the nvidia/Alpamayo2-Edge autonomous driving model (~2.68B parameters) built by independent developer Rohit-R-Rao. The model takes input from 6 cameras, 22 frames of motion history, and a navigation command, and outputs a trajectory for the next 6.4 seconds along with a text rationale for its decision. Through visual encoder compression, past frame caching, and reasoning generation in a single pass (one-shot instead of step-by-step token generation), the model runs 2.8 to 3.3 times faster than the original on an RTX 5090 without quantization or TensorRT. It is ideal for autonomous driving researchers and driving simulator developers.
Key features
- Up to 10.6–10.9 Hz acceleration: Decision-making time drops from 264–305 ms down to 92–94 ms in PyTorch bf16 format, while compute load decreases from 23.3 to 6.6 TFLOP.
- Lightweight vision tower and caching: The vision encoder (27 blocks) features reduced layer widths and rank 64 adapters, retains only 25% of past frame tokens, and reuses features from previously processed frames.
- One-shot reasoning generation: Instead of slow autoregressive text generation, the model fills 40 trainable slots in a single bidirectional pass using a LoRA (low-rank adaptation) with rank 128.
- Original-level accuracy: Evaluated on held-out recordings and in the AlpaSim simulator, trajectories match the baseline model and show lower lateral deviation in several scenes.
What you can do
- Run real-time autonomous driving simulations at 10 Hz in AlpaSim and similar research environments.
- Research acceleration methods for VLA (Vision-Language-Action) models in robotics without losing control accuracy via pruning and one-shot decoding.
- Test trajectory planning on the PhysicalAI-AV dataset using a single consumer-grade RTX 5090 graphics card.
Example
import alpamini
model = alpamini.load() # загружает nvidia/Alpamayo2-Edge и веса alpamini
out = alpamini.predict(model, raw_sample) # входной словарь формата alpamayo2_edge
out["xyz"] # траектория (1, 64, 3) на 6,4 с при 10 Гц
out["cot_text"] # текст рассуждений моделиRead more
DetailsMetrics (RTX 5090, bf16): latency 92–94 ms vs. 264–305 ms for original; GT FDE on 132 samples is 4.28 m vs. 4.60 m; average score across 9 AlpaSim scenes is 1.00 vs. 0.97.
Requirements: peak VRAM usage around 5.6 GiB, access to the base
nvidia/Alpamayo2-Edge model, and the flash-attn==2.8.3 library.Limitations: tested only offline and in simulation on the PhysicalAI-AV camera configuration, not meant for real roads; one-shot reasoning text may contain artifacts (this does not affect the trajectory itself).








Comments