svngoku/coding-agents-skills/unsloth-hf-jobs

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Fine-tune LLMs and VLMs using Unsloth on HF Jobs (Hugging Face on-demand cloud GPUs). Use when users want to fine-tune language models, train VLMs (Vision Language Models), do continued pretraining, domain adaptation, or run UV scripts on HF Jobs. Triggers on requests involving Unsloth training, HF Jobs GPU training, Qwen3-VL fine-tuning, Gemma VLM training, or LoRA fine-tuning on cloud GPUs.

Install

npx vskill@latest install svngoku/coding-agents-skills/unsloth-hf-jobs

SKILL.md

Unsloth Training on HF Jobs

Fine-tune LLMs and VLMs using Unsloth on HF Jobs with UV scripts that handle dependencies automatically.

Prerequisites

  • Hugging Face account with token
  • HF CLI: curl -LsSf https://hf.co/cli/install.sh | bash
  • Dataset on the Hub (see data formats below)

Available Scripts

ScriptBase ModelTask
scripts/sft-qwen3-vl.pyQwen3-VL-8BVLM fine-tuning
scripts/sft-gemma3-vlm.pyGemma 3 4BVLM fine-tuning (smaller)
scripts/continued-pretraining.pyQwen3-0.6BDomain adaptation

Remote URL (for HF Jobs): https://huggingface.co/datasets/uv-scripts/unsloth-jobs/raw/main/

Data Formats

VLM Fine-tuning

Requires images and messages columns:

python
{
"images": [<PIL.Image>],
"messages": [
{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "What's in this image?"}]},
{"role": "assistant", "content": [{"type": "text", "text": "A golden retriever playing fetch."}]}
]
}

Example dataset: davanstrien/iconclass-vlm-sft

Continued Pretraining

Any dataset with a text column (use --text-column if named differently):

python
{"text": "Your domain-specific text here..."}

Usage Patterns

VLM Fine-tuning
bash
hf jobs uv run \
https://huggingface.co/datasets/uv-scripts/unsloth-jobs/raw/main/sft-qwen3-vl.py \
--flavor a100-large --secrets HF_TOKEN --timeout 4h \
-- --dataset <username>/<dataset> \
--num-epochs 1 \
--eval-split 0.2 \
--output-repo <username>/<model-name>
Continued Pretraining
bash
hf jobs uv run \
https://huggingface.co/datasets/uv-scripts/unsloth-jobs/raw/main/continued-pretraining.py \
--flavor a100-large --secrets HF_TOKEN \
-- --dataset <username>/<dataset> \
--text-column content \
--max-steps 1000 \
--output-repo <username>/<model-name>
With Trackio Monitoring

Add --trackio-space <username>/trackio to any command for live monitoring.

Common Options

OptionDescriptionDefault
--datasetHF dataset IDrequired
--output-repoWhere to save trained modelrequired
--max-stepsTraining steps500
--num-epochsTrain for N epochs (overrides steps)-
--eval-splitFraction for evaluation0
--batch-sizePer-device batch size2
--gradient-accumulationAccumulation steps4
--lora-rLoRA rank16
--learning-rateLearning rate2e-4
--merge-modelUpload merged model (not just adapter)false
--streamingStream large datasetsfalse

Quick Tips

  • Verify setup with --max-steps 10 before full runs
  • Use --eval-split 0.1 to detect overfitting
  • Check GPU pricing: hf jobs hardware (A100-large ~$2.50/hr, L40S ~$1.80/hr)
  • First step may take minutes (CUDA kernel compilation)
  • View script options: uv run <script-url> --help

Anti-Patterns to Avoid

  • Skipping the smoke test — always verify setup with --max-steps 10 before a full run; config errors cost GPU hours
  • Wrong data format for VLMs — VLM fine-tuning requires images + messages columns with image + text content parts; plain text datasets silently fail or train nonsense
  • Forgetting `--secrets HF_TOKEN` — the job fails at model download/login; pass the secret explicitly
  • Batch size 1 without gradient accumulation — on A100 with 4-bit LoRA you can afford larger batches; accumulation of 1 wastes throughput
  • Uploading only the adapter when you need a merged model — set --merge-model if the target is deployment, not another fine-tuning pass
  • Training without `--eval-split` — you cannot detect overfitting or pick a checkpoint without a held-out split
  • Ignoring `--streaming` on huge datasets — disk may fill up; stream when the dataset doesn't fit locally

When to Use / Not Use

Use this skill when:

  • Fine-tuning LLMs or VLMs with Unsloth on HF on-demand cloud GPUs
  • Doing LoRA/QLoRA fine-tuning, continued pretraining, or domain adaptation via UV scripts
  • You have no local GPU or want ephemeral, pay-per-hour training

Do NOT use this skill when:

  • You have local GPUs and prefer on-premises training — use the unsloth skill directly
  • The model works with prompting/RAG and doesn't need fine-tuning at all
  • You need full control over a custom training stack (TRL, custom loops) — this skill is scoped to the provided UV scripts

Resources

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
11
Repository forks
1
7-day trend score
12

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/svngoku/coding-agents-skills/unsloth-hf-jobs/badge)](https://verified-skill.com/skills/svngoku/coding-agents-skills/unsloth-hf-jobs)

Something wrong with this skill or its page? Tell us.