---
title: "We Got Claude to Fine-Tune an Open Source LLM"
description: "Hugging Face Skills, specifically the hf-llm-trainer skill, lets coding agents like Claude Code, Codex and Gemini CLI run a full LLM fine-tuning lifecycle."
url: "https://swe.quest/articles/we-got-claude-to-fine-tune-an-open-source-llm-b2f9fccf5ad1d82f"
canonical: "https://huggingface.co/blog/hf-skills-training"
source: "Hugging Face"
published: "2025-12-04"
difficulty: "medium"
kind: "How-to"
reading_minutes: 12
tags: ["model-training","ai-agents","ai-coding","llms"]
---

# We Got Claude to Fine-Tune an Open Source LLM

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-12-04, 12 min read, How-to. Original: [https://huggingface.co/blog/hf-skills-training](https://huggingface.co/blog/hf-skills-training)

## Summary

Hugging Face Skills, specifically the hf-llm-trainer skill, lets coding agents like Claude Code, Codex and Gemini CLI run a full LLM fine-tuning lifecycle. The agent validates the dataset, picks GPU hardware by model size, generates a TRL training script with Trackio monitoring, submits it to Hugging Face Jobs, reports progress and pushes the result to the Hub. The walkthrough covers setup, SFT, DPO and GRPO, LoRA for models over 3B, GGUF conversion for llama.cpp, and cost guidance. A 0.6B Qwen3 SFT run on a t4-small costs about $0.30, 3-7B models need A10G/A100 with LoRA at $15-40, and a cheap 100-example test run before a production job catches dataset format errors early.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM fine-tuning basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Hugging Face Hub

## Keywords

Hugging Face Skills, Claude Code, Hugging Face Jobs, TRL, Trackio, LoRA, GRPO, GGUF

## Related posts

- [Codex is Open Sourcing AI models](https://swe.quest/articles/codex-is-open-sourcing-ai-models-fa17d18abe8d9c1f.md): Hugging Face · 2025-12-11 · Medium · 18 min read · Model training, AI agents, AI for coding, Evaluation
  Hugging Face Skills, a repository of agent instructions loaded via AGENTS.md (or Claude Code Skills), lets OpenAI Codex run end-to-end fine-tuning experiments on Hugging Face Jobs.
- [Train AI models with Unsloth and Hugging Face Jobs for FREE](https://swe.quest/articles/train-ai-models-with-unsloth-and-hugging-face-jobs-for-free-6587fc68358b0d7c.md): Hugging Face · 2026-02-20 · Medium · 4 min read · Model training, AI agents, LLMs, Python
  Unsloth on Hugging Face Jobs can fine-tune small models like LiquidAI/LFM2.5-1.2B-Instruct on managed cloud GPUs.
- [Personal Copilot: Train Your Own Coding Assistant](https://swe.quest/articles/personal-copilot-train-your-own-coding-assistant-058d44307821dd4e.md): Hugging Face · 2023-10-27 · Hard · 15 min read · Model training, AI for coding, LLMs
  HugCoder is a code LLM fine-tuned on the top 10 Hugging Face GitHub repositories, built by cloning repos in parallel, filtering non-code files and training StarCoder with a fill-in-the-middle objective.
- [The model that didn't exist, so you made it yourself](https://swe.quest/articles/the-model-that-didn-t-exist-so-you-made-it-yourself-77bd5f69b5e22a6f.md): Hugging Face · 2026-10-08 · Medium · 9 min read · AI agents, Model training, Evaluation, Computer vision
  Six custom models were built by prompting ML Intern, an agent mode in HuggingChat, to plan, budget, train, evaluate and publish on Hugging Face hardware, for about USD 103 in total compute.
- [Make LLM Fine-tuning 2x faster with Unsloth and 🤗 TRL](https://swe.quest/articles/make-llm-fine-tuning-2x-faster-with-unsloth-and-trl-5db8c0b6a40cf74e.md): Hugging Face · 2024-01-10 · Medium · 5 min read · Model training, LLMs, Performance engineering, Python
  Unsloth speeds up QLoRA fine-tuning of Llama and Mistral-family models by rewriting PyTorch modules as Triton kernels with manually derived backpropagation.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
