Frye compares GPU knowledge to database literacy: most developers do not build databases, but they benefit from knowing how indexes affect queries. As open models and tools for running them improve, AI engineers may need to operate models more directly. His short version is to use tensor cores, which perform matrix multiplication.
What every AI engineer needs to know about GPUs
Speaker
Charles Frye of Modal explains what AI engineers need to know about GPUs at an AI Engineer talk.
Frye says GPUs are built to maximize throughput, especially computation, rather than minimize the time for one operation. He traces the shift away from faster clock speeds to the early 2000s and describes parallelism and concurrency as ways to keep hardware busy. On an H100, he cites more than 16,000 parallel threads and context switching each clock cycle.
GPUs can perform far more arithmetic on data than they can move from memory, so Frye recommends paying attention to arithmetic intensity. In his inference example, processing an 8-billion-parameter FP8 model moves about 8 GB and does roughly 60 billion floating-point operations. Decoding can be less efficient because the model weights must be read again for each step.
Frye argues that generating multiple outputs from a small model can make better use of GPU compute, especially when a verifier can select good results. He describes reproducing a result where Llama 3 18B matched GPT-4o on a task with 100 generations. Tensor cores are designed for low-precision matrix multiplication, so batching samples or tokens can turn matrix-vector work into more efficient matrix-matrix operations.
Frye suggests testing whether a smaller model can run on one GPU and then be scaled out to meet quality needs. He points listeners to a GPU glossary he wrote at Modal, covering the hardware and software stack with links between concepts such as warp schedulers and streaming multiprocessors. He also describes Modal as a serverless GPU platform for compute-intensive workloads.
Takeaways
- Learn enough about GPU hardware to tell whether your workload uses tensor cores effectively.
- Measure throughput and arithmetic intensity alongside latency when evaluating inference.
- Batch multiple samples or tokens when quality and workload structure allow it.
- Test smaller models with a verifier before assuming a larger model is necessary.
- Use GPU glossary resources to connect hardware concepts with the software stack.
Mentioned in this talk
Search inside this talk
What was claimed 7
- works atCharles Frye works at
Modal
“more generic infrastructure like what we have at Modal”
5:05inHow fast are LLM inference engines anyway?YouTube Verified4 sources· Talk, Web· archived
- feature
Dynamo: Open source software to run open-weight models“open-source software to run them, like Dynamo”
YouTube Unverified1 source· Talk
- feature
H100: Over 16,000 parallel threads
“an H100 can do over 16,000 parallel threads”
YouTube Unverified1 source· Talk
- feature
H100: Context switching happens every clock cycle
“on GPUs, context switching happens literally every clock cycle”
YouTube Unverified1 source· Talk
- metricPatterson's Law: Bandwidth improvement is the square of latency improvement over time
“the bandwidth improvement is actually the square of the latency improvement over time”
YouTube Unverified1 source· Talk
- featureTensor cores: Specialized for low-precision floating-point matrix multiplication
“a giant tensor core specialized for low-precision matrix multiplication”
YouTube Unverified1 source· Talk
- feature
Modal serverless GPU platform: Serverless Python for data-intensive and compute-intensive workloads such as language model inference
“make serverless Python work well for data-intensive and compute-intensive workloads like language model inference”
YouTube Unverified1 source· Talk










