Fine-Tuning Concepts
StableTeach 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 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.
| Method | What It Does | Typical Use |
|---|---|---|
| LoRA | Adds small trainable matrices alongside frozen model weights. Only the adapter is trained. | Art styles, character concepts, LLM personality / domain knowledge |
| QLoRA | LoRA applied to a 4-bit quantized base model. Dramatically reduces VRAM. | LLM fine-tuning on 8–16 GB GPUs |
| DreamBooth | Teaches the model a new subject by training on 5–30 images with a unique identifier token. | Specific people, pets, products, or objects |
| Textual Inversion | Learns a new text embedding (token) without modifying model weights at all. | Lightweight style tokens, composable with other embeddings |
| Full Fine-Tune | Updates every weight in the model. Maximum quality but requires large VRAM and datasets. | Research, new base model variants |
| LyCORIS | Extended LoRA family (LoHa, LoKr, etc.) with richer decomposition strategies. | Advanced style transfer, better detail capture |
| SFT | Supervised Fine-Tuning on instruction/response pairs. Teaches behavior and format. | Chat assistants, domain Q&A, code helpers |
| DPO / RLHF | Aligns model outputs to human preferences using ranked comparisons. | Safety alignment, tone control, preference tuning |
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
| Factor | Prompting | Fine-Tuning |
|---|---|---|
| Cost | Free (just text) | Electricity + time (30 min–8 hr) |
| Setup Time | Seconds | Minutes to hours (data prep + training) |
| Data Needed | None | 5–10,000 examples depending on method |
| Persistence | Must include prompt every time | Knowledge is baked into the adapter permanently |
| Quality Ceiling | Limited by base model’s training data | Can exceed base model in your specific domain |
| Composability | Easily combined with any model | LoRA adapters can be stacked and weighted |
| Maintenance | Update prompt text as needed | May need retraining when base model updates |
Training Tools on Thumper
Thumper-Run packages popular training tools as one-click installable apps. Each tool has different strengths and target audiences.
| Tool | Focus | Interface | Install |
|---|---|---|---|
| Kohya SS | Image LoRA, DreamBooth, Textual Inversion | Web UI (Gradio) | One-click via Thumper Hub |
| LLaMA-Factory | LLM SFT, DPO, QLoRA, full fine-tune | Web UI + CLI | One-click via Thumper Hub |
| Unsloth | LLM QLoRA with 2x speed, 60% less VRAM | Python / Notebook | One-click via Thumper Hub |
| Axolotl | Advanced LLM training with FSDP / DeepSpeed | YAML config + CLI | One-click via Thumper Hub |
| H2O LLM Studio | No-code LLM fine-tuning with experiment tracking | Web UI | One-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.
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:
W_new = W + (alpha / rank) × B × AWhere: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.
| Rank | Adapter Size (SDXL) | Use Case |
|---|---|---|
| 4 | ~10 MB | Simple style transfer, color palettes |
| 16 | ~35 MB | General purpose — best default for most users |
| 64 | ~120 MB | Complex styles, detailed character features |
| 128 | ~200 MB | Maximum 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.
| GPU | Power Draw | Cost / Hour | Image LoRA (SDXL) | LLM QLoRA (7B) |
|---|---|---|---|---|
| RTX 4090 | ~350 W | ~$0.05 | 30–60 min | 2–4 hours |
| RTX 3060 (12 GB) | ~170 W | ~$0.025 | 1–3 hours | 4–8 hours |
| RX 7900 XT | ~300 W | ~$0.045 | 45–90 min | 3–6 hours |
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
Learn More
Training Hardware Guide
GPU VRAM requirements and cost comparison for local training
LoRA Image Tutorial
Step-by-step guide to training a LoRA for Stable Diffusion
QLoRA LLM Tutorial
Fine-tune a language model with QLoRA on consumer hardware
GPU Detection
How Thumper-Run auto-detects your GPU and selects backends
Sell Your Adapters
Publish and monetize fine-tuned adapters on Thumper Hub