Brief IA
›

Fine-tuning LLM: GPU costs of $3–10, not $50,000

Research·Tom Levy·

Fine-tuning LLM: GPU costs of $3–10, not $50,000

Fine-tuning LLM: GPU costs of $3–10, not $50,000
Key Takeaways
1Fine-tuning LLM can cost just a few dollars in GPU thanks to LoRA/QLoRA
2The main costs are related to data, iteration, and evaluation, with an overall budget of $5,000 to $15,000
3Fine-tuning is essential for large-scale consistency, strict formats, and domain-specific voices, while many requests pertain to better retrieval
4Open models like Llama, Qwen, Mistral, Gemma, and Phi are suitable for this, managed offerings exist, and LoRA allows training only a fraction of the parameters
Why it matters : Fine-tuning is no longer reserved for large labs and is becoming accessible to many players, provided that use cases are well-targeted and non-computational costs are managed.

Adapting an existing model can cost just a few dollars in GPU time, far from five-figure estimates. Mid-2026 figures show that the key expenses are data and evaluation, while LoRA/QLoRA and good hardware choices drive technical costs down. The challenge remains to decide when fine-tuning is relevant and on what basis to conduct it.

Computing is no longer the main expense: $5,000 to $15,000 in total

By mid-2026, effective parametric fine-tuning for models ranging from 2 to 8B is commonly performed for less than $10 in GPU time, while a full fine-tuning conducted on high-end infrastructure can exceed $10,000. According to Stratagem Systems, in July 2026, applying LoRA or QLoRA to 7 to 8B models costs between $3 and $10 for two to four hours on a rented A100, and less than $3 on an RTX 4090. A QLoRA pass on a 70B model is around $15 to $30. Despite these price levels, GPU hours now represent the smallest share of the budget: dataset creation, iteration phases, and evaluation take precedence, especially as one must restart with each evolution of the base model. This is how the overall cost of projects is established between $5,000 and $15,000, even if the computing expense remains moderate.

When fine-tuning is justified, and when it is not

Fine-tuning addresses three concrete needs: large-scale behavioral consistency across thousands of calls, strict adherence to a schema or output format, and the integration of domain-specific vocabulary or brand voice without overloading each prompt. Conversely, hjLabs estimates that about 80% of requests framed as a need for fine-tuning actually pertain to retrieval improvement. Prompt engineering, few-shot learning, and RAG, known to be quicker to test and easier to update, are levers to consider before modifying the model. Fine-tuning, which alters weights and engages more deeply, is justified when one of these three cases applies.

Which models are suitable and what offerings exist

Several open-weight families can be fine-tuned with mature tools: Llama 3.x, Qwen 2.5 and 3, Mistral, Gemma 2 to 4, and Phi. On the managed services side, OpenAI and Google offer fine-tuning on selected models, while Together AI and Fireworks provide on-demand LoRA. These managed solutions accept a slightly higher training token cost in exchange for removing infrastructure management constraints. Highlighted methods include parametric efficiency techniques (LoRA, QLoRA), accelerated training tools, lower-cost alignment objectives, and infrastructure choices, some of which, if poorly matched, can significantly increase the bill.

Le brief IA que lisent les pros

Le brief IA que les pros lisent chaque soir

Les 7 actus IA du jour, décryptées en 5 min. Gratuit.

Inclus dès l'inscription : notre sélection des meilleurs guides & comparatifs IA.

Choisissez votre rythme

Gratuit · Pas de spam · Désabonnement en 1 clic

Scaling limits: 2–13B on a GPU, beyond that requires multi-GPU

The practices described target dense models between 2B and 13B parameters, manageable on a single GPU. For memory footprint, one technique allows bypassing the GPU budget as a limiting factor, running on a single consumer GPU with 8 to 24 GB. Another optimization reduces rental time in addition to LoRA/QLoRA gains, with similar or lower requirements. Beyond 70B parameters, especially in Mixture-of-Experts, even QLoRA requires a multi-GPU node to hold the quantized weights in memory. The decision on hardware procurement often remains the largest source of savings.

Overview of the 5 levers: algorithms, tools, objectives, hardware

The five levers accumulate: two algorithmic methods, one tool optimization, a change in training objective, and an infrastructure decision. One lever significantly reduces computation and storage compared to full fine-tuning, requiring a GPU capable of hosting the model in 16 bits. Another, focused on memory, removes the GPU budget as a constraint on an 8 to 24 GB GPU. On the cadence side, an optimization further lowers rental time. For alignment, DPO avoids the reward model infrastructure and RLHF, with needs similar to the adapter approach. Finally, hardware arbitration can represent the largest line of savings.

How LoRA reduces trained parameters to less than 1%

LoRA keeps the base model fixed and adds low-rank trainable matrices alongside the existing weights. The hypothesis, formulated by Hu and colleagues in 2021, is that useful adjustments have low intrinsic rank, allowing only a tiny fraction of the parameters, often under 1%, to be trained without touching the original weights. An operational example uses Llama 3.1 8B Instruct and the Databricks Dolly 15k dataset (15,011 human instructions covering Q/A, summarization, and classification). The tokenizer uses EOS as padding, the model is loaded in bfloat16 with automatic device_map, and the examples are structured with Instruction, Context, and Response. The LoRA configuration defines target_modules="all-linear", a lora_dropout of 0.05, and r=16 as the adapter capacity for CAUSAL_LM; the trainable parameters check function allows observing the actual trained share. The SFT training illustrates concrete settings (batch 4 per device, accumulation 4, 3 epochs, rate 2e-4, logs every 10 steps, save per epoch, sequences up to 1,024 tokens), with export of the final model. The all-linear option applies the adapter to each linear layer and typically leads to a percentage well below 1% of trained weights.

Brief IA — L'actualité IA en français

L'essentiel de l'actualité de l'intelligence artificielle, décrypté et expliqué chaque jour.