Training, Inference, Fine-Tuning: 3 Stages Broken Down for Beginners

AI Navigate Original / 4/27/2026

💬 OpinionTools & Practical UsageModels & Research
共有:

Key Points

  • LLM lifecycle: pre-training, post-training, inference
  • Pre-training is huge-cost; post-training: SFT/RLHF/DPO/Constitutional AI
  • Inference cumulative cost often exceeds training
  • Fine-tuning limited in practice; RAG vs FT by use; LoRA is practical

The 3-Stage Lifecycle

An LLM works in 3 stages: "pre-training → post-training → inference." Each differs greatly in cost structure and difficulty.

1. Pre-training

The stage of making the model learn "how to use language" and "knowledge of the world."

  • Data: tens of trillions of tokens from web, books, papers, code, images
  • Task: "predict the next word" (next-token prediction)
  • Cost: a single pre-training run for a 2026-class frontier model costs on the order of USD 200-500 million, and electricity has become as much of a bottleneck as the GPUs themselves
  • Period: weeks to months, with 10,000-20,000+ GPUs running continuously for a frontier model
  • Who: limited players like OpenAI, Anthropic, Google, Meta, Mistral

In this phase, "world common sense," "grammar," "the seed of logical reasoning" form.

2. Post-training

Pre-training alone is just a "next-word predictor," so adjustment is needed to follow human instructions, not say harmful things, have natural dialogue.

SFT (Supervised Fine-Tuning)

Fine-tune with "question → ideal answer" pairs. Acquires initial instruction-following.

RLHF (Reinforcement Learning from Human Feedback)

Humans pick "answer A vs B" pairs, train a reward model, and use it to reinforcement-learn the model.

DPO (Direct Preference Optimization)

A simplified RLHF. Optimizes pair preferences directly without a separate reward model, which makes it simple to run and widely used.

Constitutional AI

Developed by Anthropic. A loop where the AI itself self-critiques and improves based on a principles document (Constitution). Adopted in the Claude series; the constitution was expanded in early 2026 to spell out the reasoning behind each principle.

3. Inference

The phase users actually use. The processing of inputting a prompt and getting output.

  • Cost: a few to tens of yen per request (by model and token volume)
  • Latency: response time 0.5 sec to tens of seconds
  • Cumulative: huge with 1 user × 1 day × dozens of requests × millions of users

As of 2026, cumulative inference cost often greatly exceeds training cost.

User-Side Fine-Tuning

Full Fine-tuning

Re-train all model parameters. Needs hundreds of thousands to millions of GPU hours, not realistic for frontier models.

LoRA / QLoRA

Pseudo fine-tuning by adding low-rank matrices while the base model stays frozen. It cuts trainable parameters by up to 99%, so a small open-weight model can be adapted in a few hours on a single GPU, and it covers the large majority of cases that genuinely need fine-tuning.

Adapter / Prefix Tuning

Freeze the model body, train only added layers. A lightweight method close to LoRA.

Selective Use of RAG vs Fine-Tuning

UseRecommended
Want to add new knowledgeRAG (search latest docs)
Want to teach a specialized style/toneFine-tuning (LoRA)
Want to train on confidential dataFine-tuning (on-prem)
Frequently updated infoRAG (no retraining)
Custom task (classification, extraction)Fine-tuning

2026 Trends

  • Post-training is modular: SFT first, then preference optimization (DPO and similar), then reinforcement learning on verifiable rewards (GRPO, DAPO) for math and code
  • Expanded use of synthetic data (AI generating training data among themselves)
  • Distillation: transfer knowledge from a big model to a small one, cut inference cost
  • Continual learning: models that keep learning while in production

Summary

An LLM is 3 stages: world knowledge by pre-training, human preference by post-training, practical use by inference. Cases needing fine-tuning in practice are limited; most can be handled by RAG and prompt engineering. Remember LoRA as the realistic answer for "lightweight FT."