Own Weights

How to get the fastest LLM inference for one task

How to get the fastest LLM inference for one task: pick a model trained for that job, measure tokens per second under load, and serve it close to your data.

Updated

The fastest LLM inference for one task usually comes from a smaller model trained on that task and served with batching set for throughput. A general model is built to handle every possible request, so much of its capacity sits idle on your job. Own Weights trains these task models, and the method below works for any model you test.

Speed has three parts: how soon the first token appears, how many tokens per second the model writes, and how many requests one setup can handle at once. A vendor who quotes only one of these is leaving out the other two, so ask for all three before you compare.

Why a narrow model can answer faster

A model that only pulls effective dates and governing law out of vendor agreements has no reason to spend computation on general knowledge in every call. Less computation per token leaves more room for tokens per second. Training also moves the output format and the domain rules into the model’s weights, so the prompt can stay short. Every token in a long system prompt is processed on every call, which means a short prompt helps speed too.

Smaller is not automatically better. The real test is whether the smaller model still gets the answer right on your documents. A fast model that fails that test is only a fast way to be wrong.

Measure the three parts of speed

Tokens per second is the number most vendors publish, and it is useful. It hides three things:

  • Time to first token decides how a person feels about a chat box or a form that waits on a result.
  • Queueing decides what happens when a burst of jobs arrives at once. A fast model with no free slots is slow to the person who sent the job.
  • Output length decides when the job finishes. A model that writes long answers can look fast per token and still finish late.

For more on the last two, read tokens per second, explained and throughput vs latency. Concurrency is covered in concurrency in LLM serving.

Reasoning models add output you may not see. Hidden thinking tokens take time to produce and are billed, so count them in every speed test. See reasoning tokens.

What our two tiers measured

Our two tiers answer different speed questions. One request at a time, the Standard tier writes about 174 output tokens per second and starts in about 0.3 seconds, and the Accuracy tier writes about 90 and starts in about 0.5 seconds. With 32 requests running at once, Standard handles 2.7x more documents an hour, so it is the faster pick whenever it is accurate enough for your work.

If Standard clears your bar on your own test set, it is the faster pick. If it misses, Accuracy is the next step, at lower throughput.

Compare on the same test

Frontier APIs are the usual first comparison. Run every candidate on the same inputs, with the same output limit and the same concurrency, or the speed numbers do not tell you anything. Speed figures on vendor pages describe their setup, not yours.

Batch processing from major API vendors costs less than live calls, but results come back later. It does not make a live call faster, so use it only for work that can wait. Batch API vs realtime compares the two. If speed and cost both matter, the LLM cost calculator gives a starting estimate.

Common mistakes in speed tests

  • Comparing models with different output limits. A model allowed long answers takes longer to finish, so the test measures the limit, not the model.
  • Testing one request at a time. A single request shows the best case. Deploy for the burst you will really see.
  • Ignoring wrong answers. A retry or a human review adds time that a speed chart never shows. Count it.
  • Long prompts. Prompt length adds time before the first token. Low-latency LLM covers how to keep that wait short.
  • Skipping the format check. If the answer must be valid JSON, check that the format holds under load, not just in one test. Structured output speed has the details.

A checklist for your fastest setup

  1. Collect real documents with known correct answers, and set some aside that no model trains on.
  2. Score the model you use today first, so you have a baseline.
  3. Run each candidate with the same inputs, output limit and concurrency.
  4. Record time to first token, tokens per second and finish time at your real burst size.
  5. Count retries and review time for every wrong answer.
  6. Choose the smallest model that clears your accuracy bar, then tune batching for throughput.

Where it runs matters too. A model in your own environment can sit close to the systems that call it. For setup choices, see LLM in your own cloud.

If you want to know which of your calls would gain most from a model trained for that task, start with our free audit. It maps your AI spend by task from your code and invoices, so you can see where speed and cost are going. If you want to walk through it together, book a call.

Questions

What is the fastest LLM for inference?

No single model is fastest for every job. The fastest option is usually the smallest model that still passes your own test, served with batching set for throughput. Check the answers on your data before you choose a model by speed alone.

Is tokens per second a good way to compare inference speed?

It is a useful number, but it does not show time to first token, queueing under load, or how long the output runs. Compare models at the same concurrency, with the same prompts and output limits, or the numbers do not mean much.

Does a smaller model always answer faster?

Usually it generates tokens faster. A model that fails your test costs more in retries and review time, though, so measure accuracy and speed together. A fast answer that is wrong is not a win.