Skip to content

Group: Model Lifecycle (bridge) | Previous group exit: inference fundamentals and interface contracts | This page exit: know when to change weights instead of prompts or retrieval

Model Lifecycle Bridges ​

What this is: navigation and overview for the three training bridge pages (SFT / RLHF / PEFT). This repo keeps only the engineering-decision view of training — when moving weights is justified and what it costs. The canonical treatment of training objectives and math lives in Learn LLM.

The two chains converge at inference (full discussion: Model lifecycle bridge):

Your application work happens at the right edge of this graph: consuming trained models through APIs. The internals of both chains belong to Learn LLM; the three bridge pages here only answer "when does an engineer need to cross that line".

The three bridges ​

BridgeQuestion it answersOne-line verdict
SFT (bridge)When to teach the model new knowledge/formats with labeled dataExhaust prompt and RAG first; SFT is an option only with real data and budget
RLHF (bridge)Where model behavior and "personality" come fromApp engineers never implement RLHF; understanding it explains refusals, verbosity, style
PEFT (bridge)How to customize a model at lower costLoRA/QLoRA drop the cost by an order of magnitude; the default starting point when weights must move

Connection to the mainline ​

  • For external knowledge, the mainline answer is always RAG first (layer 3).
  • For output-format control, the mainline answer is structured output (layer 1), not fine-tuning.
  • Only when both layers produce evidence of "not enough", take the decision tables here to an ML engineer.

Built for frontend engineers · Powered by VitePress