Advanced

Small fine-tuned vs large quantized

Should you fine-tune a 7B model on your data or quantize a 70B model and serve it as-is? The answer depends on your task, your data, and how much you are willing to spend per token.

This is one of those questions that comes up in every deployment conversation, and there is no universal answer. You have a task. You have a GPU budget. Do you take a small model (say, Llama 3.1 8B) and fine-tune it on your domain data? Or do you take a large model (Llama 3.1 70B), quantize it to INT4 to fit on fewer GPUs, and serve it zero-shot or with light prompting?

I have seen teams spend months on the wrong side of this tradeoff. Here is the framework I use to reason about it.

The compute profile is different

First, let us ground the comparison in hardware reality. Using the roofline framework:

So the 8B model is about 2x faster at decode and uses half the memory. The question is whether it can match the quality of the quantized 70B.

When the small fine-tuned model wins

Fine-tuning shines when your task is narrow and well-defined. Some examples:

The general pattern: if you can collect a few thousand high-quality (input, output) pairs for your task, a fine-tuned small model is almost always the better deployment choice. The model learns a compressed version of the task, and you pay less per inference.

When the large quantized model wins

Quantized large models win when the task requires broad knowledge or complex reasoning that a small model simply lacks the capacity for:

The real question

Do not ask "which model is better?" Ask "does my task need capacity or specialization?" Capacity (broad knowledge, reasoning depth) favors large quantized. Specialization (narrow task, consistent format, known distribution) favors small fine-tuned.

The quality/cost frontier

Here is how I think about the tradeoff quantitatively. For any given task, you can plot quality (your eval metric) against cost (dollars per 1M tokens). The frontier looks something like this:

Quality
  ^
  |          * 70B FP16 (2 GPUs)
  |        * 70B INT4 (1 GPU)
  |      * 8B fine-tuned
  |    * 8B base
  |  * 3B fine-tuned
  +-------------------------> Cost ($/1M tokens)
  low cost                    high cost

The fine-tuned small model often sits at a surprisingly good position on this curve: it can match the quality of the quantized large model at a fraction of the cost, if you have the data to fine-tune it. When it does not match, the gap is usually in edge cases and tail distributions that matter for some applications and not others.

The hybrid approach

In practice, many production systems use both. A common pattern is routing:

This gives you the throughput and cost advantages of the small model for most traffic, with the quality backstop of the large model for hard cases. The cache-aware routing ideas apply here too: route to the model that already has relevant context cached.

Quantization quality in practice

Not all quantization is equal, and this matters for the comparison. From my experience with INT8 quantization and GPTQ:

The point is that a "70B INT4" is not one thing. The specific quantization method, calibration data, and group size all affect quality. If you are comparing against a fine-tuned 8B, you need to quantize carefully and measure on your actual task.

Fine-tuning costs and risks

Fine-tuning is not free. Beyond the GPU hours for training, the real costs are:

A distilled model can help here: instead of fine-tuning on human-labeled data, you distill from the large model's outputs on your task distribution, getting some of the quality of the large model at the inference cost of the small one.

My decision framework

Start with the large model prompted for your task. Measure quality and cost. If quality is sufficient and cost is acceptable, ship it. If cost is too high, try quantizing. If quality degrades too much, fine-tune a small model. If you lack data, distill from the large model.

The mistake I see most often is teams jumping straight to fine-tuning without establishing a baseline with the large model. You need to know what "good" looks like before you can optimize for cost. And you need an eval to know whether your optimization worked.

Next: distillation for inference, the technique that lets you transfer knowledge from a large teacher to a small student without human-labeled data.