# 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 [![HuggingFace](https://img.shields.io/badge/πŸ€—%20Model-Alpamayo--R1--10B-blue)](https://huggingface.co/nvidia/Alpamayo-R1-10B) [![arXiv](https://img.shields.io/badge/arXiv-2511.00088-b31b1b.svg)](https://arxiv.org/abs/2511.00088) [![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](./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.