LLM Fine-tuning & Deployment

A complete guide to fine-tuning, quantization, and private LLM deployment, covering LoRA, QLoRA, RLHF, SLMs, edge deployment, Ollama, vLLM, WebLLM, inference cost optimization, local privacy use cases, and cloud serving tradeoffs.

11 Articles in This Series · 创建于 2026-02-21
1

LLM Fine-Tuning: SFT, LoRA, QLoRA, and Evaluation

A rigorous LLM fine-tuning guide covering SFT, full updates, LoRA, QLoRA, data lineage, chat templates, leakage-resistant splits, reproducible training manifests, held-out evaluation, artifact identity, safety gates, deployment, and rollback without fixed hardware or quality promises.

5

Ollama: Local Models, Cloud APIs, and Production Boundaries

Use Ollama across local runtimes and authenticated cloud APIs. Build reproducible Modelfiles, call structured outputs from Go, distinguish local and cloud authentication, measure capacity, and secure production access.

6

WebLLM Browser AI: Artifacts, Caching, and Fallbacks

Engineer WebLLM applications around real browser constraints: WebGPU capability checks, versioned MLC artifacts, optional SRI verification, Cache API and OPFS lifecycle, Web Worker versus Service Worker behavior, bounded OpenAI-style compatibility, privacy review, device-loss recovery, workload evaluation, and explicit remote or non-AI fallback.

7

DPO vs RLHF: The Evolution of LLM Alignment Techniques

A deep technical comparison of DPO and RLHF for LLM alignment. Covers reward model training, PPO instabilities, the Bradley-Terry framework behind DPO, compute costs, and newer variants like KTO, IPO, ORPO, and SimPO.