jeffallan avatar

Fine Tuning Expert

This is what you reach for when you need to fine-tune an LLM without burning through GPU budget or guessing at hyperparameters. It walks you through the full pipeline from dataset validation to deployment, with working examples for LoRA and QLoRA using Hugging Face PEFT. The checkpoint-driven workflow is smart: it forces you to validate your data before training and actually measure metrics before deploying. Includes concrete configs (rank 16, alpha 32, cosine scheduling) and the merge-and-unload pattern for production. The constraint list calling out common mistakes like skipping warmup or merging incompatible adapters shows this comes from someone who's debugged those failures. Covers instruction tuning, RLHF, and DPO if you need them.

skills.sh installs
4.5K
GitHub stars
12.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add jeffallan/claude-skills --skill fine-tuning-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Fine-Tuning Expert

Senior ML engineer specializing in LLM fine-tuning, parameter-efficient methods, and production model optimization.

Core Workflow

  1. Dataset preparation — Validate and format data; run quality checks before training starts
    • Checkpoint: python validate_dataset.py --input data.jsonl — fix all errors before proceeding
  2. Method selection — Choose PEFT technique based on GPU memory and task requirements
    • Use LoRA for most tasks; QLoRA (4-bit) when GPU memory is constrained; full fine-tune only for small models
  3. Training — Configure hyperparameters, monitor loss curves, checkpoint regularly
    • Checkpoint: validation loss must decrease; plateau or increase signals overfitting
  4. Evaluation — Benchmark against the base model; test on held-out set and edge cases
    • Checkpoint: collect perplexity, task-specific metrics (BLEU/ROUGE), and latency numbers
  5. Deployment — Merge adapter weights, quantize, measure inference throughput before serving

Reference Guide

Load detailed guidance based on context:

Sponsors

Details

Repository
github.com/jeffallan/claude-skills
Category
AI & Agent Building

More from jeffallan/claude-skills

All 66
1composiohq avatarlangsmith-fetchcomposiohq/awesome-claude-skillsDebug LangChain and LangGraph agents by fetching execution traces from LangSmith Studio. Use when debugging agent behavior, investigating errors, analyzing tool4.4Kskills.sh installs
2gokapso avatarautomate-whatsappgokapso/agent-skillsBuild WhatsApp automations with Kapso workflows: configure WhatsApp triggers, edit workflow graphs, manage executions, deploy functions, search workflow Logs, a4.4Kskills.sh installs
3grafana avatarml-aigrafana/skillsTurn on AI + ML features in Grafana Cloud — Grafana Assistant (NL → PromQL/LogQL/TraceQL, dashboard build, incident investigation, MCP integration), Dynamic Ale4.4Kskills.sh installs
4softaworks avatarwriting-clearly-and-conciselysoftaworks/agent-toolkitUse when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for c4.4Kskills.sh installs
5wordpress avatarwpdswordpress/agent-skillsUse when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.4.3Kskills.sh installs
6amelnagdy avatartest-guardamelnagdy/guard-skillsReview generated or changed test code against universal testing rules before it ships. Best used reactively after an agent writes, edits, generates, or refactor4.3Kskills.sh installs