~12 min read

Fine-Tuning Concepts

Stable

Teach AI models your art style, writing voice, or domain expertise — using your own data, on your own hardware.

In Plain English

Fine-tuning is like hiring a skilled artist and teaching them your specific style. The artist already knows how to draw, paint, and shade — you’re not starting from scratch. Instead, you show them a few dozen examples of your style, and they learn to replicate it. That’s what fine-tuning does to an AI model.

Three Key Facts

  • Fast — Most fine-tunes finish in 30 minutes to 8 hours on a single consumer GPU.
  • Small — The output adapter is typically 10–200 MB, not a full multi-gigabyte model.
  • Private — Training runs entirely on your machine. Your data never leaves your hardware.
Fine-tuning works for both image models (Stable Diffusion, FLUX) and language models (LLaMA, Mistral, Qwen). The techniques differ, but the concept is the same: specialize a general model with your own examples.

Fine-Tuning Methods

There are many approaches to fine-tuning. Each trades off speed, quality, and VRAM usage differently. Here are the most common methods you’ll encounter.

MethodWhat It DoesTypical Use
LoRAAdds small trainable matrices alongside frozen model weights. Only the adapter is trained.Art styles, character concepts, LLM personality / domain knowledge
QLoRALoRA applied to a 4-bit quantized base model. Dramatically reduces VRAM.LLM fine-tuning on 8–16 GB GPUs
DreamBoothTeaches the model a new subject by training on 5–30 images with a unique identifier token.Specific people, pets, products, or objects
Textual InversionLearns a new text embedding (token) without modifying model weights at all.Lightweight style tokens, composable with other embeddings
Full Fine-TuneUpdates every weight in the model. Maximum quality but requires large VRAM and datasets.Research, new base model variants
LyCORISExtended LoRA family (LoHa, LoKr, etc.) with richer decomposition strategies.Advanced style transfer, better detail capture
SFTSupervised Fine-Tuning on instruction/response pairs. Teaches behavior and format.Chat assistants, domain Q&A, code helpers
DPO / RLHFAligns model outputs to human preferences using ranked comparisons.Safety alignment, tone control, preference tuning
If you’re just getting started, LoRA for images and QLoRA for language models are the best balance of quality, speed, and VRAM requirements. See our step-by-step guides.

When to Fine-Tune

Fine-tuning isn’t always the right answer. Sometimes better prompting or a different base model solves the problem faster. Use this decision guide.

Decision Guide

  • Can you describe what you want in a prompt? — If yes, try prompt engineering first. It’s free and instant.
  • Do you need a consistent style or character? — Fine-tuning excels here. Prompts alone can’t reliably reproduce a specific face or art style.
  • Is the model getting close but not quite right? — Fine-tuning can push it over the edge. 20–50 good examples often suffice.
  • Do you need domain-specific knowledge? — SFT or QLoRA on domain data teaches the model facts and terminology it never saw in pretraining.

Prompting vs Fine-Tuning

FactorPromptingFine-Tuning
CostFree (just text)Electricity + time (30 min–8 hr)
Setup TimeSecondsMinutes to hours (data prep + training)
Data NeededNone5–10,000 examples depending on method
PersistenceMust include prompt every timeKnowledge is baked into the adapter permanently
Quality CeilingLimited by base model’s training dataCan exceed base model in your specific domain
ComposabilityEasily combined with any modelLoRA adapters can be stacked and weighted
MaintenanceUpdate prompt text as neededMay need retraining when base model updates
Before fine-tuning, check if a newer base model already handles your use case. Model capabilities improve rapidly — what required fine-tuning six months ago may work out of the box with a newer model.

Training Tools on Thumper

Thumper-Run packages popular training tools as one-click installable apps. Each tool has different strengths and target audiences.

ToolFocusInterfaceInstall
Kohya SSImage LoRA, DreamBooth, Textual InversionWeb UI (Gradio)One-click via Thumper Hub
LLaMA-FactoryLLM SFT, DPO, QLoRA, full fine-tuneWeb UI + CLIOne-click via Thumper Hub
UnslothLLM QLoRA with 2x speed, 60% less VRAMPython / NotebookOne-click via Thumper Hub
AxolotlAdvanced LLM training with FSDP / DeepSpeedYAML config + CLIOne-click via Thumper Hub
H2O LLM StudioNo-code LLM fine-tuning with experiment trackingWeb UIOne-click via Thumper Hub

