Engineering brief

Your LLM Bill Is a Model Selection Problem

AI Engineer2 min read · saves 29 min

At a glance

Relevance
Practical value
Warnings
None

Stop defaulting to large models. A 'prototype big, deploy small' approach evaluates smaller models against a golden dataset; Llama 3.2 matched Claude on summarization after prompt engineering, eliminating per-call inference costs.

Moving inference to on-device SLMs cuts costs, latency, and security risks, but requires rigorous evaluation to ensure quality doesn't regress.

Summary

Most teams default to large foundation models for every AI task, incurring unnecessary costs, latency, and security risks. Smaller language models (SLMs) can handle many features at a fraction of the cost, often on-device. This shift saves significant inference spend, especially as agentic workflows consume tokens faster than prices drop.

The real bottleneck isn't model capability but evaluation discipline. Rachel's 'prototype big, deploy small' framework: prove feasibility with a large model, create a golden dataset, then evaluate smaller models like Llama 3.2 vs. Claude using Phoenix. The smallest model meeting accuracy and latency thresholds—the 'SAGE' model—often performs comparably after prompt engineering.

On-device inference eliminates per-call costs and reduces latency but shifts energy consumption to users' devices. Model selection isn't one-time; evals must be integrated into CI/CD to prevent regressions. The approach works best for bounded tasks like summarization where accuracy is not mission-critical.

The video reveals small models respond better to few-shot examples than to explicit constraints. Also, using Claude as a judge biased results; human evaluation or A/B testing is essential. Engineering leaders should audit LLM calls to offload tasks to local models, potentially slashing inference costs.

Watch the video

This video is blocked due to your privacy settings. To watch this video, please accept YouTube marketing cookies.

Related breakdowns

Get TL;DW

Too Long; Didn't Watch.

A concise breakdowns of the AI and devtools videos that actually matter for engineering leaders.

Free. Weekly. No hype.

Video and thumbnails remain the property of their respective creators. tldw.news provides editorial analysis, commentary, and discovery links to original content.