Tech Tip #16: Use the smallest AI model that does the job

You're using a giant AI model for a tiny job.

Video created by explainapaper.com

The problem

General-purpose generative models get used for classification, extraction and routing that smaller or task-specific models do well. A systematic comparison found multi-purpose generative models orders of magnitude more expensive to run than task-specific ones for the same tasks.

The fix you can use today

  • Start with the smallest model, or a classical method, that meets the quality bar.
  • Route requests: small model by default, large model only for the hard cases.
  • Measure energy per request for each option before you choose.

A UNESCO report found that small models made for one task can cut energy use by up to 90%. GreenCode's own AI uses small, tuned models for the same reason.

Tools that help

  • AI Energy Score (Hugging Face): comparable energy ratings for AI models on common tasks
  • CodeCarbon: a Python package that estimates the energy and CO2 of a run from hardware power and regional grid intensity
  • nvidia-smi: reports the power draw of NVIDIA GPUs from the card's own sensors

How GreenCode helps

GreenCode helps tackle this by routing each request to the smallest component that can handle it, using small fine-tuned models. Retrieval means a model reads only the data it needs. More on this.

Tags

#llm#model-efficiency#inference

Sources

All GreenCode Tech Tips

  • Tip #16
  • For CTOs and technical leads
  • Category AI and machine learning
  • Format short video
GreenCode

Want this checked on your own system? Talk to the GreenCode team.

Get in touch