Privacy & Data Sovereignty

One of the biggest advantages of local fine-tuning is complete data privacy. Your training data never leaves your machine.

Local-Only Training

  • All training runs execute on your local GPU — no cloud uploads
  • Training datasets stay on your filesystem in the tool’s data directory
  • No telemetry is collected about your training data or adapter outputs

Output Paths

Trained adapters are saved to the tool’s output directory, typically under ~/.local/share/tr-desktop/apps/{tool}/output/. You own these files completely — copy, share, or sell them as you wish.

Adapter Weights

LoRA adapters are small files (10–200 MB) that contain only the trained delta, not the base model weights. This means they’re safe to distribute — the adapter alone cannot reconstruct your training data or the base model.

Content Attestation

When you publish an adapter to Thumper Hub, you can attach an OriginalContentInfo attestation certifying the training data was your own original work. This builds trust with buyers and protects intellectual property claims.

Thumper never accesses your training data. The launcher orchestrates the training tool as a subprocess — it starts the process and monitors its health, but does not read or transmit training inputs or outputs.

How LoRA Works

LoRA (Low-Rank Adaptation) is the most popular fine-tuning method because it is fast, composable, and uses a fraction of the VRAM required by full fine-tuning. Here’s what happens under the hood.

The Core Formula

Instead of updating the full weight matrix W directly, LoRA decomposes the update into two small matrices A and B:

text
W_new = W + (alpha / rank) × B × A
Where:
W = Original frozen weight matrix (e.g., 4096 × 4096)
A = Low-rank matrix (4096 × rank)
B = Low-rank matrix (rank × 4096)
alpha = Scaling factor (controls adaptation strength)
rank = Bottleneck dimension (typically 4–128)

Rank Selection

The rank parameter controls how much capacity the adapter has to learn. Higher rank means more expressive power but larger file size and more VRAM.

RankAdapter Size (SDXL)Use Case
4~10 MBSimple style transfer, color palettes
16~35 MBGeneral purpose — best default for most users
64~120 MBComplex styles, detailed character features
128~200 MBMaximum detail, approaching full fine-tune quality

Why LoRA Is Popular

  • Composable — Stack multiple LoRAs at inference time with adjustable weights (e.g., style + character)
  • Small — Adapters are 10–200 MB vs 2–7 GB for a full model checkpoint
  • Non-destructive — Base model weights are frozen. Remove the adapter and you’re back to the original model
  • Fast — Training only updates the small A and B matrices, typically 0.1–1% of total parameters

Alpha and Scaling

The alpha parameter controls adaptation strength. The effective scaling is alpha / rank. Common practice is to set alpha equal to the rank (scaling = 1.0) or half the rank (scaling = 0.5). Higher scaling means stronger adaptation but risks overfitting.

Trainable Parameters

A rank-16 LoRA on an SDXL UNet trains roughly 0.1% of the model’s parameters. For a 7B LLM, a rank-16 LoRA on all attention layers trains about 0.2% of parameters. This is why LoRA needs so much less VRAM and time than full fine-tuning.

Cost & Time Estimates

Local training costs only electricity. Here are approximate numbers for common GPU configurations running typical training jobs.

GPUPower DrawCost / HourImage LoRA (SDXL)LLM QLoRA (7B)
RTX 4090~350 W~$0.0530–60 min2–4 hours
RTX 3060 (12 GB)~170 W~$0.0251–3 hours4–8 hours
RX 7900 XT~300 W~$0.04545–90 min3–6 hours
For comparison, cloud training on a single A100 costs $1.50–$3.00/hour. A single SDXL LoRA training run on RunPod costs $1–$3. On your local RTX 4090, the same job costs about $0.04 in electricity — and you can run it unlimited times.

Key Takeaways

  • LoRA and QLoRA are the best starting points for most users
  • Training runs locally — your data never leaves your machine
  • Adapters are small (10–200 MB) and composable
  • Try prompt engineering first; fine-tune when prompts aren’t enough
  • Local training costs pennies in electricity vs dollars per hour in the cloud
  • Rank 16 is a good default for most LoRA training jobs