01.04

Picking the smallest model that passes

skillmaxingInference EngineeringPicking the smallest model that passes
Visual lesson

Picking the smallest model that passes

Included with Pro · 4:26
Lessons · 1,077 words

The cheapest inference optimization happens before you touch a GPU: serve a smaller model. Most techniques later in this course, from quantization to speculative decoding, win a factor of a few at best. Moving from an 8B model to a 1.5B model changes weight memory, compute per token, and the ceiling on decode speed by more than five times, all at once.

The catch is quality, and the answer is a test. Decide what "good enough" means as a number on an evaluation set built from your own traffic, then try candidates from smallest to largest and ship the first one that passes. The rest of this lesson is the arithmetic that makes the prize concrete and the details that make the test trustworthy.

Pro

Continue reading

Pro unlocks every video lesson, the full notes, worked sizing and cost calculations, and runnable configs across the Inference Engineering course, from GPUs and kernels to quantization, speculative decoding, disaggregation and production autoscaling.

Unlock full access to
Python with AIInference EngineeringAI researchComplete system design
30% off with LAUNCH30first payment
Buy now
View all plans ·Already Pro? Sign in