Agent skill

unsloth-models

Stars 0
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/cuba6112/skillfactory/tree/main/skills/unsloth-models

SKILL.md

Overview

Unsloth supports a wide range of state-of-the-art model architectures, providing pre-quantized Hub variants and optimized kernels for models like Llama 4, DeepSeek-R1, and Qwen3. Selecting the right variant (Instruct vs Base) is critical for training success.

When to Use

  • When starting a new fine-tuning project and deciding on a base architecture.
  • When utilizing reasoning-heavy models (DeepSeek-R1) on consumer hardware.
  • When performing continued pre-training on domain-specific data.

Decision Tree

  1. Is the task conversational or instruction-following?
    • Yes: Use 'Instruct' variants.
  2. Is the task raw knowledge injection or domain pre-training?
    • Yes: Use 'Base' variants.
  3. Is reasoning/logic a priority?
    • Yes: Select DeepSeek-R1 Distills or similar architectures.

Workflows

Selecting the Right Model

  1. Use 'Instruct' models for conversational tasks or when data is limited.
  2. Use 'Base' models for domain-specific knowledge injection or raw text pre-training.
  3. Select 'unsloth-bnb-4bit' variants to leverage pre-calculated quantization statistics.

Fine-tuning DeepSeek-R1 Distills

  1. Load the specific distilled variant (e.g., Llama-8B).
  2. Use datasets including reasoning paths (Chain of Thought) to preserve logic capabilities.
  3. Apply optimized Llama 3.1 kernels during the SFT or DPO pipeline.

Non-Obvious Insights

  • Unsloth releases specialized 'distilled' versions of heavy reasoning models (like DeepSeek-R1) that are specifically optimized to fit on consumer hardware while retaining logic performance.
  • Choosing the 'unsloth-bnb-4bit' variants on the Hub is not just about speed; these variants include critical tokenizer fixes and pre-calculated quantization statistics that ensure better training stability.
  • New reasoning models can be trained from scratch or fine-tuned using GRPO (Group Relative Policy Optimization) natively within the Unsloth framework, bypassing the need for complex PPO setups.

Evidence

  • "Llama 4 by Meta, including Scout & Maverick are now supported." Source
  • "Instruct versions are used for inference or fine-tuning, while Base models are usually used for continued pre-training." Source

Scripts

  • scripts/unsloth-models_tool.py: Script to list and download recommended Unsloth-optimized models.
  • scripts/unsloth-models_tool.js: Comparison helper for model parameter sizes.

Dependencies

  • unsloth
  • huggingface_hub

References

  • [[references/README.md]]

Expand your agent's capabilities with these related and highly-rated skills.

cuba6112/skillfactory

prompt-engineering

Comprehensive prompt engineering techniques for Claude models. Use this skill when crafting, optimizing, or debugging prompts for Claude API, Claude Code, or any Claude-powered application. Covers system prompts, role prompting, multishot examples, chain of thought, XML structuring, long context handling, extended thinking, prompt chaining, Claude 4.x-specific best practices, and agentic orchestration including subagents, agent loops, skills, MCP integration, and multi-agent workflows.

0 0
Explore
cuba6112/skillfactory

adk-rag-agent

Build RAG (Retrieval-Augmented Generation) agents with Google ADK and Vertex AI RAG Engine. Use when implementing document Q&A, knowledge base search, or citation-backed responses. Covers VertexAiRagRetrieval tool, corpus setup, and citation formatting.

0 0
Explore
cuba6112/skillfactory

headless-cli-agents

Build agentic systems using Claude CLI in headless mode or the Claude Agent SDK. Use when building automation pipelines, CI/CD integrations, multi-agent orchestration, or programmatic Claude interactions. Covers CLI flags (-p, --output-format), session management (--resume, --continue), Python SDK (claude-agent-sdk), custom tools, and agent loop patterns.

0 0
Explore
cuba6112/skillfactory

notion-knowledge-capture

Capture conversations and decisions into structured Notion pages; use when turning chats/notes into wiki entries, how-tos, decisions, or FAQs with proper linking.

0 0
Explore
cuba6112/skillfactory

mcp-builder

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

0 0
Explore
cuba6112/skillfactory

gh-fix-ci

Inspect GitHub PR checks with gh, pull failing GitHub Actions logs, summarize failure context, then create a fix plan and implement after user approval. Use when a user asks to debug or fix failing PR CI/CD checks on GitHub Actions and wants a plan + code changes; for external checks (e.g., Buildkite), only report the details URL and mark them out of scope.

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results