local-model-finetuning-unsloth-axolotl

local-model-finetuning-unsloth-axolotl is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 85 tokens per session (2,141 once invoked), scanned A, original, MIT.

A guide to fine-tuning language models on your own computer using Unsloth and Axolotl, including preference training and methods for reducing memory use.

In plain words
What is it for?
Use it to prepare datasets, configure single- or multi-GPU training, apply methods such as LoRA or QLoRA, and export models for formats or servers such as GGUF or vLLM.
Why use it?
It helps choose between tools and configure training when computer memory or the number of graphics cards limits what you can run.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare datasets, configure single- or multi-GPU training, apply methods such as LoRA or QLoRA, and export models for formats or servers such as GGUF or vLLM.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill local-model-finetuning-unsloth-axolotl
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-model-finetuning-unsloth-axolotl

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-model-finetuning-unsloth-axolotl

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/local-model-finetuning-unsloth-axolotl.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,141 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02141
Opus 5 $0.00043 $0.01071
Sonnet 5 $0.00017 $0.00428
Haiku 4.5 $0.00009 $0.00214

Measured 12d ago against content hash 37c24822aaa4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

local-model-finetuning-unsloth-axolotl scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AI and Vector Databases/local-model-finetuning-unsloth-axolotl/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Local LLM Fine-Tuning Architect Skill: Unsloth & Axolotl

1. Framework Architectural Comparison

Dimension Unsloth Axolotl
Primary Target Single-GPU extreme speed & VRAM optimization Multi-GPU / Multi-Node enterprise scale
Backend Implementation Custom C++/CUDA & Triton kernels (manual backprop) HuggingFace Transformers, PyTorch FSDP, DeepSpeed
Interface Python API (Extends trl & peft) YAML Configuration Driven CLI
Speedup vs Standard 2x – 5x faster training Standard PyTorch + FlashAttention-2 optimizations
Memory Footprint Up to 80% VRAM reduction Standard QLoRA/LoRA VRAM scaling
Alignment Algorithms SFT, DPO, ORPO, GRPO SFT, DPO, ORPO, KTO, PPO, ReFT
Model Architectures Llama 3/3.1/3.2, Qwen 2.5, Mistral, Gemma 2, Phi-4 Broad HF ecosystem support (Llama, Qwen, Mistral, etc.)

2. Memory Optimization & Hardware Configurations

VRAM Budgeting Matrix (8B Model @ 4096 Sequence Length)

Method Quantization Batch Size (per GPU) Min VRAM Required Optimal Hardware
Unsloth QLoRA 4-bit (NF4) 2 – 4 7 GB – 10 GB RTX 3090 / RTX 4090 / A10G
Unsloth LoRA 16-bit (BF16) 1 – 2 16 GB – 20 GB RTX 4090 / A100 (40GB)
Axolotl QLoRA (FSDP) 4-bit (NF4) 4 – 8 (across 4 GPUs) 12 GB per GPU 4x RTX 3090 / 4x A10G
Axolotl Full Params (DeepSpeed Z3) 16-bit (BF16) 2 – 4 (across 8 GPUs) 40 GB per GPU 8x A100 (80GB) / H100

Key Optimization Knobs

  • NF4 & Double Quantization: Uses 4-bit NormalFloat data type with quantized quantization constants to save ~0.5 bit per parameter.
  • Paged AdamW 8-bit: Offloads optimizer state spikes to CPU memory during peak backpropagation passes.
  • Gradient Checkpointing (Unsloth Offloading): Recomputes activations during backpass instead of storing them all in RAM. Unsloth reduces activation memory footprint by 50-70%.
  • Sample Packing / Multipack: Concatenates short samples into a single sequence up to max token length, eliminating padding token waste and accelerating training by 2x-4x.

Read the full file on GitHub · 193 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 193 lines · 85 tokens per session scan A 37c24822aaa4

Subscribe to this mod's changes

local-model-finetuning-unsloth-axolotl is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 85 tokens to every session and 2,141 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.