# alpamayo
**Repository Path**: grang/alpamayo
## Basic Information
- **Project Name**: alpamayo
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-01-07
- **Last Updated**: 2026-01-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# ποΈ Alpamayo-R1
### Bridging Reasoning and Action Prediction for Generalizable Autonomous Driving
[](https://huggingface.co/nvidia/Alpamayo-R1-10B)
[](https://arxiv.org/abs/2511.00088)
[](./LICENSE)
### 1. Install uv (if not already installed)
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
```
### 2. Set up the environment
```bash
uv venv ar1_venv
source ar1_venv/bin/activate
uv sync --active
```
### 3. Authenticate with HuggingFace
The model requires access to gated resources. Request access here:
- π€ [PhysicalAI-Autonomous-Vehicles Dataset](https://huggingface.co/datasets/nvidia/PhysicalAI-Autonomous-Vehicles)
- π€ [Alpamayo-R1-10B Model](https://huggingface.co/nvidia/Alpamayo-R1-10B)
Then authenticate:
```bash
hf auth login
```
Get your token at: https://huggingface.co/settings/tokens
## Running Inference
### Test script
NOTE: This script will download both some example data (relatively small) and the model weights (22 GB).
The latter can be particularly slow depending on network bandwidth.
For reference, it takes around 2.5 minutes on a 100 MB/s wired connection.
```bash
python src/alpamayo_r1/test_inference.py
```
In case you would like to obtain more trajectories and reasoning traces, please feel free to change
the `num_traj_samples=1` argument to a higher number (Line 60).
### Interactive notebook
We provide a notebook with similar inference code at `notebook/inference.ipynb`.
## Project Structure
```
alpamayo_r1_release/
βββ notebook/
β βββ inference.ipynb # Example notebook
βββ src/
β βββ alpamayo_r1/
β βββ action_space/
β β βββ ... # Action space definitions
β βββ diffusion/
β β βββ ... # Diffusion model components
β βββ geometry/
β β βββ ... # Geometry utilities and modules
β βββ models/
β β βββ ... # Model components and utils functions
β βββ __init__.py # Package marker
β βββ config.py # Model and experiment configuration
β βββ helper.py # Utility functions
β βββ load_physical_aiavdataset.py # Dataset loader
β βββ test_inference.py # Inference test script
βββ pyproject.toml # Project dependencies
βββ uv.lock # Locked dependency versions
```
## Troubleshooting
### Flash Attention issues
The model uses Flash Attention 2 by default. If you encounter compatibility issues:
```python
# Use PyTorch's scaled dot-product attention instead
config.attn_implementation = "sdpa"
```
## License
Apache License 2.0 - see [LICENSE](./LICENSE) for details.
## Disclaimer
Alpamayo-R1 is a pre-trained reasoning model designed to accelerate research and development in the autonomous vehicle (AV) domain. It is intended to serve as a foundation for a range of AV-related use cases-from instantiating an end-to-end backbone for autonomous driving to enabling reasoning-based auto-labeling tools. In short, it should be viewed as a building block for developing customized AV applications.
Important notes:
- Alpamayo-R1 is provided solely for research, experimentation, and evaluation purposes.
- Alpamayo-R1 is not a fully fledged driving stack. Among other limitations, it lacks access to critical real-world sensor inputs, does not incorporate required diverse and redundant safety mechanisms, and has not undergone automotive-grade validation for deployment.
By using this model, you acknowledge that it is a research tool intended to support scientific inquiry, benchmarking, and explorationβnot a substitute for a certified AV stack. The developers and contributors disclaim any responsibility or liability for the use of the model or its outputs.