chapter one

1 Introduction to Triton

 

This chapter covers

  • How GPUs accelerate modern workloads
  • What Triton is and why it matters
  • Why Triton bridges the gap between Python and CUDA
  • Where Triton fits in the GPU ecosystem
  • What you’ll learn next in this book

Over the past several years, GPUs have quietly become the engines driving modern computing. Whether it’s training massive language models, rendering photorealistic graphics, or crunching scientific simulations, chances are the real work is happening on a GPU. They’ve even been called the rare earth metals of artificial intelligence, according to NVIDIA, because they are foundational to today’s generative AI era.

If you’ve trained a neural network recently, a GPU likely did most of the heavy lifting. In the last decade, model sizes and training datasets have surged, scaling from thousands of examples in early experiments to billions or even trillions of tokens today. Figure 1.1 shows how training data has grown exponentially over time (on a logarithmic scale).

Figure 1.1 Training data volume grew at a steady 1.2× annual rate between 1950 and 2010, then accelerated to 2.7× annual growth between 2010 and 2025. Source: Epoch AI.
Growth in training data

1.1 The philosophy and foundations of Triton

1.1.1 What is Triton?

1.1.2 When to use Triton

1.2 How Triton fits into the GPU ecosystem

1.2.1 Levels of abstraction in GPU programming

1.2.2 The Python GPU DSL landscape

1.2.3 Triton in the wild: libraries and use cases

1.3 Thinking in parallel : GPU execution model

1.3.1 Concurrency vs parallelism

1.3.2 Why GPUs are designed differently

1.3.3 The GPU execution model

1.4 How GPUs handle data

1.5 Summary

1.6 Exercises