unsloth-mcp-server: Skill for Claude Code

.claude/skills/unsloth-finetuning/SKILL.md

unsloth-finetuning is a skill for Claude Code from ScientiaCapital/unsloth-mcp-server. It costs 66 tokens per session (2,202 once invoked), scanned A, original, Apache-2.0.

Instructions for fine-tuning large language models—AI models that understand and generate text—using Unsloth, an optimized training library. They cover model loading, LoRA or QLoRA configuration, dataset training, monitoring, hardware choices, and export formats.

In plain words
What is it for?
Use them to fine-tune models such as Llama, Mistral, Phi, Gemma, or Qwen, then export the result for formats and tools including GGUF, Ollama, vLLM, or Hugging Face.
Why use it?
They provide a repeatable way to adapt supported models to custom data while reducing training memory and time requirements.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is ScientiaCapital/unsloth-mcp-server's own configuration. It tells Claude Code how to work on unsloth-mcp-server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything unsloth-mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ScientiaCapital/unsloth-mcp-server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ScientiaCapital/unsloth-mcp-server/main/.claude/skills/unsloth-finetuning/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/ScientiaCapital/unsloth-mcp-server

Made for: Claude Code.

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 unsloth-finetuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning/github.svg)](https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning)
Your own site
<a href="https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning/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 unsloth-finetuning

Your own site · 80×15
<a href="https://agentmods.dev/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning"><img src="https://agentmods.dev/badge/skills/scientiacapital/unsloth-mcp-server/unsloth-finetuning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,202 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.00066 $0.02202
Opus 5 $0.00033 $0.01101
Sonnet 5 $0.00013 $0.00440
Haiku 4.5 $0.00007 $0.00220

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

Security

Grade A, and why

unsloth-finetuning 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 11d 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.

.claude/skills/unsloth-finetuning/SKILL.md · 329 lines

How it starts

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

Unsloth Fine-Tuning

Expert guidance for fine-tuning Large Language Models using Unsloth's optimized library.

Core Capabilities

  • Load models with 4-bit quantization and gradient checkpointing
  • Configure LoRA/QLoRA for efficient fine-tuning
  • Train on custom or Hugging Face datasets
  • Export models to GGUF, Ollama, vLLM, or Hugging Face formats
  • Monitor training with progress tracking
  • Optimize for different hardware configurations

Quick Start

1. Load a Model

from unsloth import FastLanguageModel

model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="unsloth/Llama-3.2-1B-bnb-4bit",
    max_seq_length=2048,
    load_in_4bit=True,
    use_gradient_checkpointing="unsloth"
)

Supported Models:

  • Llama 3.3 (70B), 3.2 (1B, 3B), 3.1 (8B)
  • Mistral v0.3 (7B), Small Instruct
  • Phi 3.5 mini, Phi 3 medium
  • Gemma 2 (9B, 27B)
  • Qwen 2.5 (7B)

2. Apply LoRA

model = FastLanguageModel.get_peft_model(
    model,
    r=16,                    # LoRA rank (8-64)
    target_modules=["q_proj", "k_proj", "v_proj", "o_proj",
                    "gate_proj", "up_proj", "down_proj"],
    lora_alpha=16,          # Scaling factor
    use_gradient_checkpointing="unsloth",
    random_state=3407,
    max_seq_length=2048
)

3. Configure Training

from trl import SFTTrainer, SFTConfig

trainer = SFTTrainer(
    model=model,
    train_dataset=dataset["train"],
    tokenizer=tokenizer,
    args=SFTConfig(
        per_device_train_batch_size=2,
        gradient_accumulation_steps=4,
        warmup_steps=10,
        max_steps=100,
        learning_rate=2e-4,
        logging_steps=1,
        output_dir="./output",
        optim="adamw_8bit",
        seed=3407
    )
)

4. Train

trainer.train()

5. Export

# GGUF format
model.save_pretrained_gguf(
    "model",
    tokenizer,
    quantization_method="q4_k_m"
)

# Hugging Face format
model.save_pretrained("./hf_model")
tokenizer.save_pretrained("./hf_model")

Read the full file on GitHub · 329 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. 11d ago First seen · 329 lines · 66 tokens per session scan A 24877b87ef24

Subscribe to this mod's changes

unsloth-finetuning is a skill published in the GitHub repository ScientiaCapital/unsloth-mcp-server (2 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,202 once invoked, about $0.0003 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.