跳到正文
cccskills
免费在 GitHub 公开

unsloth-hf-jobs

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.

中文简介正在准备中。当前显示原文说明。

集成工具Hugging Face

实测评分 未实测

查看安装方法

包含的文件(9)

  • SKILL.md5.2 KB
  • eval.yaml986 B
  • graders/check.py3.9 KB
  • instructions/qwen3-vl-finetune-hf-jobs.md1.5 KB
  • rubrics/quality.md1.5 KB
  • scripts/continued-pretraining.py12.0 KB
  • scripts/sft-gemma3-vlm.py11.0 KB
  • scripts/sft-qwen3-vl.py19.6 KB
  • solutions/reference-qwen3-vl-finetune-hf-jobs1.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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:

{
    "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):

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

Usage Patterns

VLM Fine-tuning

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

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Adaption AI SDK for synthetic data augmentation and dataset adaptation. Use when building data pipelines with the Adaption Python SDK, uploading datasets (local files, Hugging Face, Kaggle), running augmentation/adaptation jobs, configuring brand controls (hallucination mitigation, safety categories, length), recipe specifications (reasoning traces, deduplication, preference pairs, prompt rephrase), evaluating dataset quality, downloading results, or any workflow involving `pip install adaption`, `from adaption import Adaption`, Adaptive Data, or the adaptionlabs.ai API. Also trigger when the user mentions synthetic data generation for fine-tuning, dataset augmentation pipelines, DPO preference pair generation, or grounding-based hallucination reduction on training data.

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

Design and review intuitive, scalable, maintainable HTTP APIs. Use this skill whenever the user wants to design a new REST API, review an existing API or spec, write OpenAPI 3.x definitions, or work with HTTP semantics (GET/POST/PUT/PATCH/DELETE), status codes, idempotency (Idempotency-Key), error envelopes (RFC 7807 problem+json), pagination, filtering, versioning, or API auth (API keys, OAuth2 client credentials, rate limits). Also trigger for "API design", "RESTful", "endpoints", "OpenAPI", "Swagger", "ReDoc", "contract testing", or GraphQL and gRPC design questions.

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

Design relational database schemas (and choose when to go NoSQL) that stay maintainable and fast. Use this skill whenever the user mentions tables, DDL, entities and relationships, normalization (1NF/2NF/3NF), primary and foreign keys, UUID vs bigint IDs, indexes (B-tree, composite, covering, partial), EXPLAIN, constraints (CHECK, UNIQUE, exclusion), transactions and isolation levels, migrations (Alembic, Prisma, Flyway, expand-contract, backfilling), or SQL vs NoSQL (MongoDB, DynamoDB, Cassandra, graph databases). Also trigger for "design the database", "model this domain", "which database should I use", or writing ORM models and migration files for PostgreSQL, MySQL, SQLite, or SQL Server.

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

ddd

免费

Domain-Driven Design system for software development. Use when designing new systems with DDD principles, refactoring existing codebases toward DDD, generating code scaffolding (entities, aggregates, repositories, domain events), facilitating Event Storming sessions, creating bounded context maps, or performing code reviews with a DDD lens. Covers both strategic design (bounded contexts, subdomains, context maps, ubiquitous language) and tactical design (entities, value objects, aggregates, domain services, repositories). Supports all major architecture patterns (Hexagonal/Ports & Adapters, CQRS, Event Sourcing, Clean Architecture) with language-agnostic guidance and concrete examples in Python and TypeScript.

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

genai-tk

免费

Build GenAI and agentic apps with genai-tk (tclatos/genai-tk), a YAML-driven IoC toolkit over LangChain, DeepAgents, DeerFlow, and Prefect. Use this skill whenever the user mentions genai-tk, genai_tk, `cli init`, `cli agents run`, `LangchainAgent`, `create_harness`, `get_llm`, `global_config()`, `model_id@provider`, `agents:`/`agent_defaults:` profiles, `RetrieverFactory`, `cli workflow`, or BAML extraction. Also trigger for app_conf.yaml, GENAITK_PROFILE, CodeAct, OpenSandbox, decision models, or "the toolkit".

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

langchain

免费

Build AI agents with LangChain v1 and LangGraph in Python. Use this skill whenever the user mentions LangChain, LangGraph, create_agent, init_chat_model, @tool, ToolRuntime, agent middleware, human-in-the-loop, structured output, MCP tools (langchain.mcp, MCPAdapter), RAG, multi-agent handoffs or subagents, checkpointers, Deep Agents (create_deep_agent) or Managed Deep Agents (mda, define_deep_agent). Also trigger for migrating from create_react_agent, LLMChain, AgentExecutor or langchain-mcp-adapters, stream_events, SummarizationMiddleware, and langchain-classic.

中文简介正在准备中。当前显示原文说明。

svngoku/coding-agents-skills122026年10月21日 更新

查看 svngoku 的全部技能

报告此技能的问题