Skip to content
qodex-ai avatar

Llm Fine Tuning Guide

Practical guide to fine-tuning LLMs covering full tuning, LoRA, QLoRA, and domain-specific data preparation.

CCM score
35 of 100
skills.sh installs
198
GitHub stars
50
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers full fine-tuning, LoRA, QLoRA, prefix tuning, and instruction tuning, with code for each approach
  • Includes examples/ scripts for full, LoRA, and QLoRA runs plus a scripts/data_preparation.py helper
  • Lists when to fine-tune versus prompt or use RAG, and notes a 100-example floor for training data
  • Designed for teams adapting models to specialized domains, cutting inference costs, or meeting compliance limits

Install

$ npx -y skills add qodex-ai/ai-agent-skills --skill llm-fine-tuning-guide -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

LLM Fine-Tuning Guide

Master the art of fine-tuning large language models to create specialized models optimized for your specific use cases, domains, and performance requirements.

Overview

Fine-tuning adapts pre-trained LLMs to specific tasks, domains, or styles by training them on curated datasets. This improves accuracy, reduces hallucinations, and optimizes costs.

When to Fine-Tune

  • Domain Specialization: Legal documents, medical records, financial reports
  • Task-Specific Performance: Better results on specific tasks than base model
  • Cost Optimization: Smaller fine-tuned model replaces expensive large model
  • Style Adaptation: Match specific writing styles or tones
  • Compliance Requirements: Keep sensitive data within your infrastructure
  • Latency Requirements: Smaller models deploy faster

When NOT to Fine-Tune

  • One-off queries (use prompting instead)
  • Rapidly changing information (use RAG instead)
  • Limited training data (< 100 examples typically insufficient)
  • General knowledge questions (base model sufficient)

Quick Start

Full Fine-Tuning:

python examples/full_fine_tuning.py

Details

Repository
github.com/qodex-ai/ai-agent-skills
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the llm-fine-tuning-guide skill do?

The llm-fine-tuning-guide skill guides fine-tuning of large language models for specific domains and tasks. It covers data preparation, training techniques, optimization strategies, and evaluation methods.

When should I use the llm-fine-tuning-guide skill instead of prompting or RAG?

The skill suggests fine-tuning for domain specialization, task-specific performance, cost optimization, style adaptation, compliance needs and latency goals. It advises against fine-tuning for one-off queries, rapidly changing information, limited training data, or general knowledge questions.

How do I install the llm-fine-tuning-guide skill?

Run npx -y skills add qodex-ai/ai-agent-skills --skill llm-fine-tuning-guide -y in your project. This installs the skill so your agent can use its fine-tuning instructions.

Which approaches to fine-tuning does the llm-fine-tuning-guide skill cover?

The skill covers full fine-tuning, parameter-efficient methods such as LoRA, QLoRA and prefix tuning, and instruction fine-tuning. It includes Python examples for each approach using Hugging Face style libraries.

Where does the llm-fine-tuning-guide skill sit in its category?

It belongs to the AI Agents & LLM Apps category on Claude Marketplaces, alongside microsoft-foundry, azure-ai and several Google agents skills. It stands out by focusing on the full fine-tuning workflow for large language models.

More from qodex-ai/ai-agent-skills

All 24

Similar to Llm Fine Tuning Guide

More AI Agents & LLM Apps