BotManifold
Tutorial

Course: End-to-end driving

A course path through the tutorial for engineers who know modular driving stacks: from perception, prediction and planning modules to driving vision-language-action models like Alpamayo-R1.

Who this course is for

You have built or worked with a modular driving stack: perception produces an object list, prediction forecasts each agent, a planner searches under rules and costs, and a safety layer checks the result. The newest driving systems replace much of that with models trained end to end on driving data, and the newest of those are vision-language-action models (VLAs) that also reason in text. This course takes you from the first to the second. It starts from the stack you know, rebuilds each part as a learned component with code you can run, and ends with Alpamayo-R1, an open driving VLA, taken apart.

How each module works

Every module follows the same pattern:

  • a box at the top with the study time, what you will be able to do afterwards and what to read first;
  • the explanation, with figures and the PyTorch code it describes (each piece is tested, and the numbers quoted in the text come from running it);
  • Check yourself questions, with worked answers you can open once you have tried them;
  • a short quiz that gives feedback as soon as you choose.

The code runs on a laptop CPU with uv run --group tutorial python -m libs.tutorial.<module>.

Most modules also have a lab: the module's code with its key functions left for you to write, graded by the same tests that check the reference code. The syllabus lists each module's lab, and Course labs explains how they work. The course ends with a capstone: ship a learned car-following driver behind a safety envelope, graded by tests and a written safety case.

Background you need

You should be comfortable training a neural network with gradient descent and know what a loss, a batch and an embedding are. The course uses four machine-learning ideas throughout: attention, images and text as one token sequence, flow matching and policy gradients. Section 0 covers each in a short toolkit page with a quiz; each page links to the full module if you want the details.

Syllabus

About 23 hours of study in ten sections.

0. Toolkit

The four machine-learning ideas the rest of the course is built on, in short form. Skip any you know. About 2 hours.

1. From modular stacks to end-to-end

Why learned driving replaces hand-designed interfaces, and what carries over from a modular career. About 35 minutes.

ModuleTimeLab
From modular stacks to end-to-end driving35 minmodular_e2e

2. Perceiving the scene

How cameras, lidar, radar, maps and ego state become features, and how detections become tracks. About 2 hours.

ModuleTimeLab
Sensor encoders for driving55 minsensor_encoders
Camera geometry and object queries35 mingeometry
State estimation and tracking35 minstate_estimation

3. Data and labels

Where driving data and labels come from, how to check them, and how to find the rare scenes. About 50 minutes.

ModuleTimeLab
Driving data and labels50 minlabel_quality

4. Learning to drive from demonstrations

Imitation and its failure modes, vehicle models and planners, predicting other drivers, and giving the policy a route. About 3 hours.

5. Driving VLAs

Vision-language-action models, reasoning, Alpamayo-R1 taken apart in the paper and in the code, the line of papers that led to it, and how actions become tokens. About 3.5 hours.

6. Beyond imitation

Reinforcement learning with driving rewards, world models that imagine the future, and keeping old skills while learning new ones. About 2.5 hours.

7. Testing a driving model

Metrics, open versus closed loop, simulation, and the data engine that turns failures into training data. About 80 minutes.

8. Safety and shipping

Uncertainty and monitors, safety envelopes and evidence, and fitting the model into an onboard latency budget with adapters and quantization. About 3.5 hours.

9. Capstone

Build a mini driving VLA end to end, then ship a learned car-following driver with a safety envelope, graded by tests and a written safety case. About 4 hours.

After the course

  • Read the Alpamayo-R1 paper with the reading list questions beside you.
  • Do the practices: predict-then-run experiments and, if you have a 24 GB GPU and access to the gated weights, the released model.
  • Use the glossary as a reference.

On this page