The Rise of SLMs (Small Language Models): Phi-4, Gemma 2, and SmolLM

A small processor beside a laptop.

Where small language models fit

Small language models are worth evaluating for bounded tasks such as classification, short summaries and structured extraction. Start with examples from your own workflow and compare them with a baseline before committing to a model.

Models to compare

How to benchmark a model locally

Use the same prompts, output limits and scoring criteria for each model. Record the device, runtime, quantization format and context length. Measure time to first token, generation speed, peak memory and task accuracy. Report the test conditions beside the results so another team can repeat the comparison.

Start with the smallest model that meets your quality threshold. If longer inputs increase memory use or lower accuracy, test a shorter prompt or compare a larger model on the same tasks.

Check privacy across the workflow

Local inference can keep prompts off a hosted model endpoint. Review what the surrounding application sends to telemetry, logs and third-party integrations. Use representative, non-sensitive examples for initial testing and verify your organization’s data-handling requirements before deployment.

Some recommendations may include affiliate links. Read the disclosure next to each tool and verify current details with its provider.

Previous article:
Next article: