Coding Now – Best AI & Full Stack Courses in Delhi NCR | 100% Placement
Limited Offer: Get 50% OFF on AI & Full Stack Courses
📞 Call Now: +91 9667708830
Back to Generative AI Notes
Topic #211

Model Size

Choosing a model isn't just "pick the biggest one" — larger models tend to be more capable on complex tasks, but cost more, run slower, and are often unnecessary for narrow, well-defined tasks that a smaller model handles just as well.

The Core Tradeoff

Larger ModelSmaller Model
Capability on complex/ambiguous tasksGenerally strongerGenerally weaker on hard reasoning, but often sufficient for narrow tasks
Cost per requestHigherLower — often significantly
LatencySlower per token generatedFaster
Good fit forComplex reasoning, nuanced writing, ambiguous instructionsClassification, simple extraction, well-defined narrow tasks, high-volume low-complexity requests

A Practical Decision Pattern

Task: "Classify this support ticket as billing / technical / general"

Question: does this task genuinely require complex reasoning?
  → No — it's a narrow classification task with clear categories.

Decision: use a smaller, cheaper, faster model. A large flagship
model would work too, but at unnecessary cost and latency for
a task this well-defined.

Many production systems use a mix — a smaller/cheaper model for high-volume, well-defined subtasks, and a larger model reserved for genuinely complex steps. This is often called model selection or "model routing."

Quantization: Shrinking a Model After Training

Beyond choosing a different model entirely, an already-trained model can be quantized — its weights stored at lower numeric precision (see LLM Parameters) — to reduce memory footprint and increase inference speed, typically with a small, measurable quality tradeoff that should be evaluated for your specific use case rather than assumed to be negligible.

Common Mistakes

  • Defaulting to the largest/most expensive available model for every task "to be safe" — this is a common, avoidable cost driver in real production systems
  • Assuming a smaller model will underperform without actually testing it on your specific task — for narrow, well-defined tasks the gap is often smaller than expected
  • Switching to a much smaller model purely for cost savings without re-evaluating output quality on your actual use case

Interview Relevance

"How would you decide which model size to use for a given feature?" is a strong practical-engineering question — a good answer discusses task complexity, cost sensitivity, latency requirements, and testing rather than defaulting to "the newest/biggest model."

Practice Question

You're building a feature that tags 100,000 support tickets per day by category, and a separate feature that drafts nuanced legal contract summaries for 20 documents per day. Which task should use a larger model, and why?

Related Notes

Want to go beyond the notes?

Join CodingNow's Generative AI course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available
💬 Talk to Advisor
1
WhatsApp

Latest from Our Blog

Insights on AI, Data Science, Full Stack & Career

View All Articles →