#705 by GitHub stars
OpenRaiser/NanoResearch
🦞+🔬 NanoResearch: The Autonomous AI Research Assistant
History
Review weekly changes to SKILL.md before updating. Dates mark the weeks in which we observed each version; checks apply to the recorded commits.
View weekly changes
skills/nanoresearch-experiment/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Instructions only
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/nanoresearch-ideation/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Instructions only
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/nanoresearch-planning/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Instructions only
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/nanoresearch-writing/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/0-autoresearch-skill/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/academic-plotting/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/accelerate/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/brainstorming-research-ideas/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Instructions only → After Instructions only
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Instructions only
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/creative-thinking-for-research/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/lm-evaluation-harness/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/ml-paper-writing/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/ml-training-recipes/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/peft/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/ray-data/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/skypilot/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
skills/vendor-ai-research/unsloth/SKILL.md
Week of Nov 2, 2026 · +0 / −0 lines
Before Network or broad shell → After Network or broad shell
584fd06f295b → 584fd06f295b
Week of Oct 26, 2026 · Line counts unavailable
Before Not checked yet → After Network or broad shell
First observation → 584fd06f295b
No earlier version was observed for comparison.
Verified commit 584fd06f295bda51712311794e63ee7b7a68f930
git clone --filter=blob:none --no-checkout https://github.com/OpenRaiser/NanoResearch.git .hotskills/openraiser-nanoresearch && git -C .hotskills/openraiser-nanoresearch checkout --detach 584fd06f295bda51712311794e63ee7b7a68f930
# Copy each selected skill directory from .hotskills/openraiser-nanoresearch into .claude/skills/<skill-name>/git clone --filter=blob:none --no-checkout https://github.com/OpenRaiser/NanoResearch.git .hotskills/openraiser-nanoresearch && git -C .hotskills/openraiser-nanoresearch checkout --detach 584fd06f295bda51712311794e63ee7b7a68f930
# Copy each selected skill directory from .hotskills/openraiser-nanoresearch into .agents/skills/<skill-name>/Heat
1.2- Star growth, last 7 daysAhead of 1% of tracked repositories
- Star growth, last 24 hoursAhead of 3% of tracked repositories
- Rank movement, last 7 daysAhead of 17% of tracked repositories
- Commits, last 30 daysAhead of 60% of tracked repositories
- Accounts asking about it through MCP, last 7 daysNot available
- Hot votes this weekAhead of 0% of tracked repositories
Heat never changes the order by stars, and sponsorship never touches it. How heat works
Stars over time
Individual skills in this repository
- nanoresearch-experiment
skills/nanoresearch-experiment - nanoresearch-ideation
skills/nanoresearch-ideation - nanoresearch-planning
skills/nanoresearch-planning - nanoresearch-writing
skills/nanoresearch-writing - autoresearch
skills/vendor-ai-research/0-autoresearch-skill - academic-plotting
skills/vendor-ai-research/academic-plotting - huggingface-accelerate
skills/vendor-ai-research/accelerate - brainstorming-research-ideas
skills/vendor-ai-research/brainstorming-research-ideas - creative-thinking-for-research
skills/vendor-ai-research/creative-thinking-for-research - evaluating-llms-harness
skills/vendor-ai-research/lm-evaluation-harness - ml-paper-writing
skills/vendor-ai-research/ml-paper-writing - ml-training-recipes
skills/vendor-ai-research/ml-training-recipes - peft-fine-tuning
skills/vendor-ai-research/peft - ray-data
skills/vendor-ai-research/ray-data - skypilot-multi-cloud-orchestration
skills/vendor-ai-research/skypilot - unsloth
skills/vendor-ai-research/unsloth
How it works
nanoresearch-experiment
When your agent uses it
Generate a Python code skeleton from an experiment blueprint
What it loads into context
Frontmatter
28 tokensAlways available to the agent
SKILL.md
338 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Purpose
- Tools Required
- Input
- Process
- Output
Files
SKILL.mdcore1,690 bytes
Read SKILL.md
# Experiment Skill
## Purpose
Take the experiment blueprint and produce a runnable Python code skeleton that implements the proposed method, baselines, training loops, evaluation harness, and ablation configurations.
## Tools Required
None. This skill operates entirely through LLM code generation based on the experiment blueprint.
## Input
- `experiment_blueprint`: Path to `papers/experiment_blueprint.json` produced by the planning skill
## Process
1. Parse the experiment blueprint for datasets, baselines, metrics, and ablation groups
2. Generate the project directory structure (data loaders, models, training, evaluation, configs)View the complete source on GitHubnanoresearch-ideation
When your agent uses it
Search academic literature and generate research hypotheses
What it loads into context
Frontmatter
27 tokensAlways available to the agent
SKILL.md
225 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Purpose
- Tools Required
- Input
- Process
- Output
Files
SKILL.mdcore1,021 bytes
Read SKILL.md
# Ideation Skill
## Purpose
Search arXiv and Semantic Scholar for papers related to a research topic, perform gap analysis, and generate novel hypotheses.
## Tools Required
- `search_arxiv`: Search arXiv for papers
- `search_semantic_scholar`: Search Semantic Scholar for papers and citations
## Input
- `topic`: The research topic or question to investigate
## Process
1. Generate 5-8 diverse search queries from the topicView the complete source on GitHubnanoresearch-planning
When your agent uses it
Produce an experiment blueprint from a research hypothesis
What it loads into context
Frontmatter
27 tokensAlways available to the agent
SKILL.md
279 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Purpose
- Tools Required
- Input
- Process
- Output
Files
SKILL.mdcore1,449 bytes
Read SKILL.md
# Planning Skill
## Purpose
Take the selected hypothesis from ideation and produce a detailed experiment blueprint specifying datasets, baselines, evaluation metrics, and ablation groups.
## Tools Required
None. This skill operates entirely through LLM reasoning over the ideation output.
## Input
- `ideation_output`: Path to `papers/ideation_output.json` produced by the ideation skill
## Process
1. Parse the selected hypothesis and supporting literature from the ideation output
2. Identify candidate datasets that are publicly available and appropriate for validating the hypothesisView the complete source on GitHubnanoresearch-writing
When your agent uses it
Draft a LaTeX research paper from all previous stage outputs
What it loads into context
Frontmatter
30 tokensAlways available to the agent
SKILL.md
478 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Purpose
- Tools Required
- Input
- Process
- Output
Files
SKILL.mdcore2,208 bytesSKILL.mdcore2,208 bytesSKILL.mdcore2,208 bytesSKILL.mdcore2,208 bytesSKILL.mdcore2,208 bytes
Read SKILL.md
# Writing Skill
## Purpose
Take all previous outputs (ideation, planning, experiment results) and produce a complete LaTeX paper draft with figures, tables, and bibliography.
## Tools Required
- `generate_latex`: Generate and assemble LaTeX source files for each paper section
- `compile_pdf`: Compile the LaTeX source into a PDF document
- `generate_figure`: Produce publication-quality figures from experiment results
## Input
- `ideation_output`: Path to `papers/ideation_output.json` from the ideation skill
- `experiment_blueprint`: Path to `papers/experiment_blueprint.json` from the planning skill
- `experiment_results`: Path to `experiments/` directory containing code and results from the experiment skillView the complete source on GitHubautoresearch
When your agent uses it
Orchestrates end-to-end autonomous AI research projects using a two-loop architecture. The inner loop runs rapid experiment iterations with clear optimization targets. The outer loop synthesizes results, identifies patterns, and steers research direction. Routes to domain-specific skills for execution, supports continuous agent operation via Claude Code /loop and OpenClaw heartbeat, and produces research presentations and papers. Use when starting a research project, running autonomous experiments, or managing a multi-hypothesis research effort.
What it loads into context
Frontmatter
144 tokensAlways available to the agent
SKILL.md
5,297 tokensWhen the skill is activated
Reference documents
6,642 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Getting Started
- The Two-Loop Architecture
- Bootstrap: Literature and Hypotheses
- The Inner Loop
- The Outer Loop
- Agent Continuity (MANDATORY — Set Up First)
- Progress Reporting
- Git Protocol
- Concluding: Paper Writing
- Research Discipline
- Quality Standards
- When to Use vs Alternatives
- Common Issues
- Advanced Topics
Files
SKILL.mdcore24,945 bytesSKILL.mdcore24,945 bytesreferences/agent-continuity.mddoc4,690 bytesreferences/progress-reporting.mddoc6,467 bytesreferences/skill-routing.mddoc8,546 bytestemplates/findings.mddoc1,494 bytestemplates/progress-presentation.htmlasset8,685 bytestemplates/research-log.mddoc5,011 bytestemplates/research-state.yamlasset2,102 bytes
Read SKILL.md
# Autoresearch
Autonomous research orchestration for AI coding agents. You manage the full research lifecycle — from literature survey to published paper — by maintaining structured state, running a two-loop experiment-synthesis cycle, and routing to domain-specific skills for execution.
You are a research project manager, not a domain expert. You orchestrate; the domain skills execute.
**This runs fully autonomously.** Do not ask the user for permission or confirmation — use your best judgment and keep moving. Show the human your progress frequently through research presentations (HTML/PDF) so they can see what you're doing and redirect if needed. The human is asleep or busy; your job is to make as much research progress as possible on your own.
## Getting Started
Users arrive in different states. Determine which and proceed:
| User State | What to Do |
|---|---|View the complete source on GitHubacademic-plotting
When your agent uses it
Generates publication-quality figures for ML papers from research context. Given a paper section or description, extracts system components and relationships to generate architecture diagrams via Gemini. Given experiment results or data, auto-selects chart type and generates data-driven figures via matplotlib/seaborn. Use when creating any figure for a conference paper.
What it loads into context
Frontmatter
159 tokensAlways available to the agent
SKILL.md
5,470 tokensWhen the skill is activated
Reference documents
10,799 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use Which Workflow
- Step 0: Context Analysis & Extraction
- Workflow 1: Architecture & System Diagrams (AI Image Generation)
- Workflow 2: Data-Driven Charts (matplotlib/seaborn)
- Publication Style Quick Reference
- Common Issues
- When to Use vs Alternatives
- Quick Reference: File Naming Convention
Files
SKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesSKILL.mdcore21,149 bytesreferences/data-visualization.mddoc15,393 bytesreferences/diagram-generation.mddoc15,426 bytesreferences/style-guide.mddoc8,652 bytes
Read SKILL.md
# Academic Plotting for ML Papers
Generate publication-quality figures for ML/AI conference papers. Two distinct workflows:
1. **Diagram figures** (architecture, system design, workflows, pipelines) — AI image generation via Gemini
2. **Data figures** (line charts, bar charts, scatter plots, heatmaps, ablations) — matplotlib/seaborn
## When to Use Which Workflow
| Figure Type | Tool | Why |
|-------------|------|-----|
| Architecture / system diagram | Gemini (Workflow 1) | Complex spatial layouts with boxes, arrows, labels |
| Workflow / pipeline / lifecycle | Gemini (Workflow 1) | Multi-step processes with connections |
| Bar chart, line plot, scatter | matplotlib (Workflow 2) | Precise numerical data, reproducible |View the complete source on GitHubhuggingface-accelerate
When your agent uses it
Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.
What it loads into context
Frontmatter
134 tokensAlways available to the agent
SKILL.md
2,079 tokensWhen the skill is activated
Reference documents
9,163 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Quick start
- Common workflows
- When to use vs alternatives
- Common issues
- Advanced topics
- Hardware requirements
- Resources
Files
SKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesSKILL.mdcore8,340 bytesreferences/custom-plugins.mddoc11,781 bytesreferences/megatron-integration.mddoc11,252 bytesreferences/performance.mddoc12,569 bytes
Read SKILL.md
# HuggingFace Accelerate - Unified Distributed Training
## Quick start
Accelerate simplifies distributed training to 4 lines of code.
**Installation**:
```bash
pip install accelerate
```
**Convert PyTorch script** (4 lines):
```python
import torchView the complete source on GitHubbrainstorming-research-ideas
When your agent uses it
Guides researchers through structured ideation frameworks to discover high-impact research directions. Use when exploring new problem spaces, pivoting between projects, or seeking novel angles on existing work.
What it loads into context
Frontmatter
85 tokensAlways available to the agent
SKILL.md
4,184 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use This Skill
- Core Ideation Frameworks
- Integrated Brainstorming Workflow
- Framework Selection Guide
- Common Pitfalls in Research Ideation
- Usage Instructions for Agents
Files
SKILL.mdcore19,150 bytes
Read SKILL.md
# Research Idea Brainstorming
Structured frameworks for discovering the next research idea. This skill provides ten complementary ideation lenses that help researchers move from vague curiosity to concrete, defensible research proposals. Each framework targets a different cognitive mode—use them individually or combine them for comprehensive exploration.
## When to Use This Skill
- Starting a new research direction and need structured exploration
- Feeling stuck on a current project and want fresh angles
- Evaluating whether a half-formed idea has real potential
- Preparing for a brainstorming session with collaborators
- Transitioning between research areas and seeking high-leverage entry points
- Reviewing a field and looking for underexplored gaps
**Do NOT use this skill when**:View the complete source on GitHubcreative-thinking-for-research
When your agent uses it
Applies cognitive science frameworks for creative thinking to CS and AI research ideation. Use when seeking genuinely novel research directions by leveraging combinatorial creativity, analogical reasoning, constraint manipulation, and other empirically grounded creative strategies.
What it loads into context
Frontmatter
96 tokensAlways available to the agent
SKILL.md
4,675 tokensWhen the skill is activated
Reference documents
0 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use This Skill
- Framework 1: Combinatorial Creativity (Bisociation)
- Framework 2: Problem Reformulation (Representational Change)
- Framework 3: Analogical Reasoning (Structure-Mapping)
- Framework 4: Constraint Manipulation (Boden's Framework)
- Framework 5: Negation and Inversion
- Framework 6: Abstraction and Generalization Laddering
- Framework 7: The Adjacent Possible (Kauffman / Johnson)
- Framework 8: Janusian and Dialectical Thinking
- Combining Frameworks: A Creative Thinking Protocol
- Common Creative Blocks and Unblocking Strategies
- Usage Instructions for Agents
Files
SKILL.mdcore21,962 bytesSKILL.mdcore21,962 bytesSKILL.mdcore21,962 bytesSKILL.mdcore21,962 bytes
Read SKILL.md
# Creative Thinking for Research
Eight empirically grounded frameworks from cognitive science, applied to computer science and AI research. Unlike ad-hoc brainstorming, each framework here is backed by decades of creativity research — from Koestler's bisociation to Kauffman's adjacent possible. They target distinct cognitive operations: combining, reformulating, analogizing, constraining, inverting, abstracting, exploring boundaries, and holding contradictions.
## When to Use This Skill
- Generating genuinely novel ideas, not incremental extensions of prior work
- Feeling trapped in a local optimum of thinking within a single subfield
- Wanting to systematically apply creativity heuristics rather than waiting for inspiration
- Preparing for a research retreat or PhD-level ideation session
- Bridging between fields and seeking structural (not superficial) connections
**Do NOT use this skill when**:
- You need structured project-level brainstorming workflows (use `brainstorming-research-ideas`)View the complete source on GitHubevaluating-llms-harness
When your agent uses it
Evaluates LLMs across 60+ academic benchmarks (MMLU, HumanEval, GSM8K, TruthfulQA, HellaSwag). Use when benchmarking model quality, comparing models, reporting academic results, or tracking training progress. Industry standard used by EleutherAI, HuggingFace, and major labs. Supports HuggingFace, vLLM, APIs.
What it loads into context
Frontmatter
156 tokensAlways available to the agent
SKILL.md
3,474 tokensWhen the skill is activated
Reference documents
13,497 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Quick start
- Common workflows
- When to use vs alternatives
- Common issues
- Advanced topics
- Hardware requirements
- Resources
Files
SKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesSKILL.mdcore11,895 bytesreferences/api-evaluation.mddoc11,192 bytesreferences/benchmark-guide.mddoc10,769 bytesreferences/custom-tasks.mddoc13,125 bytesreferences/distributed-eval.mddoc11,426 bytes
Read SKILL.md
# lm-evaluation-harness - LLM Benchmarking
## Quick start
lm-evaluation-harness evaluates LLMs across 60+ academic benchmarks using standardized prompts and metrics.
**Installation**:
```bash
pip install lm-eval
```
**Evaluate any HuggingFace model**:
```bash
lm_eval --model hf \View the complete source on GitHubml-paper-writing
When your agent uses it
Write publication-ready ML/AI/Systems papers for NeurIPS, ICML, ICLR, ACL, AAAI, COLM, OSDI, NSDI, ASPLOS, SOSP. Use when drafting papers from research repos, structuring arguments, verifying citations, or preparing camera-ready submissions. Includes LaTeX templates, reviewer guidelines, and citation verification workflows.
What it loads into context
Frontmatter
170 tokensAlways available to the agent
SKILL.md
9,597 tokensWhen the skill is activated
Reference documents
32,279 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Core Philosophy: Collaborative Writing
- ⚠<U+FE0F> CRITICAL: Never Hallucinate Citations
- Workflow 0: Starting from a Research Repository
- When to Use This Skill
- Balancing Proactivity and Collaboration
- The Narrative Principle
- Paper Structure Workflow
- Writing Philosophy for Top ML Conferences
- Conference Requirements Quick Reference
- Using LaTeX Templates Properly
- Conference Resubmission & Format Conversion
- Citation Workflow (Hallucination Prevention)
- Common Issues and Solutions
- Reviewer Evaluation Criteria
- Tables and Figures
- Citing AI Research Skills
- References & Resources
Scripts executed separately
templates/neurips2025/Makefile
Files
SKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesSKILL.mdcore39,452 bytesreferences/checklists.mddoc17,513 bytesreferences/citation-workflow.mddoc15,167 bytesreferences/reviewer-guidelines.mddoc15,237 bytesreferences/sources.mddoc8,880 bytesreferences/systems-conferences.mddoc10,256 bytesreferences/writing-guide.mddoc16,297 bytestemplates/README.mddoc11,513 bytestemplates/aaai2026/README.mddoc17,987 bytestemplates/aaai2026/aaai2026-unified-supp.texasset4,548 bytestemplates/aaai2026/aaai2026-unified-template.texasset63,140 bytestemplates/aaai2026/aaai2026.bibasset4,766 bytestemplates/aaai2026/aaai2026.bstasset30,207 bytestemplates/aaai2026/aaai2026.styasset11,802 bytestemplates/acl/README.mddoc2,126 bytestemplates/acl/acl.styasset11,615 bytestemplates/acl/acl_latex.texasset14,533 bytestemplates/acl/acl_lualatex.texasset3,050 bytestemplates/acl/acl_natbib.bstasset45,186 bytestemplates/acl/anthology.bib.txtdoc1,169 bytestemplates/acl/custom.bibasset2,071 bytestemplates/acl/formatting.mddoc17,923 bytestemplates/asplos2027/main.texasset15,845 bytestemplates/asplos2027/references.bibasset5,172 bytestemplates/colm2025/README.mddoc51 bytestemplates/colm2025/colm2025_conference.bibasset496 bytestemplates/colm2025/colm2025_conference.bstasset26,973 bytestemplates/colm2025/colm2025_conference.pdfasset122,635 bytestemplates/colm2025/colm2025_conference.styasset7,727 bytestemplates/colm2025/colm2025_conference.texasset12,830 bytestemplates/colm2025/fancyhdr.styasset20,521 bytestemplates/colm2025/math_commands.texasset12,284 bytestemplates/colm2025/natbib.styasset45,154 bytestemplates/iclr2026/fancyhdr.styasset20,521 bytestemplates/iclr2026/iclr2026_conference.bibasset629 bytestemplates/iclr2026/iclr2026_conference.bstasset26,973 bytestemplates/iclr2026/iclr2026_conference.pdfasset200,508 bytestemplates/iclr2026/iclr2026_conference.styasset9,025 bytestemplates/iclr2026/iclr2026_conference.texasset16,899 bytestemplates/iclr2026/math_commands.texasset12,284 bytestemplates/iclr2026/natbib.styasset45,154 bytestemplates/icml2026/algorithm.styasset2,223 bytestemplates/icml2026/algorithmic.styasset7,414 bytestemplates/icml2026/example_paper.bibasset2,051 bytestemplates/icml2026/example_paper.pdfasset193,509 bytestemplates/icml2026/example_paper.texasset29,714 bytestemplates/icml2026/fancyhdr.styasset31,715 bytestemplates/icml2026/icml2026.bstasset27,147 bytestemplates/icml2026/icml2026.styasset27,344 bytestemplates/icml2026/icml_numpapers.pdfasset2,823 bytestemplates/neurips2025/Makefileruns1,054 bytestemplates/neurips2025/extra_pkgs.texasset2,837 bytestemplates/neurips2025/main.texasset574 bytestemplates/neurips2025/neurips.styasset11,625 bytestemplates/nsdi2027/main.texasset15,006 bytestemplates/nsdi2027/references.bibasset5,848 bytestemplates/nsdi2027/usenix-2020-09.styasset2,294 bytestemplates/osdi2026/main.texasset14,716 bytestemplates/osdi2026/references.bibasset5,785 bytestemplates/osdi2026/usenix-2020-09.styasset2,294 bytestemplates/sosp2026/main.texasset17,451 bytestemplates/sosp2026/references.bibasset5,395 bytes
Read SKILL.md
# ML Paper Writing for Top AI & Systems Conferences
Expert-level guidance for writing publication-ready papers targeting **NeurIPS, ICML, ICLR, ACL, AAAI, COLM** (ML/AI venues) and **OSDI, NSDI, ASPLOS, SOSP** (Systems venues). This skill combines writing philosophy from top researchers (Nanda, Farquhar, Karpathy, Lipton, Steinhardt) with practical tools: LaTeX templates, citation verification APIs, and conference checklists.
## Core Philosophy: Collaborative Writing
**Paper writing is collaborative, but Claude should be proactive in delivering drafts.**
The typical workflow starts with a research repository containing code, results, and experimental artifacts. Claude's role is to:
1. **Understand the project** by exploring the repo, results, and existing documentation
2. **Deliver a complete first draft** when confident about the contribution
3. **Search literature** using web search and APIs to find relevant citations
4. **Refine through feedback cycles** when the scientist provides inputView the complete source on GitHubml-training-recipes
When your agent uses it
Battle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning neural networks, debugging loss spikes or OOM, choosing architectures, or optimizing GPU throughput.
What it loads into context
Frontmatter
151 tokensAlways available to the agent
SKILL.md
3,038 tokensWhen the skill is activated
Reference documents
21,720 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- Reference files (read when needed)
- Architecture Selection
- Scaling Laws
- Training Loop
- Optimizer Configuration
- Learning Rate Scheduling
- Mixed Precision & Compilation
- Memory & Performance
- Hyperparameter Search
- Debugging Checklist
- Experiment Management
Files
SKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesSKILL.mdcore11,483 bytesreferences/architecture.mddoc10,523 bytesreferences/biomedical.mddoc21,275 bytesreferences/domain-specific.mddoc19,643 bytesreferences/experiment-loop.mddoc4,574 bytesreferences/optimizers.mddoc10,893 bytesreferences/scaling-and-selection.mddoc17,259 bytes
Read SKILL.md
# ML Training Recipes
Battle-tested patterns for PyTorch training across domains. Drawn from production codebases
(Karpathy's autoresearch/nanochat, torchvision, HuggingFace) and modern training practice.
## Reference files (read when needed)
- `references/architecture.md` — Transformer/LLM architecture code patterns, weight init
- `references/optimizers.md` — Muon, AdamW hybrid, per-group LR, compiled optimizer steps
- `references/domain-specific.md` — Vision, diffusion, contrastive, distributed, checkpointing, data loading
- `references/scaling-and-selection.md` — Scaling laws, compute budget tables, decision trees, DGX Spark
- `references/biomedical.md` — Drug discovery, protein models, medical imaging, genomics, clinical NLP
- `references/experiment-loop.md` — Autonomous experiment loop (autoresearch keep/discard/revert)
View the complete source on GitHubpeft-fine-tuning
When your agent uses it
Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods. Use when fine-tuning large models (7B-70B) with limited GPU memory, when you need to train <1% of parameters with minimal accuracy loss, or for multi-adapter serving. HuggingFace's official library integrated with transformers ecosystem.
What it loads into context
Frontmatter
177 tokensAlways available to the agent
SKILL.md
3,463 tokensWhen the skill is activated
Reference documents
5,928 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to use PEFT
- Quick start
- LoRA parameter selection
- Loading and merging adapters
- PEFT methods comparison
- Integration patterns
- Performance benchmarks
- Common issues
- Best practices
- References
- Resources
Files
SKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesSKILL.mdcore12,210 bytesreferences/advanced-usage.mddoc12,541 bytesreferences/troubleshooting.mddoc10,344 bytes
Read SKILL.md
# PEFT (Parameter-Efficient Fine-Tuning)
Fine-tune LLMs by training <1% of parameters using LoRA, QLoRA, and 25+ adapter methods.
## When to use PEFT
**Use PEFT/LoRA when:**
- Fine-tuning 7B-70B models on consumer GPUs (RTX 4090, A100)
- Need to train <1% parameters (6MB adapters vs 14GB full model)
- Want fast iteration with multiple task specific adapters
- Deploying multiple fine-tuned variants from one base model
**Use QLoRA (PEFT + quantization) when:**
- Fine-tuning 70B models on single 24GB GPUView the complete source on GitHubray-data
When your agent uses it
Scalable data processing for ML workloads. Streaming execution across CPU/GPU, supports Parquet/CSV/JSON/images. Integrates with Ray Train, PyTorch, TensorFlow. Scales from single machine to 100s of nodes. Use for batch inference, data preprocessing, multi-modal data loading, or distributed ETL pipelines.
What it loads into context
Frontmatter
137 tokensAlways available to the agent
SKILL.md
1,917 tokensWhen the skill is activated
Reference documents
899 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to use Ray Data
- Quick start
- Reading data
- Transformations
- GPU-accelerated transforms
- Writing data
- Performance optimization
- Common patterns
- Integration with ML frameworks
- Supported data formats
- Performance benchmarks
- Use cases
- References
- Resources
Files
SKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesSKILL.mdcore7,328 bytesreferences/integration.mddoc1,851 bytesreferences/transformations.mddoc1,664 bytes
Read SKILL.md
# Ray Data - Scalable ML Data Processing
Distributed data processing library for ML and AI workloads.
## When to use Ray Data
**Use Ray Data when:**
- Processing large datasets (>100GB) for ML training
- Need distributed data preprocessing across cluster
- Building batch inference pipelines
- Loading multi-modal data (images, audio, video)
- Scaling data processing from laptop to cluster
**Key features**:View the complete source on GitHubskypilot-multi-cloud-orchestration
When your agent uses it
Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.
What it loads into context
Frontmatter
107 tokensAlways available to the agent
SKILL.md
2,725 tokensWhen the skill is activated
Reference documents
5,031 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to use SkyPilot
- Quick start
- Core concepts
- GPU configuration
- Cluster management
- Distributed training
- Managed jobs
- File mounts and storage
- Sky Serve (Model Serving)
- Cost optimization
- Common workflows
- Debugging
- Common issues
- References
- Resources
Files
SKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesSKILL.mdcore9,641 bytesreferences/advanced-usage.mddoc7,469 bytesreferences/troubleshooting.mddoc10,493 bytes
Read SKILL.md
# SkyPilot Multi-Cloud Orchestration
Comprehensive guide to running ML workloads across clouds with automatic cost optimization using SkyPilot.
## When to use SkyPilot
**Use SkyPilot when:**
- Running ML workloads across multiple clouds (AWS, GCP, Azure, etc.)
- Need cost optimization with automatic cloud/region selection
- Running long jobs on spot instances with auto-recovery
- Managing distributed multi-node training
- Want unified interface for 20+ cloud providers
- Need to avoid vendor lock-in
View the complete source on GitHubunsloth
When your agent uses it
Expert guidance for fast fine-tuning with Unsloth - 2-5x faster training, 50-80% less memory, LoRA/QLoRA optimization
What it loads into context
Frontmatter
121 tokensAlways available to the agent
SKILL.md
492 tokensWhen the skill is activated
Reference documents
556,224 tokensLoaded on request
Token counts are estimates. Scripts run separately; they are not counted as reference context.
The playbook
- When to Use This Skill
- Quick Reference
- Reference Files
- Working with This Skill
- Resources
- Notes
- Updating
Files
SKILL.mdcore2,307 bytesSKILL.mdcore2,307 bytesreferences/index.mddoc98 bytesreferences/llms-full.mddoc1,077,222 bytesreferences/llms-txt.mddoc813,092 bytesreferences/llms.mddoc12,507 bytes
Read SKILL.md
# Unsloth Skill
Comprehensive assistance with unsloth development, generated from official documentation.
## When to Use This Skill
This skill should be triggered when:
- Working with unsloth
- Asking about unsloth features or APIs
- Implementing unsloth solutions
- Debugging unsloth code
- Learning unsloth best practices
## Quick ReferenceView the complete source on GitHubSkills included
- nanoresearch-experiment
- nanoresearch-ideation
- nanoresearch-planning
- nanoresearch-writing
- autoresearch
- academic-plotting
- huggingface-accelerate
- brainstorming-research-ideas
- creative-thinking-for-research
- evaluating-llms-harness
- ml-paper-writing
- ml-training-recipes
- peft-fine-tuning
- ray-data
- skypilot-multi-cloud-orchestration
- unsloth
Repository facts
- License
- MIT
- Created
- Mar 17, 2026
- Last pushed
- Oct 9, 2026
- Forks
- 91
- Open issues
- 6
- Project activity
- Active
Rank over the last 12 weeks
Now #705 · best #477 · down 114 in 30 days
- #693 on Nov 1
- #695 on Nov 2
- #701 on Nov 3
- #702 on Nov 4
- #706 on Nov 5
- #705 since Nov 6
34 earlier periods
- #460 on Aug 2
- #465 on Aug 7
- #480 on Aug 11
- #486 on Aug 14
- #477 on Aug 16
- #492 on Aug 21
- #498 on Aug 23
- #497 on Aug 24
- #507 on Aug 25
- #512 on Aug 28
- #497 on Aug 29
- #511 on Aug 31
- #514 on Sep 1
- #511 on Sep 2
- #517 on Sep 3
- #530 on Sep 8
- #522 on Sep 15
- #536 on Sep 16
- #533 on Sep 17
- #526 on Sep 24
- #547 on Sep 27
- #538 on Oct 4
- #566 on Oct 7
- #591 on Oct 8
- #583 on Oct 12
- #585 on Oct 13
- #596 on Oct 17
- #611 on Oct 19
- #607 on Oct 23
- #671 on Oct 25
- #681 on Oct 28
- #685 on Oct 29
- #688 on Oct 30
- #692 on Oct 31
Before you install
Network or broad shellAutomated signals, not a guarantee
Checked Nov 3, 2026
Not fully analyzed: some files were too long, unreadable or missing. This never lowers the level.
Show 137 notes
skills/nanoresearch-writing/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/nanoresearch-writing/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/nanoresearch-writing/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/nanoresearch-writing/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/0-autoresearch-skill/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/academic-plotting/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzedskills/vendor-ai-research/accelerate/SKILL.md:1Analysis incomplete: Referenced executable target unavailable; not analyzed
- No broad tool permissions
- 73 dangerous shell commandsin 10 files: ml-paper-writing/templates/aaai2026/aaai2026-unified-template.tex:121 unsloth/references/llms-full.md:1029 unsloth/references/llms-txt.md:188 and 7 more
- 3,457 network referencesin 46 files: unsloth/references/llms-txt.md:35 unsloth/references/llms-full.md:5 ml-paper-writing/references/sources.md:11 and 43 more
- 4 obfuscation signalsin 2 files: unsloth/references/llms-full.md:556 unsloth/references/llms-txt.md:400
- No instruction overrides
- 1 executable scriptin 1 file: ml-paper-writing/templates/neurips2025/Makefile:1
- 102 references to secretsin 12 files: unsloth/references/llms-full.md:1139 unsloth/references/llms-txt.md:12 lm-evaluation-harness/references/api-evaluation.md:36 and 9 more
- No requests to vote in Hot
Show all 3,637 signals by file
skills/vendor-ai-research/0-autoresearch-skill/references/progress-reporting.md
skills/vendor-ai-research/academic-plotting/SKILL.md
- Access to secretsline 195
[Credential-related source omitted] - Access to secretsline 231
[Credential-related source omitted] - Network accessline 232
[Credential-related source omitted] - Access to secretsline 232
[Credential-related source omitted] - Network accessline 233
[Credential-related source omitted] - Access to secretsline 233
[Credential-related source omitted] - Network accessline 234
print(" Get a key at: https://aistudio.google.com/apikey") - Access to secretsline 239
[Credential-related source omitted] - Access to secretsline 291
[Credential-related source omitted]
skills/vendor-ai-research/accelerate/SKILL.md
- Network accessline 324
- Docs: https://huggingface.co/docs/accelerate - Network accessline 325
- GitHub: https://github.com/huggingface/accelerate - Network accessline 326
- Version: 1.11.0+ - Tutorial: "Accelerate your scripts" - Examples: https://github.com/huggingface/accelerate/tree/main/examples - Network accessline 327
- Tutorial: "Accelerate your scripts" - Examples: https://github.com/huggingface/accelerate/tree/main/examples - Used by: HuggingFace Transformers, TRL, PEFT, all HF libraries - Network accessline 328
- Examples: https://github.com/huggingface/accelerate/tree/main/examples
skills/vendor-ai-research/accelerate/references/custom-plugins.md
- Network accessline 450
- Accelerate Plugins: https://huggingface.co/docs/accelerate/package_reference/kwargs - Network accessline 451
- DeepSpeed Config: https://www.deepspeed.ai/docs/config-json/ - Network accessline 452
- FSDP Guide: https://pytorch.org/docs/stable/fsdp.html - Network accessline 453
- Custom Training Loops: https://huggingface.co/docs/accelerate/usage_guides/training_tpu
skills/vendor-ai-research/accelerate/references/megatron-integration.md
- Network accessline 18
# Clone Megatron-LM repository git clone https://github.com/NVIDIA/Megatron-LM.git - Network accessline 19
git clone https://github.com/NVIDIA/Megatron-LM.git - Network accessline 23
# Install Apex (NVIDIA optimizations) git clone https://github.com/NVIDIA/apex - Network accessline 24
git clone https://github.com/NVIDIA/apex - Network accessline 486
- Megatron-LM: https://github.com/NVIDIA/Megatron-LM - Network accessline 487
- Accelerate Megatron docs: https://huggingface.co/docs/accelerate/usage_guides/megatron_lm - Network accessline 489
- NVIDIA Apex: https://github.com/NVIDIA/apex
skills/vendor-ai-research/accelerate/references/performance.md
- Access to secretsline 303
[Credential-related source omitted] - Network accessline 522
- Accelerate Performance: https://huggingface.co/docs/accelerate/usage_guides/performance - Network accessline 523
- PyTorch Profiler: https://pytorch.org/tutorials/recipes/recipes/profiler_recipe.html - Network accessline 524
- NCCL Tuning: https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html - Network accessline 525
- Flash Attention: https://github.com/Dao-AILab/flash-attention
skills/vendor-ai-research/lm-evaluation-harness/SKILL.md
- Dangerous shell operationline 184
Avoid for frequent eval (too slow): - Network accessline 484
- GitHub: https://github.com/EleutherAI/lm-evaluation-harness - Network accessline 485
- Docs: https://github.com/EleutherAI/lm-evaluation-harness/tree/main/docs - Network accessline 487
- Leaderboard: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard (uses this harness)
skills/vendor-ai-research/lm-evaluation-harness/references/api-evaluation.md
- Access to secretsline 36
[Credential-related source omitted] - Network accessline 77
lm_eval --model openai-chat-completions --model_args model=gpt-4-turbo, base_url=https://api.openai.com/v1, - Network accessline 80
base_url=https://api.openai.com/v1,\ - Access to secretsline 121
[Credential-related source omitted] - Network accessline 150
lm_eval --model anthropic-chat --model_args model=claude-3-5-sonnet-20241022, base_url=https://api.anthropic.com, - Network accessline 153
base_url=https://api.anthropic.com,\ - Network accessline 196
lm_eval --model local-completions --model_args model=meta-llama/Llama-2-7b-hf, base_url=http://localhost:8000/v1, - Network accessline 199
base_url=http://localhost:8000/v1,\ - Network accessline 216
lm_eval --model local-completions --model_args model=meta-llama/Llama-2-7b-hf, base_url=http://localhost:8080/v1 - Network accessline 219
base_url=http://localhost:8080/v1 \ - Network accessline 233
lm_eval --model local-completions --model_args model=llama2:7b, base_url=http://localhost:11434/v1 - Network accessline 236
base_url=http://localhost:11434/v1 \ - Network accessline 249
lm_eval --model local-completions --model_args model=llama2, base_url=http://localhost:8080/v1 - Network accessline 252
base_url=http://localhost:8080/v1 \ - Access to secretsline 269
[Credential-related source omitted] - Access to secretsline 271
[Credential-related source omitted] - Access to secretsline 277
[Credential-related source omitted] - Network accessline 300
model = MyCustomAPI( base_url="https://api.example.com/v1", - Network accessline 301
base_url="https://api.example.com/v1", - Access to secretsline 302
[Credential-related source omitted] - Access to secretsline 417
[Credential-related source omitted] - Access to secretsline 418
[Credential-related source omitted] - Network accessline 441
curl http://localhost:8000/v1/models - Network accessline 459
lm_eval --model local-completions --model_args base_url=http://api.example.com/v1, - Network accessline 461
base_url=http://api.example.com/v1,\ - Network accessline 468
lm_eval --model local-completions --model_args base_url=https://localhost:8000/v1, - Network accessline 470
base_url=https://localhost:8000/v1,\ - Network accessline 486
- OpenAI API: https://platform.openai.com/docs/api-reference - Network accessline 487
- Anthropic API: https://docs.anthropic.com/claude/reference
skills/vendor-ai-research/lm-evaluation-harness/references/distributed-eval.md
skills/vendor-ai-research/ml-paper-writing/SKILL.md
- Network accessline 64
claude mcp add exa -- npx -y mcp-remote "https://mcp.exa.ai/mcp" - Network accessline 71
"exa": { "type": "http", "url": "https://mcp.exa.ai/mcp" - Network accessline 72
"type": "http", "url": "https://mcp.exa.ai/mcp" } - Network accessline 73
"url": "https://mcp.exa.ai/mcp" - Network accessline 358
| Source | Key Contribution | Link | |--------|-----------------|------| | **Neel Nanda** (Google DeepMind) | The Narrative Principle, What/Why/So What framework | [How to Write ML Papers](https://www.alignmentforum.org/posts/eJGptPbbFPZGLp - Network accessline 359
|--------|-----------------|------| | **Neel Nanda** (Google DeepMind) | The Narrative Principle, What/Why/So What framework | [How to Write ML Papers](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how- - Network accessline 360
| **Neel Nanda** (Google DeepMind) | The Narrative Principle, What/Why/So What framework | [How to Write ML Papers](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how-to-write-ml-papers) | - Network accessline 361
| **Sebastian Farquhar** (DeepMind) | 5-sentence abstract formula | [How to Write ML Papers](https://sebastianfarquhar.com/on-research/2024/11/04/how_to_write_ml_papers/) | - Network accessline 362
| **Gopen & Swan** | 7 principles of reader expectations | [Science of Scientific Writing](https://cseweb.ucsd.edu/~swanson/papers/science-of-writing.pdf) | - Network accessline 363
| **Zachary Lipton** | Word choice, eliminating hedging | [Heuristics for Scientific Writing](https://www.approximatelycorrect.com/2018/01/29/heuristics-technical-scientific-writing-machine-learning-perspective/) | - Network accessline 364
| **Jacob Steinhardt** (UC Berkeley) | Precision, consistent terminology | [Writing Tips](https://bounded-regret.ghost.io/) | - Network accessline 365
| **Ethan Perez** (Anthropic) | Micro-level clarity tips | [Easy Paper Writing Tips](https://ethanperez.net/easy-paper-writing-tips/) | - Network accessline 813
def doi_to_bibtex(doi: str) -> str: """Get verified BibTeX from DOI via CrossRef.""" response = requests.get( - Network accessline 814
"""Get verified BibTeX from DOI via CrossRef.""" response = requests.get( f"https://doi.org/{doi}", - Network accessline 815
response = requests.get( - Network accessline 816
f"https://doi.org/{doi}", - Network accessline 959
author = {{Orchestra Research}}, year = {2025}, url = {https://github.com/orchestra-research/AI-research-SKILLs}, - Network accessline 960
year = {2025}, url = {https://github.com/orchestra-research/AI-research-SKILLs}, note = {Open-source skills library enabling AI agents to autonomously conduct AI research} - Network accessline 961
url = {https://github.com/orchestra-research/AI-research-SKILLs}, - Network accessline 995
- **VS Code/Cursor**: Install LaTeX Workshop extension + TeX Live → Save to auto-compile - **Command line**: `latexmk -pdf main.tex` or `pdflatex` + `bibtex` workflow - **Online**: Upload to [Overleaf](https://overleaf.com) - Network accessline 997
- **Online**: Upload to [Overleaf](https://overleaf.com) - Network accessline 1003
**Writing Philosophy:** - [Neel Nanda: How to Write ML Papers](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how-to-write-ml-papers) - Narrative, "What/Why/So What" - Network accessline 1004
- [Neel Nanda: How to Write ML Papers](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how-to-write-ml-papers) - Narrative, "What/Why/So What" - Network accessline 1005
- [Farquhar: How to Write ML Papers](https://sebastianfarquhar.com/on-research/2024/11/04/how_to_write_ml_papers/) - 5-sentence abstract - Network accessline 1006
- [Gopen & Swan: Science of Scientific Writing](https://cseweb.ucsd.edu/~swanson/papers/science-of-writing.pdf) - 7 reader expectation principles - Network accessline 1007
- [Lipton: Heuristics for Scientific Writing](https://www.approximatelycorrect.com/2018/01/29/heuristics-technical-scientific-writing-machine-learning-perspective/) - Word choice - Network accessline 1008
- [Perez: Easy Paper Writing Tips](https://ethanperez.net/easy-paper-writing-tips/) - Micro-level clarity - Network accessline 1010
**APIs:** [Semantic Scholar](https://api.semanticscholar.org/api-docs/) | [CrossRef](https://www.crossref.org/documentation/retrieve-metadata/rest-api/) | [arXiv](https://info.arxiv.org/help/api/basics.html) - Network accessline 1012
**ML/AI Venues:** [NeurIPS](https://neurips.cc/Conferences/2025/PaperInformation/StyleFiles) | [ICML](https://icml.cc/Conferences/2025/AuthorInstructions) | [ICLR](https://iclr.cc/Conferences/2026/AuthorGuide) | [ACL](https://github.com/acl - Network accessline 1014
**Systems Venues:** [OSDI 2026](https://www.usenix.org/conference/osdi26/call-for-papers) | [NSDI 2027](https://www.usenix.org/conference/nsdi27/call-for-papers) | [ASPLOS 2027](https://www.asplos-conference.org/asplos2026/call-for-papers-a
skills/vendor-ai-research/ml-paper-writing/references/citation-workflow.md
- Network accessline 124
# Check CrossRef (via DOI) if doi: resp = requests.get(f"https://api.crossref.org/works/{doi}") - Network accessline 125
if doi: resp = requests.get(f"https://api.crossref.org/works/{doi}") if resp.status_code == 200: - Network accessline 126
resp = requests.get(f"https://api.crossref.org/works/{doi}") - Network accessline 130
# Check arXiv if arxiv_id: resp = requests.get( - Network accessline 131
if arxiv_id: resp = requests.get( f"http://export.arxiv.org/api/query?id_list={arxiv_id}" - Network accessline 132
resp = requests.get( - Network accessline 133
f"http://export.arxiv.org/api/query?id_list={arxiv_id}" - Network accessline 148
def doi_to_bibtex(doi: str) -> str: """Get verified BibTeX from DOI via CrossRef content negotiation.""" response = requests.get( - Network accessline 149
"""Get verified BibTeX from DOI via CrossRef content negotiation.""" response = requests.get( f"https://doi.org/{doi}", - Network accessline 150
response = requests.get( - Network accessline 151
f"https://doi.org/{doi}", - Access to secretsline 248
[Credential-related source omitted] - Access to secretsline 249
[Credential-related source omitted] - Network accessline 283
if paper.doi: try: resp = requests.get( - Network accessline 284
try: resp = requests.get( f"https://api.crossref.org/works/{paper.doi}", - Network accessline 285
resp = requests.get( - Network accessline 286
f"https://api.crossref.org/works/{paper.doi}", - Network accessline 295
if paper.arxiv_id: try: resp = requests.get( - Network accessline 296
try: resp = requests.get( f"http://export.arxiv.org/api/query?id_list={paper.arxiv_id}", - Network accessline 297
resp = requests.get( - Network accessline 298
f"http://export.arxiv.org/api/query?id_list={paper.arxiv_id}", - Network accessline 310
if paper.doi: try: resp = requests.get( - Network accessline 311
try: resp = requests.get( f"https://doi.org/{paper.doi}", - Network accessline 312
resp = requests.get( - Network accessline 313
f"https://doi.org/{paper.doi}", - Network accessline 549
**APIs:** - Semantic Scholar: https://api.semanticscholar.org/api-docs/ - Network accessline 550
- Semantic Scholar: https://api.semanticscholar.org/api-docs/ - Network accessline 551
- CrossRef: https://www.crossref.org/documentation/retrieve-metadata/rest-api/ - Network accessline 552
- arXiv: https://info.arxiv.org/help/api/basics.html - Network accessline 553
- OpenAlex: https://docs.openalex.org/ - Network accessline 555
**Python Libraries:** - `semanticscholar`: https://pypi.org/project/semanticscholar/ - Network accessline 556
- `semanticscholar`: https://pypi.org/project/semanticscholar/ - Network accessline 557
- `arxiv`: https://pypi.org/project/arxiv/ - Network accessline 558
- `habanero` (CrossRef): https://github.com/sckott/habanero - Network accessline 560
**Verification Tools:** - Citely: https://citely.ai/citation-checker - Network accessline 561
- Citely: https://citely.ai/citation-checker - Network accessline 562
- ReciteWorks: https://reciteworks.com/
skills/vendor-ai-research/ml-paper-writing/references/sources.md
- Network accessline 11
| Source | Author | URL | Key Contribution | |--------|--------|-----|------------------| | **Highly Opinionated Advice on How to Write ML Papers** | Neel Nanda | [Alignment Forum](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/high - Network accessline 12
|--------|--------|-----|------------------| | **Highly Opinionated Advice on How to Write ML Papers** | Neel Nanda | [Alignment Forum](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how-to-write-ml-pape - Network accessline 13
| **Highly Opinionated Advice on How to Write ML Papers** | Neel Nanda | [Alignment Forum](https://www.alignmentforum.org/posts/eJGptPbbFPZGLpjsp/highly-opinionated-advice-on-how-to-write-ml-papers) | Narrative framework, "What/Why/So What" - Network accessline 14
| **How to Write ML Papers** | Sebastian Farquhar (DeepMind) | [Blog](https://sebastianfarquhar.com/on-research/2024/11/04/how_to_write_ml_papers/) | 5-sentence abstract formula, structure templates | - Network accessline 15
| **A Survival Guide to a PhD** | Andrej Karpathy | [Blog](http://karpathy.github.io/2016/09/07/phd/) | Paper structure recipe, contribution framing | - Network accessline 16
| **Heuristics for Scientific Writing** | Zachary Lipton (CMU) | [Blog](https://www.approximatelycorrect.com/2018/01/29/heuristics-technical-scientific-writing-machine-learning-perspective/) | Word choice, section balance, intensifier warni - Network accessline 17
| **Advice for Authors** | Jacob Steinhardt (UC Berkeley) | [Blog](https://jsteinhardt.stat.berkeley.edu/blog/advice-for-authors) | Precision over brevity, consistent terminology | - Network accessline 18
| **Easy Paper Writing Tips** | Ethan Perez (Anthropic) | [Blog](https://ethanperez.net/easy-paper-writing-tips/) | Micro-level tips, apostrophe unfolding, clarity tricks | - Network accessline 22
| Source | Author | URL | Key Contribution | |--------|--------|-----|------------------| | **The Science of Scientific Writing** | Gopen & Swan | [PDF](https://cseweb.ucsd.edu/~swanson/papers/science-of-writing.pdf) | Topic/stress position - Network accessline 23
|--------|--------|-----|------------------| | **The Science of Scientific Writing** | Gopen & Swan | [PDF](https://cseweb.ucsd.edu/~swanson/papers/science-of-writing.pdf) | Topic/stress positions, old-before-new, 7 principles | | **Summary - Network accessline 24
| **The Science of Scientific Writing** | Gopen & Swan | [PDF](https://cseweb.ucsd.edu/~swanson/papers/science-of-writing.pdf) | Topic/stress positions, old-before-new, 7 principles | - Network accessline 25
| **Summary of Science of Scientific Writing** | Lawrence Crowl | [Summary](https://www.crowl.org/Lawrence/writing/GopenSwan90.html) | Condensed version of Gopen & Swan | - Network accessline 29
| Source | URL | Key Contribution | |--------|-----|------------------| | How To Write A Research Paper In ML | [Blog](https://grigorisg9gr.github.io/machine%20learning/research%20paper/how-to-write-a-research-paper-in-machine-learning/) | - Network accessline 30
|--------|-----|------------------| | How To Write A Research Paper In ML | [Blog](https://grigorisg9gr.github.io/machine%20learning/research%20paper/how-to-write-a-research-paper-in-machine-learning/) | Practical walkthrough, LaTeX tips | - Network accessline 31
| How To Write A Research Paper In ML | [Blog](https://grigorisg9gr.github.io/machine%20learning/research%20paper/how-to-write-a-research-paper-in-machine-learning/) | Practical walkthrough, LaTeX tips | - Network accessline 32
| A Recipe for Training Neural Networks | [Karpathy Blog](http://karpathy.github.io/2019/04/25/recipe/) | Debugging methodology that translates to paper structure | - Network accessline 33
| ICML Paper Writing Best Practices | [ICML](https://icml.cc/Conferences/2022/BestPractices) | Official venue guidance | - Network accessline 34
| Bill Freeman's Writing Slides | [MIT](https://billf.mit.edu/sites/default/files/documents/cvprPapers.pdf) | Visual guide to paper structure | - Network accessline 42
| Document | URL | Purpose | |----------|-----|---------| | Paper Checklist Guidelines | [NeurIPS](https://neurips.cc/public/guides/PaperChecklist) | 16-item mandatory checklist | - Network accessline 43
|----------|-----|---------| | Paper Checklist Guidelines | [NeurIPS](https://neurips.cc/public/guides/PaperChecklist) | 16-item mandatory checklist | | Reviewer Guidelines 2025 | [NeurIPS](https://neurips.cc/Conferences/2025/ReviewerGuidel - Network accessline 44
| Paper Checklist Guidelines | [NeurIPS](https://neurips.cc/public/guides/PaperChecklist) | 16-item mandatory checklist | - Network accessline 45
| Reviewer Guidelines 2025 | [NeurIPS](https://neurips.cc/Conferences/2025/ReviewerGuidelines) | Evaluation criteria, scoring | - Network accessline 46
| Style Files | [NeurIPS](https://neurips.cc/Conferences/2025/PaperInformation/StyleFiles) | LaTeX templates | - Network accessline 50
| Document | URL | Purpose | |----------|-----|---------| | Paper Guidelines | [ICML](https://icml.cc/Conferences/2024/PaperGuidelines) | Submission requirements | - Network accessline 51
|----------|-----|---------| | Paper Guidelines | [ICML](https://icml.cc/Conferences/2024/PaperGuidelines) | Submission requirements | | Reviewer Instructions 2025 | [ICML](https://icml.cc/Conferences/2025/ReviewerInstructions) | Review for - Network accessline 52
| Paper Guidelines | [ICML](https://icml.cc/Conferences/2024/PaperGuidelines) | Submission requirements | - Network accessline 53
| Reviewer Instructions 2025 | [ICML](https://icml.cc/Conferences/2025/ReviewerInstructions) | Review form, evaluation | - Network accessline 54
| Style & Author Instructions | [ICML](https://icml.cc/Conferences/2022/StyleAuthorInstructions) | Formatting specifications | - Network accessline 58
| Document | URL | Purpose | |----------|-----|---------| | Author Guide 2026 | [ICLR](https://iclr.cc/Conferences/2026/AuthorGuide) | Submission requirements, LLM disclosure | - Network accessline 59
|----------|-----|---------| | Author Guide 2026 | [ICLR](https://iclr.cc/Conferences/2026/AuthorGuide) | Submission requirements, LLM disclosure | | Reviewer Guide 2025 | [ICLR](https://iclr.cc/Conferences/2025/ReviewerGuide) | Review proc - Network accessline 60
| Author Guide 2026 | [ICLR](https://iclr.cc/Conferences/2026/AuthorGuide) | Submission requirements, LLM disclosure | - Network accessline 61
| Reviewer Guide 2025 | [ICLR](https://iclr.cc/Conferences/2025/ReviewerGuide) | Review process, evaluation | - Network accessline 65
| Document | URL | Purpose | |----------|-----|---------| | ACL Style Files | [GitHub](https://github.com/acl-org/acl-style-files) | LaTeX templates | - Network accessline 66
|----------|-----|---------| | ACL Style Files | [GitHub](https://github.com/acl-org/acl-style-files) | LaTeX templates | | ACL Rolling Review | [ARR](https://aclrollingreview.org/) | Submission process | - Network accessline 67
| ACL Style Files | [GitHub](https://github.com/acl-org/acl-style-files) | LaTeX templates | - Network accessline 68
| ACL Rolling Review | [ARR](https://aclrollingreview.org/) | Submission process | - Network accessline 72
| Document | URL | Purpose | |----------|-----|---------| | Author Kit 2026 | [AAAI](https://aaai.org/authorkit26/) | Templates and guidelines | - Network accessline 74
| Author Kit 2026 | [AAAI](https://aaai.org/authorkit26/) | Templates and guidelines | - Network accessline 78
| Document | URL | Purpose | |----------|-----|--------| | Template | [GitHub](https://github.com/COLM-org/Template) | LaTeX templates | - Network accessline 80
| Template | [GitHub](https://github.com/COLM-org/Template) | LaTeX templates | - Network accessline 84
| Document | URL | Purpose | |----------|-----|--------| | OSDI '26 Call for Papers | [USENIX](https://www.usenix.org/conference/osdi26/call-for-papers) | Submission requirements, deadlines, tracks | - Network accessline 85
|----------|-----|--------| | OSDI '26 Call for Papers | [USENIX](https://www.usenix.org/conference/osdi26/call-for-papers) | Submission requirements, deadlines, tracks | | OSDI '26 CFP PDF | [PDF](https://www.usenix.org/sites/default/files - Network accessline 86
| OSDI '26 Call for Papers | [USENIX](https://www.usenix.org/conference/osdi26/call-for-papers) | Submission requirements, deadlines, tracks | - Network accessline 87
| OSDI '26 CFP PDF | [PDF](https://www.usenix.org/sites/default/files/osdi26_cfp_121525.pdf) | Downloadable CFP | - Network accessline 88
| USENIX Paper Templates | [USENIX](https://www.usenix.org/conferences/author-resources/paper-templates) | LaTeX/Word templates | - Network accessline 92
| Document | URL | Purpose | |----------|-----|--------| | NSDI '27 Call for Papers | [USENIX](https://www.usenix.org/conference/nsdi27/call-for-papers) | Submission requirements, tracks, prescreening | - Network accessline 93
|----------|-----|--------| | NSDI '27 Call for Papers | [USENIX](https://www.usenix.org/conference/nsdi27/call-for-papers) | Submission requirements, tracks, prescreening | | NSDI '27 CFP PDF | [PDF](https://www.usenix.org/sites/default/fi - Network accessline 94
| NSDI '27 Call for Papers | [USENIX](https://www.usenix.org/conference/nsdi27/call-for-papers) | Submission requirements, tracks, prescreening | - Network accessline 95
| NSDI '27 CFP PDF | [PDF](https://www.usenix.org/sites/default/files/nsdi27_cfp_020326.pdf) | Downloadable CFP | - Network accessline 99
| Document | URL | Purpose | |----------|-----|--------| | ASPLOS '27 Call for Papers | [ASPLOS](https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/) | Submission requirements, rapid review, deadlines | - Network accessline 100
|----------|-----|--------| | ASPLOS '27 Call for Papers | [ASPLOS](https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/) | Submission requirements, rapid review, deadlines | | ACM Proceedings Template | [ACM](https://www. - Network accessline 101
| ASPLOS '27 Call for Papers | [ASPLOS](https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/) | Submission requirements, rapid review, deadlines | - Network accessline 102
| ACM Proceedings Template | [ACM](https://www.acm.org/publications/proceedings-template) | `acmart.cls` template | - Network accessline 106
| Document | URL | Purpose | |----------|-----|--------| | SOSP '26 Call for Papers | [SOSP](https://sigops.org/s/conferences/sosp/2026/cfp.html) | Submission requirements, artifact evaluation | - Network accessline 107
|----------|-----|--------| | SOSP '26 Call for Papers | [SOSP](https://sigops.org/s/conferences/sosp/2026/cfp.html) | Submission requirements, artifact evaluation | | ACM SIGPLAN Template | [ACM](https://www.acm.org/publications/proceeding - Network accessline 108
| SOSP '26 Call for Papers | [SOSP](https://sigops.org/s/conferences/sosp/2026/cfp.html) | Submission requirements, artifact evaluation | - Network accessline 109
| ACM SIGPLAN Template | [ACM](https://www.acm.org/publications/proceedings-template) | `acmart.cls` with `sigplan` option | - Network accessline 117
| API | Documentation | Best For | |-----|---------------|----------| | **Semantic Scholar** | [Docs](https://api.semanticscholar.org/api-docs/) | ML/AI papers, citation graphs | - Network accessline 118
|-----|---------------|----------| | **Semantic Scholar** | [Docs](https://api.semanticscholar.org/api-docs/) | ML/AI papers, citation graphs | | **CrossRef** | [Docs](https://www.crossref.org/documentation/retrieve-metadata/rest-api/) | DO - Network accessline 119
| **Semantic Scholar** | [Docs](https://api.semanticscholar.org/api-docs/) | ML/AI papers, citation graphs | - Network accessline 120
| **CrossRef** | [Docs](https://www.crossref.org/documentation/retrieve-metadata/rest-api/) | DOI lookup, BibTeX retrieval | - Network accessline 121
| **arXiv** | [Docs](https://info.arxiv.org/help/api/basics.html) | Preprints, PDF access | - Network accessline 122
| **OpenAlex** | [Docs](https://docs.openalex.org/) | Open alternative, bulk access | - Network accessline 134
| Tool | URL | Purpose | |------|-----|---------| | Citely | [citely.ai](https://citely.ai/citation-checker) | Batch verification | - Network accessline 135
|------|-----|---------| | Citely | [citely.ai](https://citely.ai/citation-checker) | Batch verification | | ReciteWorks | [reciteworks.com](https://reciteworks.com/) | In-text citation checking | - Network accessline 136
| Citely | [citely.ai](https://citely.ai/citation-checker) | Batch verification | - Network accessline 137
| ReciteWorks | [reciteworks.com](https://reciteworks.com/) | In-text citation checking | - Network accessline 145
| Tool | URL | Purpose | |------|-----|---------| | PlotNeuralNet | [GitHub](https://github.com/HarisIqbal88/PlotNeuralNet) | TikZ neural network diagrams | - Network accessline 146
|------|-----|---------| | PlotNeuralNet | [GitHub](https://github.com/HarisIqbal88/PlotNeuralNet) | TikZ neural network diagrams | | SciencePlots | [GitHub](https://github.com/garrettj403/SciencePlots) | Publication-ready matplotlib | - Network accessline 147
| PlotNeuralNet | [GitHub](https://github.com/HarisIqbal88/PlotNeuralNet) | TikZ neural network diagrams | - Network accessline 148
| SciencePlots | [GitHub](https://github.com/garrettj403/SciencePlots) | Publication-ready matplotlib | - Network accessline 149
| Okabe-Ito Palette | [Reference](https://jfly.uni-koeln.de/color/) | Colorblind-safe colors | - Network accessline 153
| Resource | URL | Purpose | |----------|-----|---------| | Overleaf Templates | [Overleaf](https://www.overleaf.com/latex/templates) | Online LaTeX editor | - Network accessline 154
|----------|-----|---------| | Overleaf Templates | [Overleaf](https://www.overleaf.com/latex/templates) | Online LaTeX editor | | BibLaTeX Guide | [CTAN](https://ctan.org/pkg/biblatex) | Modern citation management | - Network accessline 155
| Overleaf Templates | [Overleaf](https://www.overleaf.com/latex/templates) | Online LaTeX editor | - Network accessline 156
| BibLaTeX Guide | [CTAN](https://ctan.org/pkg/biblatex) | Modern citation management | - Network accessline 162
| Source | URL | Key Finding | |--------|-----|-------------| | AI Hallucinations in Citations | [Enago](https://www.enago.com/academy/ai-hallucinations-research-citations/) | ~40% error rate | - Network accessline 163
|--------|-----|-------------| | AI Hallucinations in Citations | [Enago](https://www.enago.com/academy/ai-hallucinations-research-citations/) | ~40% error rate | | Hallucination in AI Writing | [PMC](https://pmc.ncbi.nlm.nih.gov/articles/P - Network accessline 164
| AI Hallucinations in Citations | [Enago](https://www.enago.com/academy/ai-hallucinations-research-citations/) | ~40% error rate | - Network accessline 165
| Hallucination in AI Writing | [PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10726751/) | Types of citation errors | - Network accessline 166
| NeurIPS 2025 AI Report | [ByteIota](https://byteiota.com/neurips-2025-100-ai-hallucinations-slip-through-review/) | 100+ hallucinated citations |
skills/vendor-ai-research/ml-paper-writing/references/systems-conferences.md
- Network accessline 255
- **OSDI 2026**: <https://www.usenix.org/conference/osdi26/call-for-papers> - Network accessline 256
- **NSDI 2027**: <https://www.usenix.org/conference/nsdi27/call-for-papers> - Network accessline 257
- **ASPLOS 2027**: <https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/> - Network accessline 258
- **SOSP 2026**: <https://sigops.org/s/conferences/sosp/2026/cfp.html> - Network accessline 259
- **USENIX LaTeX Template**: <https://www.usenix.org/conferences/author-resources/paper-templates> - Network accessline 260
- **ACM SIGPLAN Template**: <https://www.acm.org/publications/proceedings-template>
skills/vendor-ai-research/ml-paper-writing/templates/README.md
- Network accessline 11
**Setup:** 1. Install [TeX Live](https://www.tug.org/texlive/) (full distribution recommended) - Network accessline 12
1. Install [TeX Live](https://www.tug.org/texlive/) (full distribution recommended) - Network accessline 13
- macOS: `brew install --cask mactex` - Ubuntu: `sudo apt install texlive-full` - Windows: Download from [tug.org/texlive](https://www.tug.org/texlive/) - Dangerous shell operationline 14
- Ubuntu: `sudo apt install texlive-full` - Network accessline 15
- Windows: Download from [tug.org/texlive](https://www.tug.org/texlive/) - Network accessline 62
1. Go to [overleaf.com](https://www.overleaf.com) - Network accessline 108
| Conference | Directory | Year | Source | |------------|-----------|------|--------| | ICML | `icml2026/` | 2026 | [Official ICML](https://icml.cc/Conferences/2026/AuthorInstructions) | - Network accessline 109
|------------|-----------|------|--------| | ICML | `icml2026/` | 2026 | [Official ICML](https://icml.cc/Conferences/2026/AuthorInstructions) | | ICLR | `iclr2026/` | 2026 | [Official GitHub](https://github.com/ICLR/Master-Template) | - Network accessline 110
| ICML | `icml2026/` | 2026 | [Official ICML](https://icml.cc/Conferences/2026/AuthorInstructions) | - Network accessline 111
| ICLR | `iclr2026/` | 2026 | [Official GitHub](https://github.com/ICLR/Master-Template) | - Network accessline 112
| NeurIPS | `neurips2025/` | 2025 | Community template | | ACL | `acl/` | 2025+ | [Official ACL](https://github.com/acl-org/acl-style-files) | | AAAI | `aaai2026/` | 2026 | [AAAI Author Kit](https://aaai.org/authorkit26/) | - Network accessline 113
| ACL | `acl/` | 2025+ | [Official ACL](https://github.com/acl-org/acl-style-files) | - Network accessline 114
| AAAI | `aaai2026/` | 2026 | [AAAI Author Kit](https://aaai.org/authorkit26/) | - Network accessline 115
| COLM | `colm2025/` | 2025 | [Official COLM](https://github.com/COLM-org/Template) | - Network accessline 119
| Conference | Directory | Year | Template Type | Source | |------------|-----------|------|---------------|--------| | OSDI | `osdi2026/` | 2026 | USENIX | [OSDI '26 CFP](https://www.usenix.org/conference/osdi26/call-for-papers) | - Network accessline 120
|------------|-----------|------|---------------|--------| | OSDI | `osdi2026/` | 2026 | USENIX | [OSDI '26 CFP](https://www.usenix.org/conference/osdi26/call-for-papers) | | NSDI | `nsdi2027/` | 2027 | USENIX | [NSDI '27 CFP](https://www.u - Network accessline 121
| OSDI | `osdi2026/` | 2026 | USENIX | [OSDI '26 CFP](https://www.usenix.org/conference/osdi26/call-for-papers) | - Network accessline 122
| NSDI | `nsdi2027/` | 2027 | USENIX | [NSDI '27 CFP](https://www.usenix.org/conference/nsdi27/call-for-papers) | - Network accessline 123
| ASPLOS | `asplos2027/` | 2027 | ACM SIGPLAN | [ASPLOS '27 CFP](https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/) | - Network accessline 124
| SOSP | `sosp2026/` | 2026 | ACM SIGPLAN | [SOSP '26 CFP](https://sigops.org/s/conferences/sosp/2026/cfp.html) | - Network accessline 289
Key files: - `acmart.cls` - ACM document class (download from [ACM](https://www.acm.org/publications/proceedings-template)) - Network accessline 290
- `acmart.cls` - ACM document class (download from [ACM](https://www.acm.org/publications/proceedings-template)) - Network accessline 393
Templates are updated annually. Check official sources before each submission: **ML/AI:** - ICML: https://icml.cc/ - Network accessline 394
**ML/AI:** - ICML: https://icml.cc/ - ICLR: https://iclr.cc/ - Network accessline 395
- ICML: https://icml.cc/ - Network accessline 396
- ICLR: https://iclr.cc/ - Network accessline 397
- NeurIPS: https://neurips.cc/ - Network accessline 398
- ACL: https://github.com/acl-org/acl-style-files - Network accessline 399
- AAAI: https://aaai.org/ - Network accessline 400
- COLM: https://colmweb.org/ - Network accessline 402
**Systems - OSDI: https://www.usenix.org/conference/osdi26/call-for-papers - Network accessline 403
- OSDI: https://www.usenix.org/conference/osdi26/call-for-papers - Network accessline 404
- NSDI: https://www.usenix.org/conference/nsdi27/call-for-papers - Network accessline 405
- ASPLOS: https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/ - Network accessline 406
- SOSP: https://sigops.org/s/conferences/sosp/2026/cfp.html - Network accessline 407
- USENIX Templates: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 408
- ACM Templates: https://www.acm.org/publications/proceedings-template
skills/vendor-ai-research/ml-paper-writing/templates/aaai2026/README.md
skills/vendor-ai-research/ml-paper-writing/templates/aaai2026/aaai2026-unified-supp.tex
skills/vendor-ai-research/ml-paper-writing/templates/aaai2026/aaai2026-unified-template.tex
- Dangerous shell operationline 121
Written by AAAI Press Staff\textsuperscript{\rm 1}\thanks{With help from the AAAI Publications Committee.}\\ - Dangerous shell operationline 132
\textsuperscript{\rm 1}Association for the Advancement of Artificial Intelligence\\ - Dangerous shell operationline 137
% Sunil Issar\textsuperscript{\rm 2}, - Dangerous shell operationline 138
% J. Scott Penberthy\textsuperscript{\rm 3}, - Dangerous shell operationline 139
% George Ferguson\textsuperscript{\rm 4}, - Dangerous shell operationline 140
% Hans Guesgen\textsuperscript{\rm 5} - Dangerous shell operationline 169
First Author Name\textsuperscript{\rm 1}, - Dangerous shell operationline 170
Second Author Name\textsuperscript{\rm 2}, - Dangerous shell operationline 171
Third Author Name\textsuperscript{\rm 1} - Dangerous shell operationline 175
\textsuperscript{\rm 1}Affiliation 1\\ - Dangerous shell operationline 176
\textsuperscript{\rm 2}Affiliation 2\\ - Network accessline 198
% NOTE: For anonymous submissions, do not include links that could reveal your identity % \begin{links} % \link{Code}{https://aaai.org/example/code} - Network accessline 199
% \begin{links} % \link{Code}{https://aaai.org/example/code} % \link{Datasets}{https://aaai.org/example/datasets} - Network accessline 200
% \link{Code}{https://aaai.org/example/code} - Network accessline 201
% \link{Datasets}{https://aaai.org/example/datasets} - Network accessline 202
% \link{Extended version}{https://aaai.org/example/extended-version} - Network accessline 206
% You must keep this block between (not within) the abstract and the main body of the paper. \begin{links} \link{Code}{https://aaai.org/example/code} - Network accessline 207
\begin{links} \link{Code}{https://aaai.org/example/code} \link{Datasets}{https://aaai.org/example/datasets} - Network accessline 208
\link{Code}{https://aaai.org/example/code} - Network accessline 209
\link{Datasets}{https://aaai.org/example/datasets} - Network accessline 210
\link{Extended version}{https://aaai.org/example/extended-version} - Network accessline 405
\begin{scriptsize}\begin{verbatim} \begin{links} \link{Code}{https://aaai.org/example/guidelines} - Network accessline 406
\begin{links} \link{Code}{https://aaai.org/example/guidelines} \link{Datasets}{https://aaai.org/example/datasets} - Network accessline 407
\link{Code}{https://aaai.org/example/guidelines} - Network accessline 408
\link{Datasets}{https://aaai.org/example/datasets} - Network accessline 409
\link{Extended version}{https://aaai.org/example} - Network accessline 525
\subsubsection{Obtaining Type 1 Computer Modern for \LaTeX{}.} If you use Computer Modern for the mathematics in your paper (you cannot use it for the text) you may need to download type 1 Computer fonts. They are available without charge f - Network accessline 527
http://www.ams.org/tex/type1-fonts.html. - Network accessline 532
\subsection{Title and Authors} Your title must appear centered over both text columns in sixteen-point bold type (twenty-four point leading). The title must be written in Title Case capitalization rules (not sentence case). The rules are a - Network accessline 533
Your title must appear centered over both text columns in sixteen-point bold type (twenty-four point leading). The title must be written in Title Case capitalization rules (not sentence case). The rules are a bit involved, but in general ve - Dangerous shell operationline 551
\noindent For authors from different institutions, use \textbackslash textsuperscript \{\textbackslash rm x \} to match authors and affiliations. Notice that there should not be any spaces between the author name (or comma following it) and - Dangerous shell operationline 555
AuthorOne\equalcontrib\textsuperscript{\rm 1,\rm 2}, - Dangerous shell operationline 556
AuthorTwo\equalcontrib\textsuperscript{\rm 2}, - Dangerous shell operationline 557
AuthorThree\textsuperscript{\rm 3},\\ - Dangerous shell operationline 558
AuthorFour\textsuperscript{\rm 4}, - Dangerous shell operationline 559
AuthorFive \textsuperscript{\rm 5}} - Dangerous shell operationline 562
\textsuperscript{\rm 1}AffiliationOne,\\ - Dangerous shell operationline 563
\textsuperscript{\rm 2}AffiliationTwo,\\ - Dangerous shell operationline 564
\textsuperscript{\rm 3}AffiliationThree,\\ - Dangerous shell operationline 565
\textsuperscript{\rm 4}AffiliationFour,\\ - Dangerous shell operationline 566
\textsuperscript{\rm 5}AffiliationFive\\ - Network accessline 849
@misc(key, [...] howpublished="\url{http://...}", - Network accessline 850
[...] howpublished="\url{http://...}", note="Accessed: YYYY-mm-dd", - Network accessline 851
howpublished="\url{http://...}", - Network accessline 859
\vspace{.2em} For the most up to date version of the AAAI reference style, please consult the \textit{AI Magazine} Author Guidelines at \url{https://aaai.org/ojs/index.php/aimagazine/about/submissions#authorGuidelines} - Network accessline 860
For the most up to date version of the AAAI reference style, please consult the \textit{AI Magazine} Author Guidelines at \url{https://aaai.org/ojs/index.php/aimagazine/about/submissions#authorGuidelines}
skills/vendor-ai-research/ml-paper-writing/templates/aaai2026/aaai2026.bib
- Network accessline 38
publisher = {American Association for the Advancement of Science}, issn = {0036-8075}, URL = {https://science.sciencemag.org/content/208/4447/1019}, - Network accessline 39
issn = {0036-8075}, URL = {https://science.sciencemag.org/content/208/4447/1019}, eprint = {https://science.sciencemag.org/content/208/4447/1019.full.pdf}, - Network accessline 40
URL = {https://science.sciencemag.org/content/208/4447/1019}, - Network accessline 41
eprint = {https://science.sciencemag.org/content/208/4447/1019.full.pdf}, - Network accessline 58
year = {1984}, issn = {0020-7373}, doi = {https://doi.org/10.1016/S0020-7373(84)80003-6}, - Network accessline 59
issn = {0020-7373}, doi = {https://doi.org/10.1016/S0020-7373(84)80003-6}, url = {https://www.sciencedirect.com/science/article/pii/S0020737384800036}, - Network accessline 60
doi = {https://doi.org/10.1016/S0020-7373(84)80003-6}, - Network accessline 61
url = {https://www.sciencedirect.com/science/article/pii/S0020737384800036}, - Network accessline 106
title = "Pluto: The 'Other' Red Planet", author = "{NASA}", howpublished = "\url{https://www.nasa.gov/nh/pluto-the-other-red-planet}", - Network accessline 107
author = "{NASA}", howpublished = "\url{https://www.nasa.gov/nh/pluto-the-other-red-planet}", year = 2015, - Network accessline 108
howpublished = "\url{https://www.nasa.gov/nh/pluto-the-other-red-planet}",
skills/vendor-ai-research/ml-paper-writing/templates/aaai2026/aaai2026.sty
- Network accessline 241
\@ifpackageloaded{bbm}% {% \PackageError{aaai}{You must not use bbm package in AAAI papers because it introduces Type 3 fonts which are forbidden.}{See https://tex.stackexchange.com/questions/479160/a-replacement-to-mathbbm1-with- - Network accessline 242
{% \PackageError{aaai}{You must not use bbm package in AAAI papers because it introduces Type 3 fonts which are forbidden.}{See https://tex.stackexchange.com/questions/479160/a-replacement-to-mathbbm1-with-type-1-fonts for possible al - Network accessline 243
\PackageError{aaai}{You must not use bbm package in AAAI papers because it introduces Type 3 fonts which are forbidden.}{See https://tex.stackexchange.com/questions/479160/a-replacement-to-mathbbm1-with-type-1-fonts for possible alternative
skills/vendor-ai-research/ml-paper-writing/templates/acl/README.md
- Network accessline 12
- as an [Overleaf template](https://www.overleaf.com/latex/templates/association-for-computational-linguistics-acl-conference/jvxskxpnznfj) - Network accessline 14
- as a [.zip file](https://github.com/acl-org/acl-style-files/archive/refs/heads/master.zip) - Network accessline 16
Please see [`acl_latex.tex`](https://github.com/acl-org/acl-style-files/blob/master/acl_latex.tex) for an example. - Network accessline 21
- [Paper formatting guidelines](https://acl-org.github.io/ACLPUB/formatting.html) - Network accessline 46
- git pull from github to a local repository - then, git push from your local repository to overleaf project - Overleaf project is https://www.overleaf.com/project/5f64f1fb97c4c50001b60549 - Network accessline 47
- then, git push from your local repository to overleaf project - Overleaf project is https://www.overleaf.com/project/5f64f1fb97c4c50001b60549 - Overleaf git url is https://git.overleaf.com/5f64f1fb97c4c50001b60549 - Network accessline 48
- Overleaf project is https://www.overleaf.com/project/5f64f1fb97c4c50001b60549 - Network accessline 49
- Overleaf git url is https://git.overleaf.com/5f64f1fb97c4c50001b60549
skills/vendor-ai-research/ml-paper-writing/templates/acl/acl.sty
- Network accessline 2
% The official sources can be found at % % https://github.com/acl-org/acl-style-files/ - Network accessline 3
% % https://github.com/acl-org/acl-style-files/ % - Network accessline 4
% https://github.com/acl-org/acl-style-files/ - Network accessline 35
\ifacl@linenumbers % Add draft line numbering via the lineno package % https://texblog.org/2012/02/08/adding-line-numbers-to-documents/ - Network accessline 36
% Add draft line numbering via the lineno package % https://texblog.org/2012/02/08/adding-line-numbers-to-documents/ \usepackage[switch,mathlines]{lineno} - Network accessline 37
% https://texblog.org/2012/02/08/adding-line-numbers-to-documents/ - Network accessline 61
% Patch amsmath commands so that the previous line and the equation itself % are numbered. Bug: multline has an extra line number. % https://tex.stackexchange.com/questions/461186/how-to-use-lineno-with-amsmath-align - Network accessline 62
% are numbered. Bug: multline has an extra line number. % https://tex.stackexchange.com/questions/461186/how-to-use-lineno-with-amsmath-align \usepackage{etoolbox} %% <- for \pretocmd, \apptocmd and \patchcmd - Network accessline 63
% https://tex.stackexchange.com/questions/461186/how-to-use-lineno-with-amsmath-align
skills/vendor-ai-research/ml-paper-writing/templates/acl/acl_latex.tex
- Network accessline 13
% For Vietnamese characters % \usepackage[T5]{fontenc} % See https://www.latex-project.org/help/documentation/encguide.pdf for other character sets - Network accessline 15
% See https://www.latex-project.org/help/documentation/encguide.pdf for other character sets - Network accessline 117
These instructions are for authors submitting papers to *ACL conferences using \LaTeX. They are not self-contained. All authors must follow the general instructions for *ACL proceedings,\footnote{\url{http://acl-org.github.io/ACLPUB/formatt - Network accessline 298
You can obtain the complete ACL Anthology as a Bib\TeX{} file from \url{https://aclweb.org/anthology/anthology.bib.gz}.
skills/vendor-ai-research/ml-paper-writing/templates/acl/acl_natbib.bst
- Network accessline 1
%%% Modification of BibTeX style file acl_natbib_nourl.bst %%% ... by urlbst, version 0.9.1 (marked with "% urlbst") %%% See <https://purl.org/nxg/dist/urlbst> and repository <https://heptapod.host/nxg/urlbst> - Network accessline 2
%%% ... by urlbst, version 0.9.1 (marked with "% urlbst") %%% See <https://purl.org/nxg/dist/urlbst> and repository <https://heptapod.host/nxg/urlbst> %%% Modifications Copyright 2002–23, Norman Gray, - Network accessline 3
%%% See <https://purl.org/nxg/dist/urlbst> and repository <https://heptapod.host/nxg/urlbst> - Network accessline 125
"online" 'onlinestring := % label that a resource is online "[link]" 'linktextstring := % anonymous link text "http://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED - Network accessline 126
"[link]" 'linktextstring := % anonymous link text "http://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED "https://doi.org/" 'doiurl := % prefix to make URL from DOI - Network accessline 127
"http://www.ncbi.nlm.nih.gov/pubmed/" 'pubmedurl := % prefix to make URL from PUBMED - Network accessline 128
"https://doi.org/" 'doiurl := % prefix to make URL from DOI - Network accessline 129
"doi:" 'doiprefix := % printed text to introduce DOI "https://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref "cited " 'citedstring := % label in "lastchecked" remark - Network accessline 130
"https://arxiv.org/abs/" 'eprinturl := % prefix to make URL from eprint ref - Network accessline 1191
{ doi empty$ { "" } { doi parse.doi % leaves "https://doi.org/DOI" DOI on the stack - Network accessline 1192
{ "" } { doi parse.doi % leaves "https://doi.org/DOI" DOI on the stack 's := 't := - Network accessline 1193
{ doi parse.doi % leaves "https://doi.org/DOI" DOI on the stack - Network accessline 1231
% then don't print the URL (thanks to Joseph Wright % for (the original version of) this code, % at http://tex.stackexchange.com/questions/5660) - Network accessline 1232
% for (the original version of) this code, % at http://tex.stackexchange.com/questions/5660) adddoi - Network accessline 1233
% at http://tex.stackexchange.com/questions/5660) - Network accessline 1287
% author, note, year, month, and lastchecked fields optional % See references % ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm - Network accessline 1288
% See references % ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm % http://www.classroom.net/classroom/CitingNetResources.html - Network accessline 1289
% ISO 690-2 http://www.nlc-bnc.ca/iso/tc46sc9/standard/690-2e.htm - Network accessline 1290
% http://www.classroom.net/classroom/CitingNetResources.html - Network accessline 1291
% http://neal.ctstateu.edu/history/cite.html - Network accessline 1292
% http://www.cas.usf.edu/english/walker/mla.html
skills/vendor-ai-research/ml-paper-writing/templates/acl/anthology.bib.txt
- Network accessline 10
For example, https://aclanthology.org/N04-1035 can be cited as \cite{galley-etal-2004-whats}. - Network accessline 12
The consolidated file can be downloaded from here: - https://aclanthology.org/anthology.bib - Network accessline 13
- https://aclanthology.org/anthology.bib - Network accessline 19
There are currently (2025) two files: - https://aclanthology.org/anthology-1.bib - Network accessline 20
- https://aclanthology.org/anthology-1.bib - Network accessline 21
- https://aclanthology.org/anthology-2.bib
skills/vendor-ai-research/ml-paper-writing/templates/acl/custom.bib
skills/vendor-ai-research/ml-paper-writing/templates/acl/formatting.md
- Network accessline 10
> https://acl-org.github.io/ACLPUB/ - Network accessline 132
Long titles should be typed on two lines without a blank line intervening. Put the title 2.5 cm from the top of the page. Write the title in [title case](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case); do not w - Network accessline 134
Write the title in [title case](https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case); do not write the title in all capital letters, except for acronyms (e.g., "BLEU") or proper nouns ("English") that are normally up - Network accessline 252
Provide as complete a citation as possible, using a consistent format, such as the [one for Computational Linguistics](http://cljournal.org/style_guide_refs.html) or the one in the [Publication Manual of the American Psychological Associati - Network accessline 258
All references are required to contain DOIs of all cited works when possible, or, as a second resort, links to ACL Anthology pages. Appropriate records should be found for most materials in the current [ACL Anthology](https://aclweb.org/ant - Network accessline 259
Appropriate records should be found for most materials in the current [ACL Anthology](https://aclweb.org/anthology/). - Network accessline 263
> Rie Kubota Ando and Tong Zhang. 2005. [A framework for learning predictive structures from multiple tasks and unlabeled data](https://www.jmlr.org/papers/v6/ando05a.html). *Journal of Machine Learning Research*, 6:1817–1853. - Network accessline 267
> Galen Andrew and Jianfeng Gao. 2007. [Scalable training of L1-regularized log-linear models](https://doi.org/10.1145/1273496.1273501). In *Proceedings of the 24th International Conference on Machine Learning*, pages 33–40. - Network accessline 271
> James Goodman, Andreas Vlachos, and Jason Naradowsky. 2016. [Noise reduction and targeted exploration in imitation learning for Abstract Meaning Representation parsing](http://dx.doi.org/10.18653/v1/P16-1001). In *Proceedings of the 54th - Network accessline 275
> Benjamin Börschinger and Mark Johnson. 2011. [A particle filter algorithm for Bayesian word segmentation](https://www.aclweb.org/anthology/U11-1004/). In *Proceedings of the Australasian Language Technology Association Workshop 2011*, pag - Network accessline 279
> Mohammad Sadegh Rasooli and Joel R. Tetreault. 2015. [Yara parser: A fast and accurate dependency parser](http://arxiv.org/abs/1503.06733). *Computing Research Repository*, arXiv:1503.06733. Version 2.
skills/vendor-ai-research/ml-paper-writing/templates/asplos2027/main.tex
- Network accessline 7
% Uses acmart.cls with sigplan option % % Official CFP: https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/ - Network accessline 8
% % Official CFP: https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/ % ACM Template: https://www.acm.org/publications/proceedings-template - Network accessline 9
% Official CFP: https://www.asplos-conference.org/asplos2026/call-for-papers-asplos27/ - Network accessline 10
% ACM Template: https://www.acm.org/publications/proceedings-template
skills/vendor-ai-research/ml-paper-writing/templates/colm2025/colm2025_conference.bib
- Network accessline 5
publisher = {Curran Associates, Inc.}, title = {Attention is All you Need}, url = {https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf}, - Network accessline 6
title = {Attention is All you Need}, url = {https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf}, volume = {30}, - Network accessline 7
url = {https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf},
skills/vendor-ai-research/ml-paper-writing/templates/colm2025/colm2025_conference.tex
- Network accessline 71
COLM requires electronic submissions, processed by \url{https://openreview.net/}. See COLM's website for more instructions. - Network accessline 72
\url{https://openreview.net/}. See COLM's website for more instructions. - Network accessline 102
The style files for COLM and other conference information are available online at: \begin{center} \url{http://www.colmweb.org/} - Network accessline 103
\begin{center} \url{http://www.colmweb.org/} \end{center} - Network accessline 104
\url{http://www.colmweb.org/} - Network accessline 143
We strongly recommend following arXiv's guidelines for making your paper friendly for HTML conversion: \url{https://info.arxiv.org/help/submit_latex_best_practices.html}. - Network accessline 277
\end{verbatim} for .pdf graphics. See section~4.4 in the graphics bundle documentation (\url{http://www.ctan.org/tex-archive/macros/latex/required/graphics/grfguide.ps}) - Network accessline 279
See section~4.4 in the graphics bundle documentation (\url{http://www.ctan.org/tex-archive/macros/latex/required/graphics/grfguide.ps})
skills/vendor-ai-research/ml-paper-writing/templates/colm2025/math_commands.tex
- Dangerous shell operationline 82
% rm is already a command, just don't name any random variables m
skills/vendor-ai-research/ml-paper-writing/templates/iclr2026/iclr2026_conference.tex
- Network accessline 5
% Optional math commands from https://github.com/goodfeli/dlbook_notation. - Network accessline 65
ICLR requires electronic submissions, processed by \url{https://openreview.net/}. See ICLR's website for more instructions. - Network accessline 66
\url{https://openreview.net/}. See ICLR's website for more instructions. - Network accessline 93
The style files for ICLR and other conference information are available online at: \begin{center} \url{http://www.iclr.cc/} - Network accessline 94
\begin{center} \url{http://www.iclr.cc/} \end{center} - Network accessline 95
\url{http://www.iclr.cc/} - Network accessline 230
notation file from the textbook, \textit{Deep Learning} \cite{goodfellow2016deep} available at \url{https://github.com/goodfeli/dlbook_notation/}. Use of this style - Network accessline 231
\cite{goodfellow2016deep} available at \url{https://github.com/goodfeli/dlbook_notation/}. Use of this style is not required and can be disabled by commenting out - Network accessline 232
\url{https://github.com/goodfeli/dlbook_notation/}. Use of this style - Network accessline 390
\end{verbatim} for .pdf graphics. See section~4.4 in the graphics bundle documentation (\url{http://www.ctan.org/tex-archive/macros/latex/required/graphics/grfguide.ps}) - Network accessline 392
See section~4.4 in the graphics bundle documentation (\url{http://www.ctan.org/tex-archive/macros/latex/required/graphics/grfguide.ps})
skills/vendor-ai-research/ml-paper-writing/templates/iclr2026/math_commands.tex
- Dangerous shell operationline 82
% rm is already a command, just don't name any random variables m
skills/vendor-ai-research/ml-paper-writing/templates/icml2026/example_paper.tex
- Network accessline 136
are available on the conference web site at: \begin{center} \texttt{http://icml.cc/} - Network accessline 137
\begin{center} \texttt{http://icml.cc/} \end{center} - Network accessline 138
\texttt{http://icml.cc/} - Network accessline 572
for everyone including people with disabilities and sensory or neurological differences. Tips of how to achieve this and what to pay attention to will be provided on the conference website \url{http://icml.cc/}. - Network accessline 574
provided on the conference website \url{http://icml.cc/}.
skills/vendor-ai-research/ml-paper-writing/templates/icml2026/fancyhdr.sty
skills/vendor-ai-research/ml-paper-writing/templates/neurips2025/Makefile
skills/vendor-ai-research/ml-paper-writing/templates/nsdi2027/main.tex
- Network accessline 7
% Two-column, 10pt on 12pt leading, Times Roman % % Official CFP: https://www.usenix.org/conference/nsdi27/call-for-papers - Network accessline 8
% % Official CFP: https://www.usenix.org/conference/nsdi27/call-for-papers % Template source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 9
% Official CFP: https://www.usenix.org/conference/nsdi27/call-for-papers - Network accessline 10
% Template source: https://www.usenix.org/conferences/author-resources/paper-templates - Dangerous shell operationline 87
% {\rm Author One}\\ - Dangerous shell operationline 91
% {\rm Author Two}\\
skills/vendor-ai-research/ml-paper-writing/templates/nsdi2027/references.bib
skills/vendor-ai-research/ml-paper-writing/templates/nsdi2027/usenix-2020-09.sty
- Network accessline 3
% % This is the official USENIX style for conferences including OSDI, NSDI, ATC, etc. % Source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 4
% This is the official USENIX style for conferences including OSDI, NSDI, ATC, etc. % Source: https://www.usenix.org/conferences/author-resources/paper-templates % - Network accessline 5
% Source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 7
% NOTE: This is a simplified version for template purposes. % For the latest official version, download from: % https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 9
% https://www.usenix.org/conferences/author-resources/paper-templates
skills/vendor-ai-research/ml-paper-writing/templates/osdi2026/main.tex
- Network accessline 8
% Camera-ready: <= 14 pages (2 extra pages allowed) % % Official CFP: https://www.usenix.org/conference/osdi26/call-for-papers - Network accessline 9
% % Official CFP: https://www.usenix.org/conference/osdi26/call-for-papers % Template source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 10
% Official CFP: https://www.usenix.org/conference/osdi26/call-for-papers - Network accessline 11
% Template source: https://www.usenix.org/conferences/author-resources/paper-templates - Dangerous shell operationline 83
% {\rm Author One}\\ - Dangerous shell operationline 87
% {\rm Author Two}\\
skills/vendor-ai-research/ml-paper-writing/templates/osdi2026/usenix-2020-09.sty
- Network accessline 3
% % This is the official USENIX style for conferences including OSDI, NSDI, ATC, etc. % Source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 4
% This is the official USENIX style for conferences including OSDI, NSDI, ATC, etc. % Source: https://www.usenix.org/conferences/author-resources/paper-templates % - Network accessline 5
% Source: https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 7
% NOTE: This is a simplified version for template purposes. % For the latest official version, download from: % https://www.usenix.org/conferences/author-resources/paper-templates - Network accessline 9
% https://www.usenix.org/conferences/author-resources/paper-templates
skills/vendor-ai-research/ml-paper-writing/templates/sosp2026/main.tex
- Network accessline 8
% Two-column, 8mm separation, 10pt on 12pt leading % % Official CFP: https://sigops.org/s/conferences/sosp/2026/cfp.html - Network accessline 9
% % Official CFP: https://sigops.org/s/conferences/sosp/2026/cfp.html % ACM Template: https://www.acm.org/publications/proceedings-template - Network accessline 10
% Official CFP: https://sigops.org/s/conferences/sosp/2026/cfp.html - Network accessline 11
% ACM Template: https://www.acm.org/publications/proceedings-template - Network accessline 528
% SOSP offers optional artifact evaluation. If your paper is accepted, % consider preparing your artifact for evaluation. % See: https://sysartifacts.github.io/ - Network accessline 530
% See: https://sysartifacts.github.io/
skills/vendor-ai-research/ml-training-recipes/SKILL.md
- Access to secretsline 170
[Credential-related source omitted]
skills/vendor-ai-research/ml-training-recipes/references/domain-specific.md
- Access to secretsline 379
[Credential-related source omitted]
skills/vendor-ai-research/ml-training-recipes/references/experiment-loop.md
skills/vendor-ai-research/peft/SKILL.md
- Network accessline 427
- **GitHub**: https://github.com/huggingface/peft - Network accessline 428
- **Docs**: https://huggingface.co/docs/peft - Network accessline 429
- **LoRA Paper**: arXiv:2106.09685 - **QLoRA Paper**: arXiv:2305.14314 - **Models**: https://huggingface.co/models?library=peft - Network accessline 431
- **Models**: https://huggingface.co/models?library=peft
skills/vendor-ai-research/peft/references/troubleshooting.md
- Network accessline 18
# Or compile from source for specific CUDA git clone https://github.com/TimDettmers/bitsandbytes.git - Network accessline 19
git clone https://github.com/TimDettmers/bitsandbytes.git - Network accessline 218
**Error**: `ValueError: We couldn't connect to 'https://huggingface.co'` - Network accessline 457
1. **Check PEFT GitHub Issues**: https://github.com/huggingface/peft/issues - Network accessline 458
2. **HuggingFace Forums**: https://discuss.huggingface.co/ - Network accessline 459
3. **PEFT Documentation**: https://huggingface.co/docs/peft
skills/vendor-ai-research/ray-data/SKILL.md
skills/vendor-ai-research/skypilot/SKILL.md
- Access to secretsline 409
[Credential-related source omitted] - Access to secretsline 410
[Credential-related source omitted] - Access to secretsline 415
[Credential-related source omitted] - Network accessline 506
- **Documentation**: https://docs.skypilot.co - Network accessline 507
- **GitHub**: https://github.com/skypilot-org/skypilot - Network accessline 508
- **Slack**: https://slack.skypilot.co - Network accessline 509
- **Examples**: https://github.com/skypilot-org/skypilot/tree/master/examples
skills/vendor-ai-research/skypilot/references/advanced-usage.md
- Network accessline 108
workdir: url: https://github.com/user/repo.git - Network accessline 109
url: https://github.com/user/repo.git - Access to secretsline 145
[Credential-related source omitted] - Network accessline 237
# Test new version curl https://my-service-v2.skypilot.cloud/health - Network accessline 238
curl https://my-service-v2.skypilot.cloud/health - Network accessline 349
# Connect clients sky api login --endpoint https://your-server:8000 - Network accessline 350
sky api login --endpoint https://your-server:8000 - Access to secretsline 360
[Credential-related source omitted] - Access to secretsline 408
[Credential-related source omitted] - Access to secretsline 413
[Credential-related source omitted] - Access to secretsline 447
[Credential-related source omitted] - Access to secretsline 451
[Credential-related source omitted]
skills/vendor-ai-research/skypilot/references/troubleshooting.md
- Network accessline 179
setup: | # Install specific CUDA version pip install torch==2.1.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html - Network accessline 181
pip install torch==2.1.0+cu121 -f https://download.pytorch.org/whl/torch_stable.html - Access to secretsline 439
[Credential-related source omitted] - Network accessline 557
1. **Documentation**: https://docs.skypilot.co - Network accessline 558
2. **GitHub Issues**: https://github.com/skypilot-org/skypilot/issues - Network accessline 559
3. **Slack**: https://slack.skypilot.co - Network accessline 560
4. **Examples**: https://github.com/skypilot-org/skypilot/tree/master/examples
skills/vendor-ai-research/unsloth/references/llms-full.md
- Network accessline 5
At [Unsloth](https://app.gitbook.com/o/HpyELzcNe0topgVLGCZY/s/xhOjnexMCB3dmuQFQ2Zq/), our mission is to make AI as accurate and accessible as possible. Train, run, evaluate and save gpt-oss, Llama, DeepSeek, TTS, Qwen, Mistral, Gemma LLMs 2 - Network accessline 9
<a href="beginner-start-here" class="button primary">Get started</a> <a href="https://github.com/unslothai/unsloth" class="button secondary">Our GitHub</a> - Network accessline 11
[Credential-related source omitted] - Network accessline 14
{% column %} {% content-ref url="fine-tuning-llms-guide" %} [fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 15
{% content-ref url="fine-tuning-llms-guide" %} [fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) {% endcontent-ref %} - Network accessline 16
[fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 19
{% content-ref url="unsloth-notebooks" %} [unsloth-notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 20
[unsloth-notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 25
{% column %} {% content-ref url="all-our-models" %} [all-our-models](https://docs.unsloth.ai/get-started/all-our-models) - Network accessline 26
{% content-ref url="all-our-models" %} [all-our-models](https://docs.unsloth.ai/get-started/all-our-models) {% endcontent-ref %} - Network accessline 27
[all-our-models](https://docs.unsloth.ai/get-started/all-our-models) - Network accessline 30
{% content-ref url="../models/tutorials-how-to-fine-tune-and-run-llms" %} [tutorials-how-to-fine-tune-and-run-llms](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms) - Network accessline 31
[tutorials-how-to-fine-tune-and-run-llms](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms) - Network accessline 36
[Credential-related source omitted] - Network accessline 40
* Unsloth streamlines model training locally and on Colab/Kaggle, covering loading, quantization, training, evaluation, saving, exporting, and integration with inference engines like Ollama, llama.cpp, and vLLM. * We directly collaborate wi - Network accessline 41
* We directly collaborate with teams behind [gpt-oss](https://docs.unsloth.ai/new/gpt-oss-how-to-run-and-fine-tune#unsloth-fixes-for-gpt-oss), [Qwen3](https://www.reddit.com/r/LocalLLaMA/comments/1kaodxu/qwen3_unsloth_dynamic_ggufs_128k_con - Network accessline 42
* Unsloth is the only training framework to support all model types: [vision](https://docs.unsloth.ai/basics/vision-fine-tuning), [text-to-speech (TTS)](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning), BERT, [reinforcement l - Network accessline 46
* Supports **full-finetuning**, pretraining, 4-bit, 16-bit and **8-bit** training. * The most efficient RL library, using 80% less VRAM. Supports GRPO, GSPO etc. * Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speec - Network accessline 47
* The most efficient RL library, using 80% less VRAM. Supports GRPO, GSPO etc. * Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning) multimodal, [BERT](https://docs.unsloth.ai/get-started/unsloth-n - Network accessline 48
* Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning) multimodal, [BERT](https://docs.unsloth.ai/get-started/unsloth-notebooks#other-important-notebooks) and more. Any model that works in transform - Network accessline 49
* **0% loss in accuracy** - no approximation methods - all exact. * [MultiGPU](https://docs.unsloth.ai/basics/multi-gpu-training-with-unsloth) works already but a much better version is coming! * Unsloth supports Linux, Windows, Colab, Kagg - Network accessline 50
* [MultiGPU](https://docs.unsloth.ai/basics/multi-gpu-training-with-unsloth) works already but a much better version is coming! - Network accessline 51
* Unsloth supports Linux, Windows, Colab, Kaggle, **NVIDIA** and [**AMD**](https://docs.unsloth.ai/new/fine-tuning-llms-on-amd-gpus-with-unsloth) & **Intel**. See: - Network accessline 53
{% content-ref url="beginner-start-here/unsloth-requirements" %} [unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 54
[unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 65
Use our official **Docker image**: `unsloth/unsloth`. Read our [**Docker guide**](https://docs.unsloth.ai/get-started/install-and-update/docker)**.** - Network accessline 67
For Windows install instructions, see [here](https://docs.unsloth.ai/get-started/install-and-update/windows-installation). - Network accessline 69
{% content-ref url="install-and-update" %} [install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 70
[install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 75
[**Fine-tuning** an LLM](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) customizes its behavior, enhances domain knowledge, and optimizes performance for specific tasks. By fine-tuning a pre-trained model (e.g. Llama-3.1-8B) on - Network accessline 81
[**Reinforcement Learning (RL)**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) is where an "agent" learns to make decisions by interacting with an environment and receiving **feedback** in the form of **rewards** or - Network accessline 95
{% content-ref url="beginner-start-here/faq-+-is-fine-tuning-right-for-me" %} [faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 96
[faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 99
{% content-ref url="reinforcement-learning-rl-guide" %} [reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) - Network accessline 100
[reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) - Network accessline 103
[Credential-related source omitted] - Network accessline 108
If you're a beginner, here might be the first questions you'll ask before your first fine-tune. You can also always ask our community by joining our [Reddit page](https://www.reddit.com/r/unsloth/). - Network accessline 112
[Credential-related source omitted] - Network accessline 121
* **Operating System**: Works on Linux and Windows. * Supports NVIDIA GPUs since 2018+ including [Blackwell RTX 50](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and [**DGX Spark**](https://docs.u - Network accessline 122
* Supports NVIDIA GPUs since 2018+ including [Blackwell RTX 50](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and [**DGX Spark**](https://docs.unsloth.ai/basics/fine-tuning-llms-with-nvidia-dgx-sp - Network accessline 123
Minimum CUDA Capability 7.0 (V100, T4, Titan V, RTX 20 & 50, A100, H100, L40 etc) [Check your GPU!](https://developer.nvidia.com/cuda-gpus) GTX 1070, 1080 works, but is slow. - Network accessline 124
* The official [Unsloth Docker image](https://hub.docker.com/r/unsloth/unsloth) `unsloth/unsloth` is available on Docker Hub. - Network accessline 125
* Unsloth works on [AMD](https://docs.unsloth.ai/new/fine-tuning-llms-on-amd-gpus-with-unsloth) and [Intel](https://github.com/unslothai/unsloth/pull/2621) GPUs! Apple/Silicon/MLX is in the works. - Network accessline 140
**For context length benchmarks, see** [**here**](https://docs.unsloth.ai/basics/unsloth-benchmarks#context-length-benchmarks)**.** - Network accessline 222
**Not necessarily.** Many assume RAG will consistently outperform a fine-tuned model, but that’s not the case when fine-tuning is done properly. In fact, a well-tuned model often matches or even surpasses RAG-based systems on specialized ta - Network accessline 228
**Not at all!** While full fine-tuning or pretraining can be costly, these are not necessary (pretraining is especially not necessary). In most cases, LoRA or QLoRA fine-tuning can be done for minimal cost. In fact, with Unsloth’s [free not - Network accessline 247
We recommend starting with **QLoRA**, as it’s one of the most efficient and accessible methods available. Thanks to Unsloth’s [dynamic 4-bit](https://unsloth.ai/blog/dynamic-4bit) quants, the accuracy loss compared to standard 16-bit LoRA f - Network accessline 253
{% content-ref url="../fine-tuning-llms-guide/lora-hyperparameters-guide" %} [lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 254
[lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 262
Also see our GitHub repo for our notebooks: [github.com/unslothai/notebooks](https://github.com/unslothai/notebooks/) - Network accessline 270
* [**gpt-oss (20b)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) • [Inference](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\) - Network accessline 271
* [**DeepSeek-OCR**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) **- new** - Network accessline 272
* [Qwen3 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) • [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL - Network accessline 273
* [**Qwen3-2507-4B**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) • [Thinking](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-Thinking.ipynb) • [Instruct](https://colab.r - Network accessline 274
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) • [Text](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversation - Network accessline 275
* [IBM Granite-4.0-H](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) - new - Network accessline 276
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) • [Text](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) • [Vision](https://colab - Network accessline 277
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb)  - Network accessline 278
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-Alpaca.ipynb) • [Llama 3.2 (1B + 3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3 - Network accessline 282
* [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) (automatic kernels creation) - new - Network accessline 283
* [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_Reinforcement_Learning_2048_Game.ipynb) (auto win 2048 game) - new - Network accessline 284
* [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Vision **GSPO** - new - Network accessline 285
* [Qwen3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **-** Advanced GRPO LoRA - Network accessline 286
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 287
* [**DeepSeek-R1-0528-Qwen3 (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_\(8B\)_GRPO.ipynb) (for multilingual usecase) - Network accessline 288
* [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 289
* [Llama 3.2 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Advanced_Llama3_2_\(3B\)_GRPO_LoRA.ipynb) - Advanced GRPO LoRA - Network accessline 290
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 291
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\)-GRPO.ipynb)  - Network accessline 292
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) - Network accessline 296
* [Sesame-CSM (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Sesame_CSM_\(1B\)-TTS.ipynb) - new - Network accessline 297
* [Orpheus-TTS (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Orpheus_\(3B\)-TTS.ipynb) - Network accessline 298
* [Whisper Large V3](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Whisper.ipynb) - Speech-to-Text (STT) - Network accessline 299
* [Llasa-TTS (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llasa_TTS_\(1B\).ipynb) - Network accessline 300
* [Spark-TTS (0.5B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Spark_TTS_\(0_5B\).ipynb) - Network accessline 301
* [Oute-TTS (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Oute_TTS_\(1B\).ipynb) - Network accessline 305
* [Whisper-Large-V3](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Whisper.ipynb) - Network accessline 306
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Audio.ipynb) - Audio - Network accessline 310
* [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision.ipynb) **- new** - Network accessline 311
* [**DeepSeek-OCR**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) **- new** - Network accessline 312
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - vision - Network accessline 313
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - vision - Network accessline 314
* [Llama 3.2 Vision (11B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb) - Network accessline 315
* [Qwen2.5-VL (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_VL_\(7B\)-Vision.ipynb) - Network accessline 316
* [Pixtral (12B) 2409](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Pixtral_\(12B\)-Vision.ipynb) - Network accessline 317
* [Qwen3-VL](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 318
* [Qwen2.5-VL](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_GRPO.ipynb) - Vision GSPO - Network accessline 319
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 329
* [gpt-oss-120b ](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(120B\)_A100-Fine-tuning.ipynb)- new - Network accessline 330
* [Qwen3 (32B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(32B\)_A100-Reasoning-Conversational.ipynb) - new - Network accessline 331
* [Llama 3.3 (70B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.3_\(70B\)_A100-Conversational.ipynb) - new - Network accessline 332
* [Gemma 3 (27B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(27B\)_A100-Conversational.ipynb) - new - Network accessline 336
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 337
* [**Automatic Kernel Creation**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) with RL **- new** - Network accessline 338
* [**ModernBERT-large**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/bert_classification.ipynb) **- new** as of Aug 19 - Network accessline 339
* [**Synthetic Data Generation Llama 3.2 (3B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Meta_Synthetic_Data_Llama3_2_\(3B\).ipynb) - new - Network accessline 340
* [**Tool Calling**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb) **- new** - Network accessline 341
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 342
* [Mistral v0.3 Instruct (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 343
* [Ollama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) - Network accessline 344
* [ORPO](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-ORPO.ipynb) - Network accessline 345
* [Continued Pretraining](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 346
* [DPO Zephyr](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 347
* [***Inference only***](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-Inference.ipynb) - Network accessline 348
* [Llama 3 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Alpaca.ipynb) - Network accessline 352
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 353
* [**Automatic Kernel Creation**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) with RL **- new** - Network accessline 354
* [DPO Zephyr](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 355
* [**BERT - Text Classification**](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification.ipynb) **- new as of Aug 19** - Network accessline 356
* [Ollama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) - Network accessline 357
* [**Tool Calling**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb) **- new** - Network accessline 358
* [Continued Pretraining (CPT)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 359
* [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) by Flail - Network accessline 360
* [KTO](https://colab.research.google.com/drive/1MRgGtLWuZX4ypSfGguFgC-IblTvO2ivM?usp=sharing) by Jeffrey - Network accessline 361
* [Inference chat UI](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Unsloth_Studio.ipynb) - Network accessline 362
* [Conversational](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 363
* [ChatML](https://colab.research.google.com/drive/15F1xyn8497_dUbxZP4zWmPZ3PJx1Oymv?usp=sharing) - Network accessline 364
* [Text Completion](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_\(7B\)-Text_Completion.ipynb) - Network accessline 368
* [Qwen2.5 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_\(3B\)-GRPO.ipynb) - Network accessline 369
* [Gemma 2 (9B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma2_\(9B\)-Alpaca.ipynb) - Network accessline 370
* [Mistral NeMo (12B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_Nemo_\(12B\)-Alpaca.ipynb) - Network accessline 371
* [Phi-3.5 (mini)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_3.5_Mini-Conversational.ipynb) - Network accessline 372
* [Phi-3 (medium)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_3_Medium-Conversational.ipynb) - Network accessline 373
* [Gemma 2 (2B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma2_\(2B\)-Alpaca.ipynb) - Network accessline 374
* [Qwen 2.5 Coder (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(14B\)-Conversational.ipynb) - Network accessline 375
* [Mistral Small (22B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_Small_\(22B\)-Alpaca.ipynb) - Network accessline 376
* [TinyLlama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/TinyLlama_\(1.1B\)-Alpaca.ipynb) - Network accessline 377
* [CodeGemma (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/CodeGemma_\(7B\)-Conversational.ipynb) - Network accessline 378
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Alpaca.ipynb) - Network accessline 379
* [Qwen2 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_\(7B\)-Alpaca.ipynb) - Network accessline 385
* [**gpt-oss (20B)**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-gpt-oss-\(20B\)-Fine-tuning.ipynb\&accelerator=nvidiaTeslaT4) **- new** - Network accessline 386
* [Gemma 3n (E4B)](https://www.kaggle.com/code/danielhanchen/gemma-3n-4b-multimodal-finetuning-inference) - Network accessline 387
* [Qwen3 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen3_\(14B\).ipynb) - Network accessline 388
* [Magistral-2509 (24B)](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Magistral_\(24B\)-Reasoning-Conversational.ipynb\&accelerator=nvidiaTeslaT4) - new - Network accessline 389
* [Gemma 3 (4B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma3_\(4B\).ipynb) - Network accessline 390
* [Phi-4 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Phi_4-Conversational.ipynb) - Network accessline 391
* [Llama 3.1 (8B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-Alpaca.ipynb) - Network accessline 392
* [Llama 3.2 (1B + 3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 393
* [Qwen 2.5 (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_\(7B\)-Alpaca.ipynb) - Network accessline 397
* [**Qwen2.5-VL**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen2_5_7B_VL_GRPO.ipynb\&accelerator=nvidiaTeslaT4) - Vision GRPO - new - Network accessline 398
* [Qwen3 (4B)](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen3_\(4B\)-GRPO.ipynb\&accelerator=nvidiaTeslaT4) - Network accessline 399
* [Gemma 3 (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 400
* [Llama 3.1 (8B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 401
* [Phi-4 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Phi_4_\(14B\)-GRPO.ipynb) - Network accessline 402
* [Qwen 2.5 (3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_\(3B\)-GRPO.ipynb) - Network accessline 406
* [Sesame-CSM (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Sesame_CSM_\(1B\)-TTS.ipynb) - Network accessline 407
* [Orpheus-TTS (3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Orpheus_\(3B\)-TTS.ipynb) - Network accessline 408
* [Whisper Large V3](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Whisper.ipynb) – Speech-to-Text - Network accessline 409
* [Llasa-TTS (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llasa_TTS_\(1B\).ipynb) - Network accessline 410
* [Spark-TTS (0.5B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Spark_TTS_\(0_5B\).ipynb) - Network accessline 411
* [Oute-TTS (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Oute_TTS_\(1B\).ipynb) - Network accessline 415
* [Llama 3.2 Vision (11B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.2_\(11B\)-Vision.ipynb) - Network accessline 416
* [Qwen 2.5-VL (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_VL_\(7B\)-Vision.ipynb) - Network accessline 417
* [Pixtral (12B) 2409](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Pixtral_\(12B\)-Vision.ipynb) - Network accessline 421
* [Tool Calling](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb\&accelerator=nvidiaTeslaT4) - Network accessline 422
* [ORPO](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3_\(8B\)-ORPO.ipynb) - Network accessline 423
* [Continued Pretraining](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 424
* [DPO Zephyr](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Zephyr_\(7B\)-DPO.ipynb) - Network accessline 425
* [Inference only](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-Inference.ipynb) - Network accessline 426
* [Ollama](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3_\(8B\)-Ollama.ipynb) - Network accessline 427
* [Text Completion](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_\(7B\)-Text_Completion.ipynb) - Network accessline 428
* [CodeForces-cot (Reasoning)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb) - Network accessline 429
* [Unsloth Studio (chat UI)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Unsloth_Studio.ipynb) - Network accessline 433
* [Gemma 2 (9B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma2_\(9B\)-Alpaca.ipynb) - Network accessline 434
* [Gemma 2 (2B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma2_\(2B\)-Alpaca.ipynb) - Network accessline 435
* [CodeGemma (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-CodeGemma_\(7B\)-Conversational.ipynb) - Network accessline 436
* [Mistral NeMo (12B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_Nemo_\(12B\)-Alpaca.ipynb) - Network accessline 437
* [Mistral Small (22B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_Small_\(22B\)-Alpaca.ipynb) - Network accessline 438
* [TinyLlama (1.1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-TinyLlama_\(1.1B\)-Alpaca.ipynb) - Network accessline 440
To view a complete list of all our Kaggle notebooks, [click here](https://github.com/unslothai/notebooks#-kaggle-notebooks). - Network accessline 442
{% hint style="info" %} Feel free to contribute to the notebooks by visiting our [repo](https://github.com/unslothai/notebooks)! - Network accessline 443
Feel free to contribute to the notebooks by visiting our [repo](https://github.com/unslothai/notebooks)! - Network accessline 449
Unsloth model catalog for all our [Dynamic](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) GGUF, 4-bit, 16-bit models on Hugging Face. - Network accessline 459
| Model | Variant | GGUF | Instruct (4-bit) - Network accessline 460
| ------------------------------------------------------------------------------------------ | ---------------------- | ------------------------------------------------------------------------------- | -------------------------------------- - Network accessline 461
| [**gpt-oss** ](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune) | 120b | [link](https://huggingface.co/unsloth/gpt-oss-120b-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 462
| | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 463
| [**DeepSeek-V3.1**](https://docs.unsloth.ai/models/deepseek-v3.1-how-to-run-locally) | Terminus | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF) | — - Network accessline 464
| | V3.1 | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF) | — - Network accessline 465
| [**Qwen3-VL**](https://docs.unsloth.ai/models/qwen3-vl-how-to-run-and-fine-tune) | 2B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-2B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 466
| | 2B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-2B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 467
| | 4B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-4B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 468
| | 4B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-4B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 469
| | 8B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 470
| | 8B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-8B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 471
| | 30B-A3B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-30B-A3B-Instruct-GGUF) | — - Network accessline 472
| | 30B-A3B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-30B-A3B-Thinking-GGUF) | — - Network accessline 473
| | 32B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-32B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 474
| | 32B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-32B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 475
| | 235B-A22B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-235B-A22B-Instruct-GGUF) | — - Network accessline 476
| | 235B-A22B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-235B-A22B-Thinking-GGUF) | — - Network accessline 477
| [**Qwen3-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) | 30B-A3B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF) | — - Network accessline 478
| | 30B-A3B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF) | — - Network accessline 479
| | 235B-A22B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-Thinking-2507-GGUF/) | — - Network accessline 480
| | 235B-A22B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF/) | — - Network accessline 481
| **Qwen3-Coder** | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF) | — - Network accessline 482
| | 480B-A35B | [link](https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF) | — - Network accessline 483
| **Granite-4.0 (new)** | H-Small | [link](https://huggingface.co/unsloth/granite-4.0-h-small-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 484
| **GLM (new)** | 4.6 | [link](https://huggingface.co/unsloth/GLM-4.6-GGUF) | — - Network accessline 485
| | 4.5-Air | [link](https://huggingface.co/unsloth/GLM-4.5-Air-GGUF) | — - Network accessline 486
| **Kimi-K2-0905** | 1T | [link](https://huggingface.co/unsloth/Kimi-K2-Instruct-0905-GGUF) | — - Network accessline 487
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 488
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 489
| **DeepSeek-R1-0528** | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 490
| | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF) | — - Network accessline 491
| **Mistral** | Magistral Small (2509) | [link](https://huggingface.co/unsloth/Magistral-Small-2509-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 492
| | Magistral Small (2507) | [link](https://huggingface.co/unsloth/Magistral-Small-2507-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 493
| | Small 3.2 24B (2506) | [link](https://huggingface.co/unsloth/Mistral-Small-3.2-24B-Instruct-2506-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 494
| FLUX.1 | Kontext-dev | [link](https://huggingface.co/unsloth/FLUX.1-Kontext-dev-GGUF) | — - Network accessline 495
| **Qwen3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 496
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 497
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 498
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 499
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 500
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 501
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 502
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF) | — - Network accessline 503
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 504
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF) | — - Network accessline 505
| **Grok 2** | 270B | [link](https://huggingface.co/unsloth/grok-2-GGUF) | — - Network accessline 506
| **Qwen-2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B-GGUF) | — - Network accessline 507
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B-GGUF) | — - Network accessline 508
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 509
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 513
| Model | Variant | GGUF | Instruct (4-bit) | | ----------------- | ------- - Network accessline 514
| ----------------- | ---------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | **DeepSeek-V3.1** | Terminu - Network accessline 515
| **DeepSeek-V3.1** | Terminus | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF) | | - Network accessline 516
| | V3.1 | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF) | | - Network accessline 517
| **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324-GGUF) | — | - Network accessline 518
| | V3 | [link](https://huggingface.co/unsloth/DeepSeek-V3-GGUF) | — | - Network accessline 519
| **DeepSeek-R1** | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF) | — | - Network accessline 520
| | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-unsloth-bnb-4bit) | - Network accessline 521
| | R1 | [link](https://huggingface.co/unsloth/DeepSeek-R1-GGUF) | — | - Network accessline 522
| | R1 Zero | [link](https://huggingface.co/unsloth/DeepSeek-R1-Zero-GGUF) | — | - Network accessline 523
| | Distill Llama 3 8 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit) | - Network accessline 524
| | Distill Llama 3.3 70 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-bnb-4bit) | - Network accessline 525
| | Distill Qwen 2.5 1.5 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-unsloth-bnb-4bit) | - Network accessline 526
| | Distill Qwen 2.5 7 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-unsloth-bnb-4bit) | - Network accessline 527
| | Distill Qwen 2.5 14 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B-unsloth-bnb-4bit) | - Network accessline 528
| | Distill Qwen 2.5 32 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B-bnb-4bit) | - Network accessline 532
| Model | Variant | GGUF | Instruct (4-bit) | | ------------- | ------------ - Network accessline 533
| ------------- | ------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- | | **Llama 4** | Scout 17 B-1 - Network accessline 534
| **Llama 4** | Scout 17 B-16 E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-bnb-4bit) | - Network accessline 535
| | Maverick 17 B-128 E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF) | — | - Network accessline 536
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct-bnb-4bit) | - Network accessline 537
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-bnb-4bit) | - Network accessline 538
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-bnb-4bit) | - Network accessline 539
| | 11 B Vision | — | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct-unsloth-bnb-4bit) | - Network accessline 540
| | 90 B Vision | — | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision-Instruct-bnb-4bit) | - Network accessline 541
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Llama-3.1-8B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit) | - Network accessline 542
| | 70 B | — | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B-Instruct-bnb-4bit) | - Network accessline 543
| | 405 B | — | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-405B-Instruct-bnb-4bit) | - Network accessline 544
| **Llama 3** | 8 B | — | [link](https://huggingface.co/unsloth/llama-3-8b-Instruct-bnb-4bit) | - Network accessline 545
| | 70 B | — | [link](https://huggingface.co/unsloth/llama-3-70b-bnb-4bit) | - Network accessline 546
| **Llama 2** | 7 B | — | [link](https://huggingface.co/unsloth/llama-2-7b-chat-bnb-4bit) | - Network accessline 547
| | 13 B | — | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 548
| **CodeLlama** | 7 B | — | [link](https://huggingface.co/unsloth/codellama-7b-bnb-4bit) | - Network accessline 549
| | 13 B | — | [link](https://huggingface.co/unsloth/codellama-13b-bnb-4bit) | - Network accessline 550
| | 34 B | — | [link](https://huggingface.co/unsloth/codellama-34b-bnb-4bit) | - Network accessline 554
| Model | Variant | GGUF | Instruct (4-bit) | | ------------ | ------------- | -------------------------------- - Network accessline 555
| ------------ | ------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------- | | **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/u - Network accessline 556
| **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-unsloth-bnb-4bit) | - Possible obfuscationline 556
| **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-unsloth-bnb-4bit) | - Network accessline 557
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit) | - Network accessline 558
| **Gemma 3** | 270M | [link](https://huggingface.co/unsloth/gemma-3-270m-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-270m-it) | - Network accessline 559
| | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-1b-it-unsloth-bnb-4bit) | - Network accessline 560
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-4b-it-unsloth-bnb-4bit) | - Network accessline 561
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-12b-it-unsloth-bnb-4bit) | - Network accessline 562
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-27b-it-unsloth-bnb-4bit) | - Network accessline 563
| **MedGemma** | 4 B (vision) | [link](https://huggingface.co/unsloth/medgemma-4b-it-GGUF) | [link](https://huggingface.co/unsloth/medgemma-4b-it-unsloth-bnb-4bit) | - Network accessline 564
| | 27 B (vision) | [link](https://huggingface.co/unsloth/medgemma-27b-it-GGUF) | [link](https://huggingface.co/unsloth/medgemma-27b-text-it-unsloth-bnb-4bit) | - Network accessline 565
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-2-2b-it-bnb-4bit) | - Network accessline 566
| | 9 B | — | [link](https://huggingface.co/unsloth/gemma-2-9b-it-bnb-4bit) | - Network accessline 567
| | 27 B | — | [link](https://huggingface.co/unsloth/gemma-2-27b-it-bnb-4bit) | - Network accessline 571
| Model | Variant | GGUF | Instruct (4-bit) | | -------------------------- | ---- - Network accessline 572
| -------------------------- | ---------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | **Qwen 3** | 0.6 - Network accessline 573
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-unsloth-bnb-4bit) | - Network accessline 574
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-unsloth-bnb-4bit) | - Network accessline 575
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-4B-unsloth-bnb-4bit) | - Network accessline 576
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-8B-unsloth-bnb-4bit) | - Network accessline 577
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-14B-unsloth-bnb-4bit) | - Network accessline 578
| | 30 B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-bnb-4bit) | - Network accessline 579
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-32B-unsloth-bnb-4bit) | - Network accessline 580
| | 235 B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF) | — | - Network accessline 581
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B-GGUF) | — | - Network accessline 582
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B-GGUF) | — | - Network accessline 583
| **Qwen 2.5 VL** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct-unsloth-bnb-4bit) | - Network accessline 584
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct-unsloth-bnb-4bit) | - Network accessline 585
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct-unsloth-bnb-4bit) | - Network accessline 586
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct-unsloth-bnb-4bit) | - Network accessline 587
| **Qwen 2.5** | 0.5 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-Instruct-bnb-4bit) | - Network accessline 588
| | 1.5 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-Instruct-bnb-4bit) | - Network accessline 589
| | 3 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-3B-Instruct-bnb-4bit) | - Network accessline 590
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-7B-Instruct-bnb-4bit) | - Network accessline 591
| | 14 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-14B-Instruct-bnb-4bit) | - Network accessline 592
| | 32 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-32B-Instruct-bnb-4bit) | - Network accessline 593
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-72B-Instruct-bnb-4bit) | - Network accessline 594
| **Qwen 2.5 Coder (128 K)** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-bnb-4bit) | - Network accessline 595
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit) | - Network accessline 596
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit) | - Network accessline 597
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit) | - Network accessline 598
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-bnb-4bit) | - Network accessline 599
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-bnb-4bit) | - Network accessline 600
| **QwQ** | 32 B | [link](https://huggingface.co/unsloth/QwQ-32B-GGUF) | [link](https://huggingface.co/unsloth/QwQ-32B-unsloth-bnb-4bit) | - Network accessline 601
| **QVQ (preview)** | 72 B | — | [link](https://huggingface.co/unsloth/QVQ-72B-Preview-bnb-4bit) | - Network accessline 602
| **Qwen 2 (chat)** | 1.5 B | — | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct-bnb-4bit) | - Network accessline 603
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2-7B-Instruct-bnb-4bit) | - Network accessline 604
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2-72B-Instruct-bnb-4bit) | - Network accessline 605
| **Qwen 2 VL** | 2 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-2B-Instruct-unsloth-bnb-4bit) | - Network accessline 606
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-7B-Instruct-unsloth-bnb-4bit) | - Network accessline 607
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-72B-Instruct-bnb-4bit) | - Network accessline 611
<table><thead><tr><th width="174">Model</th><th>Variant</th><th>GGUF</th><th>Instruct (4-bit)</th></tr></thead><tbody><tr><td><strong>Mistral Small</strong></td><td>3.2-24 B (2506)</td><td><a href="https://huggingface.co/unsloth/Mistral-Sma - Network accessline 615
| Model | Variant | GGUF | Instruct (4-bit) | | ----------- | ---------------- | ------------------------ - Network accessline 616
| ----------- | ---------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](https://huggingfa - Network accessline 617
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-unsloth-bnb-4bit) | - Network accessline 618
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning-GGUF) | [link](https://huggingface.co/unsloth/phi-4-reasoning-unsloth-bnb-4bit) | - Network accessline 619
| | Mini-Reasoning | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning-unsloth-bnb-4bit) | - Network accessline 620
| | Phi-4 (instruct) | [link](https://huggingface.co/unsloth/phi-4-GGUF) | [link](https://huggingface.co/unsloth/phi-4-unsloth-bnb-4bit) | - Network accessline 621
| | mini (instruct) | [link](https://huggingface.co/unsloth/Phi-4-mini-instruct-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-mini-instruct-unsloth-bnb-4bit) | - Network accessline 622
| **Phi-3.5** | mini | — | [link](https://huggingface.co/unsloth/Phi-3.5-mini-instruct-bnb-4bit) | - Network accessline 623
| **Phi-3** | mini | — | [link](https://huggingface.co/unsloth/Phi-3-mini-4k-instruct-bnb-4bit) | - Network accessline 624
| | medium | — | [link](https://huggingface.co/unsloth/Phi-3-medium-4k-instruct-bnb-4bit) | - Network accessline 628
| Model | Variant | GGUF | Instruct (4-bit) | | -------------- | ----------------- | ----- - Network accessline 629
| -------------- | ----------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------- | | GLM | 4.5-Air | [link - Network accessline 630
| GLM | 4.5-Air | [link](https://huggingface.co/unsloth/GLM-4.5-Air-GGUF) | | - Network accessline 631
| | 4.5 | [4.5](https://huggingface.co/unsloth/GLM-4.5-GGUF) | | - Network accessline 632
| | 4-32B-0414 | [4-32B-0414](https://huggingface.co/unsloth/GLM-4-32B-0414-GGUF) | | - Network accessline 633
| Hunyuan | A13B | [link](https://huggingface.co/unsloth/Hunyuan-A13B-Instruct-GGUF) | — | - Network accessline 634
| Orpheus | 0.1-ft (3B) | [link](https://app.gitbook.com/o/HpyELzcNe0topgVLGCZY/s/xhOjnexMCB3dmuQFQ2Zq/) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft-unsloth-bnb-4bit) | - Network accessline 635
| **LLava** | 1.5 (7 B) | — | [link](https://huggingface.co/unsloth/llava-1.5-7b-hf-bnb-4bit) | - Network accessline 636
| | 1.6 Mistral (7 B) | — | [link](https://huggingface.co/unsloth/llava-v1.6-mistral-7b-hf-bnb-4bit) | - Network accessline 637
| **TinyLlama** | Chat | — | [link](https://huggingface.co/unsloth/tinyllama-chat-bnb-4bit) | - Network accessline 638
| **SmolLM 2** | 135 M | [link](https://huggingface.co/unsloth/SmolLM2-135M-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-135M-Instruct-bnb-4bit) | - Network accessline 639
| | 360 M | [link](https://huggingface.co/unsloth/SmolLM2-360M-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-360M-Instruct-bnb-4bit) | - Network accessline 640
| | 1.7 B | [link](https://huggingface.co/unsloth/SmolLM2-1.7B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-1.7B-Instruct-bnb-4bit) | - Network accessline 641
| **Zephyr-SFT** | 7 B | — | [link](https://huggingface.co/unsloth/zephyr-sft-bnb-4bit) | - Network accessline 642
| **Yi** | 6 B (v1.5) | — | [link](https://huggingface.co/unsloth/Yi-1.5-6B-bnb-4bit) | - Network accessline 643
| | 6 B (v1.0) | — | [link](https://huggingface.co/unsloth/yi-6b-bnb-4bit) | - Network accessline 644
| | 34 B (chat) | — | [link](https://huggingface.co/unsloth/yi-34b-chat-bnb-4bit) | - Network accessline 645
| | 34 B (base) | — | [link](https://huggingface.co/unsloth/yi-34b-bnb-4bit) | - Network accessline 653
| Model | Variant | Instruct (16-bit) | | -------------------- | ---------------------- | --------------------------------------------------------------- - Network accessline 654
| -------------------- | ---------------------- | -------------------------------------------------------------------------- | | **gpt-oss** (new) | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b) - Network accessline 655
| **gpt-oss** (new) | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b) | - Network accessline 656
| | 120b | [link](https://huggingface.co/unsloth/gpt-oss-120b) | - Network accessline 657
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | - Network accessline 658
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it) | - Network accessline 659
| **DeepSeek-R1-0528** | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B) | - Network accessline 660
| | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528) | - Network accessline 661
| **Mistral** | Small 3.2 24B (2506) | [link](https://huggingface.co/unsloth/Mistral-Small-3.2-24B-Instruct-2506) | - Network accessline 662
| | Small 3.1 24B (2503) | [link](https://huggingface.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503) | - Network accessline 663
| | Small 3.0 24B (2501) | [link](https://huggingface.co/unsloth/Mistral-Small-24B-Instruct-2501) | - Network accessline 664
| | Magistral Small (2506) | [link](https://huggingface.co/unsloth/Magistral-Small-2506) | - Network accessline 665
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | - Network accessline 666
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B) | - Network accessline 667
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B) | - Network accessline 668
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B) | - Network accessline 669
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B) | - Network accessline 670
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B) | - Network accessline 671
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B) | - Network accessline 672
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B) | - Network accessline 673
| **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | - Network accessline 674
| | Maverick 17B-128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct) | - Network accessline 675
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B) | - Network accessline 676
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B) | - Network accessline 677
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | - Network accessline 678
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning) | - Network accessline 682
| Model | Variant | Instruct (16-bit) | | --------------- | --------------------- | -------------------------------------------------------------------- | | **DeepSe - Network accessline 683
| --------------- | --------------------- | -------------------------------------------------------------------- | | **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324) | | - Network accessline 684
| **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324) | - Network accessline 685
| | V3 | [link](https://huggingface.co/unsloth/DeepSeek-V3) | - Network accessline 686
| **DeepSeek-R1** | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528) | - Network accessline 687
| | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B) | - Network accessline 688
| | R1 | [link](https://huggingface.co/unsloth/DeepSeek-R1) | - Network accessline 689
| | R1 Zero | [link](https://huggingface.co/unsloth/DeepSeek-R1-Zero) | - Network accessline 690
| | Distill Llama 3 8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B) | - Network accessline 691
| | Distill Llama 3.3 70B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B) | - Network accessline 692
| | Distill Qwen 2.5 1.5B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B) | - Network accessline 693
| | Distill Qwen 2.5 7B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B) | - Network accessline 694
| | Distill Qwen 2.5 14B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B) | - Network accessline 695
| | Distill Qwen 2.5 32B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B) | - Network accessline 699
| Family | Variant | Instruct (16-bit) | | ------------- | ----------------- | ------------------------------------------------------------------------- | | **Llama 4* - Network accessline 700
| ------------- | ----------------- | ------------------------------------------------------------------------- | | **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | | - Network accessline 701
| **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | - Network accessline 702
| | Maverick 17B-128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct) | - Network accessline 703
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct) | - Network accessline 704
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct) | - Network accessline 705
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct) | - Network accessline 706
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct) | - Network accessline 707
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision-Instruct) | - Network accessline 708
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct) | - Network accessline 709
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B-Instruct) | - Network accessline 710
| | 405 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-405B-Instruct) | - Network accessline 711
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b-Instruct) | - Network accessline 712
| | 70 B | [link](https://huggingface.co/unsloth/llama-3-70b-Instruct) | - Network accessline 713
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b-chat) | - Network accessline 717
| Model | Variant | Instruct (16-bit) | | ------------ | ------- | ------------------------------------------------------ | | **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3 - Network accessline 718
| ------------ | ------- | ------------------------------------------------------ | | **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | | | E4B | [link](https://huggingface.co/unsloth/gemma-3 - Network accessline 719
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | - Network accessline 720
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it) | - Network accessline 721
| **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-it) | - Network accessline 722
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-it) | - Network accessline 723
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-it) | - Network accessline 724
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-it) | - Network accessline 725
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2b-it) | - Network accessline 726
| | 9 B | [link](https://huggingface.co/unsloth/gemma-9b-it) | - Network accessline 727
| | 27 B | [link](https://huggingface.co/unsloth/gemma-27b-it) | - Network accessline 731
| Family | Variant | Instruct (16-bit) | | ------------------------ | --------- | ----------------------------------------------------------------------- | | **Qwen 3 - Network accessline 732
| ------------------------ | --------- | ----------------------------------------------------------------------- | | **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | | - Network accessline 733
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | - Network accessline 734
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B) | - Network accessline 735
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B) | - Network accessline 736
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B) | - Network accessline 737
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B) | - Network accessline 738
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B) | - Network accessline 739
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B) | - Network accessline 740
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B) | - Network accessline 741
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B) | - Network accessline 742
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B) | - Network accessline 743
| **Qwen 2.5 VL** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct) | - Network accessline 744
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct) | - Network accessline 745
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct) | - Network accessline 746
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct) | - Network accessline 747
| **Qwen 2.5** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-Instruct) | - Network accessline 748
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-Instruct) | - Network accessline 749
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-3B-Instruct) | - Network accessline 750
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-7B-Instruct) | - Network accessline 751
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-14B-Instruct) | - Network accessline 752
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-32B-Instruct) | - Network accessline 753
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-72B-Instruct) | - Network accessline 754
| **Qwen 2.5 Coder 128 K** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-128K) | - Network accessline 755
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-128K) | - Network accessline 756
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-128K) | - Network accessline 757
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-128K) | - Network accessline 758
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-128K) | - Network accessline 759
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-128K) | - Network accessline 760
| **QwQ** | 32 B | [link](https://huggingface.co/unsloth/QwQ-32B) | - Network accessline 761
| **QVQ (preview)** | 72 B | — | | **Qwen 2 (Chat)** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct) | | - Network accessline 762
| **Qwen 2 (Chat)** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct) | - Network accessline 763
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-7B-Instruct) | - Network accessline 764
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2-72B-Instruct) | - Network accessline 765
| **Qwen 2 VL** | 2 B | [link](https://huggingface.co/unsloth/Qwen2-VL-2B-Instruct) | - Network accessline 766
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-VL-7B-Instruct) | - Network accessline 767
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2-VL-72B-Instruct) | - Network accessline 771
| Model | Variant | Instruct (16-bit) | | ---------------- | -------------- | ------------------------------------------------------------------ | | **Mistral** | Small - Network accessline 772
| ---------------- | -------------- | ------------------------------------------------------------------ | | **Mistral** | Small 2409-22B | [link](https://huggingface.co/unsloth/Mistral-Small-Instruct-2409) | | **Mistral** | Large - Network accessline 773
| **Mistral** | Small 2409-22B | [link](https://huggingface.co/unsloth/Mistral-Small-Instruct-2409) | - Network accessline 774
| **Mistral** | Large 2407 | [link](https://huggingface.co/unsloth/Mistral-Large-Instruct-2407) | - Network accessline 775
| **Mistral** | 7B v0.3 | [link](https://huggingface.co/unsloth/mistral-7b-instruct-v0.3) | - Network accessline 776
| **Mistral** | 7B v0.2 | [link](https://huggingface.co/unsloth/mistral-7b-instruct-v0.2) | - Network accessline 777
| **Pixtral** | 12B 2409 | [link](https://huggingface.co/unsloth/Pixtral-12B-2409) | - Network accessline 778
| **Mixtral** | 8×7B | [link](https://huggingface.co/unsloth/Mixtral-8x7B-Instruct-v0.1) | - Network accessline 779
| **Mistral NeMo** | 12B 2407 | [link](https://huggingface.co/unsloth/Mistral-Nemo-Instruct-2407) | - Network accessline 780
| **Devstral** | Small 2505 | [link](https://huggingface.co/unsloth/Devstral-Small-2505) | - Network accessline 784
| Model | Variant | Instruct (16-bit) | | ----------- | -------------- | --------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](ht - Network accessline 785
| ----------- | -------------- | --------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | | | Reasoning | [link](ht - Network accessline 786
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | - Network accessline 787
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning) | - Network accessline 788
| | Phi-4 (core) | [link](https://huggingface.co/unsloth/Phi-4) | - Network accessline 789
| | Mini-Reasoning | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning) | - Network accessline 790
| | Mini | [link](https://huggingface.co/unsloth/Phi-4-mini) | - Network accessline 791
| **Phi-3.5** | Mini | [link](https://huggingface.co/unsloth/Phi-3.5-mini-instruct) | - Network accessline 792
| **Phi-3** | Mini | [link](https://huggingface.co/unsloth/Phi-3-mini-4k-instruct) | - Network accessline 793
| | Medium | [link](https://huggingface.co/unsloth/Phi-3-medium-4k-instruct) | - Network accessline 797
| Model | Instruct (16-bit) | | ---------------------- | ---------------------------------------------------------------- | | Orpheus-3B (v0.1 ft) | [link](https://huggingfac - Network accessline 798
| ---------------------- | ---------------------------------------------------------------- | | Orpheus-3B (v0.1 ft) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft) | | Orpheus-3B (v0.1 pt) | [link](https://huggingfac - Network accessline 799
| Orpheus-3B (v0.1 ft) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft) | - Network accessline 800
| Orpheus-3B (v0.1 pt) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained) | - Network accessline 801
| Sesame-CSM 1B | [link](https://huggingface.co/unsloth/csm-1b) | - Network accessline 802
| Whisper Large V3 (STT) | [link](https://huggingface.co/unsloth/whisper-large-v3) | - Network accessline 803
| Llasa-TTS 1B | [link](https://huggingface.co/unsloth/Llasa-1B) | - Network accessline 804
| Spark-TTS 0.5B | [link](https://huggingface.co/unsloth/Spark-TTS-0.5B) | - Network accessline 805
| Oute-TTS 1B | [link](https://huggingface.co/unsloth/Llama-OuteTTS-1.0-1B) | - Network accessline 813
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------ | ----------------- | ---------- - Network accessline 814
| ------------ | ----------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | **Gemma 3n** | E2B | [link](htt - Network accessline 815
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E2B) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-unsloth-bnb-4bit) | - Network accessline 816
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B) | [link](https://huggingface.co/unsloth/gemma-3n-E4B-unsloth-bnb-4bit) | - Network accessline 817
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base-unsloth-bnb-4bit) | - Network accessline 818
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base-unsloth-bnb-4bit) | - Network accessline 819
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-Base) | [link](https://huggingface.co/unsloth/Qwen3-4B-Base-unsloth-bnb-4bit) | - Network accessline 820
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-Base) | [link](https://huggingface.co/unsloth/Qwen3-8B-Base-unsloth-bnb-4bit) | - Network accessline 821
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-Base) | [link](https://huggingface.co/unsloth/Qwen3-14B-Base-unsloth-bnb-4bit) | - Network accessline 822
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base-bnb-4bit) | - Network accessline 823
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-bnb-4bit) | - Network accessline 824
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 828
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------- | ----------------- | ----------------------------------- - Network accessline 829
| ------------- | ----------------- | ---------------------------------------------------------------- | ----------------------------------------------------------- | | **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unslo - Network accessline 830
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | — | - Network accessline 831
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 832
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B) | — | - Network accessline 833
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B) | — | - Network accessline 834
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B) | — | - Network accessline 835
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision) | — | - Network accessline 836
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision) | — | - Network accessline 837
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B) | — | - Network accessline 838
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B) | — | - Network accessline 839
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b) | [link](https://huggingface.co/unsloth/llama-3-8b-bnb-4bit) | - Network accessline 840
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b) | [link](https://huggingface.co/unsloth/llama-2-7b-bnb-4bit) | - Network accessline 841
| | 13 B | [link](https://huggingface.co/unsloth/llama-2-13b) | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 845
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------ | ------- | ------------------------------------------------- - Network accessline 846
| ------------ | ------- | --------------------------------------------------------- | -------------------------------------------------------------------------- | | **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B- - Network accessline 847
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base-unsloth-bnb-4bit) | - Network accessline 848
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base-unsloth-bnb-4bit) | - Network accessline 849
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-Base) | [link](https://huggingface.co/unsloth/Qwen3-4B-Base-unsloth-bnb-4bit) | - Network accessline 850
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-Base) | [link](https://huggingface.co/unsloth/Qwen3-8B-Base-unsloth-bnb-4bit) | - Network accessline 851
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-Base) | [link](https://huggingface.co/unsloth/Qwen3-14B-Base-unsloth-bnb-4bit) | - Network accessline 852
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base-unsloth-bnb-4bit) | - Network accessline 853
| **Qwen 2.5** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B) | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-bnb-4bit) | - Network accessline 854
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B) | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-bnb-4bit) | - Network accessline 855
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-3B) | [link](https://huggingface.co/unsloth/Qwen2.5-3B-bnb-4bit) | - Network accessline 856
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-7B) | [link](https://huggingface.co/unsloth/Qwen2.5-7B-bnb-4bit) | - Network accessline 857
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-14B) | [link](https://huggingface.co/unsloth/Qwen2.5-14B-bnb-4bit) | - Network accessline 858
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-32B) | [link](https://huggingface.co/unsloth/Qwen2.5-32B-bnb-4bit) | - Network accessline 859
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-72B) | [link](https://huggingface.co/unsloth/Qwen2.5-72B-bnb-4bit) | - Network accessline 860
| **Qwen 2** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B) | [link](https://huggingface.co/unsloth/Qwen2-1.5B-bnb-4bit) | - Network accessline 861
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-7B) | [link](https://huggingface.co/unsloth/Qwen2-7B-bnb-4bit) | - Network accessline 865
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------- | ----------------- | ----------------------------------- - Network accessline 866
| ------------- | ----------------- | ---------------------------------------------------------------- | ----------------------------------------------------------- | | **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unslo - Network accessline 867
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | — | - Network accessline 868
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 869
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B) | — | - Network accessline 870
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B) | — | - Network accessline 871
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B) | — | - Network accessline 872
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision) | — | - Network accessline 873
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision) | — | - Network accessline 874
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B) | — | - Network accessline 875
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B) | — | - Network accessline 876
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b) | [link](https://huggingface.co/unsloth/llama-3-8b-bnb-4bit) | - Network accessline 877
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b) | [link](https://huggingface.co/unsloth/llama-2-7b-bnb-4bit) | - Network accessline 878
| | 13 B | [link](https://huggingface.co/unsloth/llama-2-13b) | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 882
| Model | Variant | Base (16-bit) | Base (4-bit) | | ----------- | ------- | ----------------------------------------------------- | --- - Network accessline 883
| ----------- | ------- | ----------------------------------------------------- | ---------------------------------------------------------------------- | | **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-pt) | [li - Network accessline 884
| **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-pt) | [link](https://huggingface.co/unsloth/gemma-3-1b-pt-unsloth-bnb-4bit) | - Network accessline 885
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-pt) | [link](https://huggingface.co/unsloth/gemma-3-4b-pt-unsloth-bnb-4bit) | - Network accessline 886
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-pt) | [link](https://huggingface.co/unsloth/gemma-3-12b-pt-unsloth-bnb-4bit) | - Network accessline 887
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-pt) | [link](https://huggingface.co/unsloth/gemma-3-27b-pt-unsloth-bnb-4bit) | - Network accessline 888
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2-2b) | — | - Network accessline 889
| | 9 B | [link](https://huggingface.co/unsloth/gemma-2-9b) | — | - Network accessline 890
| | 27 B | [link](https://huggingface.co/unsloth/gemma-2-27b) | — | - Network accessline 894
| Model | Variant | Base (16-bit) | Base (4-bit) | | ----------- | ---------------- | ----------------------------------- - Network accessline 895
| ----------- | ---------------- | ------------------------------------------------------------------ | --------------------------------------------------------------- | | **Mistral** | Small 24B 2501 | [link](https://huggingface.co/unslo - Network accessline 896
| **Mistral** | Small 24B 2501 | [link](https://huggingface.co/unsloth/Mistral-Small-24B-Base-2501) | — | - Network accessline 897
| | NeMo 12B 2407 | [link](https://huggingface.co/unsloth/Mistral-Nemo-Base-2407) | — | - Network accessline 898
| | 7B v0.3 | [link](https://huggingface.co/unsloth/mistral-7b-v0.3) | [link](https://huggingface.co/unsloth/mistral-7b-v0.3-bnb-4bit) | - Network accessline 899
| | 7B v0.2 | [link](https://huggingface.co/unsloth/mistral-7b-v0.2) | [link](https://huggingface.co/unsloth/mistral-7b-v0.2-bnb-4bit) | - Network accessline 900
| | Pixtral 12B 2409 | [link](https://huggingface.co/unsloth/Pixtral-12B-Base-2409) | — | - Network accessline 904
| Model | Variant | Base (16-bit) | Base (4-bit) | | -------------- | -------------- | ----------------- - Network accessline 905
| -------------- | -------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------- | | **TinyLlama** | 1.1 B (Base) | [link](https://hu - Network accessline 906
| **TinyLlama** | 1.1 B (Base) | [link](https://huggingface.co/unsloth/tinyllama) | [link](https://huggingface.co/unsloth/tinyllama-bnb-4bit) | - Network accessline 907
| **Orpheus-3b** | 0.1-pretrained | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained-unsloth-bnb-4bit) | - Network accessline 916
Unsloth works on Linux, Windows, NVIDIA, AMD, Google Colab and more. See our [system requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements). - Network accessline 939
<pre class="language-bash"><code class="lang-bash">pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 940
<strong>pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 949
'2025.1.5' is one of the previous old versions of Unsloth. Change it to a specific release listed on our [Github here](https://github.com/unslothai/unsloth/releases). - Network accessline 967
pip uninstall unsloth unsloth_zoo -y && pip install --no-deps git+https://github.com/unslothai/unsloth_zoo.git && pip install --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 981
pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 982
pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 989
{% hint style="warning" %} Do **NOT** use this if you have [Conda](https://docs.unsloth.ai/get-started/install-and-update/conda-install). - Network accessline 990
Do **NOT** use this if you have [Conda](https://docs.unsloth.ai/get-started/install-and-update/conda-install). - Network accessline 1000
pip install --upgrade pip pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1001
pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1007
pip install --upgrade pip pip install "unsloth[cu124-torch250] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1008
pip install "unsloth[cu124-torch250] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1014
pip install "unsloth[cu121-ampere-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1015
pip install "unsloth[cu118-ampere-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1016
pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1017
pip install "unsloth[cu118-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1019
pip install "unsloth[cu121-torch230] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1020
pip install "unsloth[cu121-ampere-torch230] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1022
pip install "unsloth[cu121-torch250] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1023
pip install "unsloth[cu124-ampere-torch250] @ git+https://github.com/unslothai/unsloth.git" - Dangerous shell operationline 1029
wget -qO- https://raw.githubusercontent.com/unslothai/unsloth/main/unsloth/_auto_install.py | python - - Network accessline 1029
wget -qO- https://raw.githubusercontent.com/unslothai/unsloth/main/unsloth/_auto_install.py | python - - Network accessline 1049
else: raise RuntimeError(f"Torch = {v} too new!") x = x.format(cuda.replace(".", ""), "-ampere" if is_ampere else "") print(f'pip install --upgrade pip && pip install "unsloth[{x}] @ git+https://github.com/unslothai/unsloth.git"') - Network accessline 1051
print(f'pip install --upgrade pip && pip install "unsloth[{x}] @ git+https://github.com/unslothai/unsloth.git"') - Network accessline 1061
Unsloth Docker image: [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) - Network accessline 1074
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other).\ - Network accessline 1075
Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation): - Dangerous shell operationline 1078
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 1085
[Credential-related source omitted] - Network accessline 1092
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For Blackwell and 50-series GPUs, use this same image - no separate one needed. - Network accessline 1102
[Credential-related source omitted] - Network accessline 1109
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. - Network accessline 1111
[Credential-related source omitted] - Network accessline 1115
[Credential-related source omitted] - Network accessline 1122
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 1124
[Credential-related source omitted] - Access to secretsline 1139
[Credential-related source omitted] - Access to secretsline 1141
[Credential-related source omitted] - Access to secretsline 1155
[Credential-related source omitted] - Access to secretsline 1158
[Credential-related source omitted] - Access to secretsline 1161
[Credential-related source omitted] - Access to secretsline 1175
[Credential-related source omitted] - Access to secretsline 1178
[Credential-related source omitted] - Access to secretsline 1204
[Credential-related source omitted] - Access to secretsline 1206
[Credential-related source omitted] - Dangerous shell operationline 1217
* Use `USER_PASSWORD` for sudo operations inside container - Network accessline 1229
Docker might be the easiest way for Windows users to get started with Unsloth as there is no setup needed or dependency issues. [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For [Blackwell - Network accessline 1231
For installation instructions, please follow our [Docker guide](https://docs.unsloth.ai/new/how-to-fine-tune-llms-with-unsloth-and-docker), otherwise here is a quickstart guide: - Network accessline 1238
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other). Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/ins - Dangerous shell operationline 1241
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 1254
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. - Network accessline 1270
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. Access the `unsloth-notebooks` tabs to see Unsloth notebooks. - Network accessline 1277
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 1291
You should install the latest version of your GPUs driver. Download drivers here: [NVIDIA GPU Drive](https://www.nvidia.com/Download/index.aspx) - Network accessline 1299
* Launch the Installer here: [Visual Studio Community Edition](https://visualstudio.microsoft.com/vs/community/) - Network accessline 1344
Follow the instructions to install [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit-archive). - Network accessline 1346
Then install Miniconda (which has Python) here: [https://www.anaconda.com/docs/getting-started/miniconda/install](https://www.anaconda.com/docs/getting-started/miniconda/install#quickstart-install-instructions) - Network accessline 1352
You will need the correct version of PyTorch that is compatible with your CUDA drivers, so make sure to select them carefully. [Install PyTorch](https://pytorch.org/get-started/locally/) - Network accessline 1361
pip install "unsloth[windows] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1375
* Install Triton from this Windows fork and follow the instructions [here](https://github.com/woct0rdho/triton-windows) (be aware that the Windows fork requires PyTorch >= 2.4 and CUDA 12) - Network accessline 1389
1. Install `torch` and `triton`. Go to <https://pytorch.org> to install it. For example `pip install torch torchvision torchaudio triton` - Network accessline 1390
2. Confirm if CUDA is installated correctly. Try `nvcc`. If that fails, you need to install `cudatoolkit` or CUDA drivers. 3. Install `xformers` manually. You can try installing `vllm` and seeing if `vllm` succeeds. Check if `xformers` succ - Network accessline 1391
3. Install `xformers` manually. You can try installing `vllm` and seeing if `vllm` succeeds. Check if `xformers` succeeded with `python -m xformers.info` Go to <https://github.com/facebookresearch/xformers>. Another option is to install `fl - Network accessline 1392
4. Double check that your versions of Python, CUDA, CUDNN, `torch`, `triton`, and `xformers` are compatible with one another. The [PyTorch Compatibility Matrix](https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-m - Network accessline 1399
1. **Install NVIDIA CUDA Toolkit**: * Download and install the appropriate version of the **NVIDIA CUDA Toolkit** from [CUDA Downloads](https://developer.nvidia.com/cuda-downloads). - Network accessline 1400
* Download and install the appropriate version of the **NVIDIA CUDA Toolkit** from [CUDA Downloads](https://developer.nvidia.com/cuda-downloads). - Network accessline 1402
* **Note**: No additional setup is required after installation for Unsloth. 2. **Install Microsoft C++ Build Tools**: * Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.mic - Network accessline 1403
2. **Install Microsoft C++ Build Tools**: * Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.microsoft.com/visual-cpp-build-tools/). * During installation, select the ** - Network accessline 1404
* Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.microsoft.com/visual-cpp-build-tools/). - Network accessline 1421
* Verify: Open a new terminal and type `cl`. It should show version info. 4. **Install Conda** 1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) - Network accessline 1422
4. **Install Conda** 1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) 2. Follow installation instruction from the website - Network accessline 1423
1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) - Network accessline 1429
1. **Download the** [**unsloth\_windows.ps1**](https://github.com/unslothai/notebooks/blob/main/unsloth_windows.ps1) **PowerShell script by going through this link**. - Network accessline 1459
1. Install python though [Python's official site](https://www.python.org/downloads/windows/). - Dangerous shell operationline 1471
sudo apt update && sudo apt upgrade -y - Dangerous shell operationline 1477
sudo apt install python3-pip - Network accessline 1527
Install the latest PyTorch, TorchAO, Xformers from <https://pytorch.org/> - Network accessline 1532
pip install --upgrade torch==2.8.0 pytorch-triton-rocm torchvision torchaudio torchao==0.13.0 xformers --index-url https://download.pytorch.org/whl/rocm6.4 - Network accessline 1546
pip install --no-deps unsloth unsloth-zoo pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 1547
pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 1548
pip install "unsloth[amd] @ git+https://github.com/unslothai/unsloth" - Network accessline 1555
And that's it! Try some examples in our [**Unsloth Notebooks**](https://docs.unsloth.ai/get-started/unsloth-notebooks) page! - Network accessline 1559
You can use our :ledger:[gpt-oss RL auto win 2048](https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_Reinforcement_Learning_2048_Game_BF16.ipynb) example on a MI300X (192GB) GPU. The goal is to play the 2048 game automatic - Network accessline 1564
[Credential-related source omitted] - Network accessline 1572
[Credential-related source omitted] - Network accessline 1579
[Credential-related source omitted] - Network accessline 1581
You can also use our :ledger:[automatic kernel gen RL notebook](https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_GRPO_BF16.ipynb) also with gpt-oss to auto create matrix multiplication kernels in Python. The notebook also - Network accessline 1606
[Credential-related source omitted] - Network accessline 1618
AMD GPUs also need the bitsandbytes `blocksize` to be 128 and not 64 - this also means our pre-quantized models (for example [unsloth/Llama-3.2-1B-Instruct-unsloth-bnb-4bit](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-bnb-4bit)) fr - Network accessline 1625
{% hint style="warning" %} Only use Conda if you have it. If not, use [Pip](https://docs.unsloth.ai/get-started/install-and-update/pip-install). - Network accessline 1626
Only use Conda if you have it. If not, use [Pip](https://docs.unsloth.ai/get-started/install-and-update/pip-install). - Network accessline 1642
If you're looking to install Conda in a Linux environment, [read here](https://docs.anaconda.com/miniconda/), or run the below: - Network accessline 1645
mkdir -p ~/miniconda3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh - Network accessline 1646
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh - Dangerous shell operationline 1648
rm -rf ~/miniconda3/miniconda.sh - Network accessline 1658
[Credential-related source omitted] - Network accessline 1668
[Credential-related source omitted] - Network accessline 1679
max_seq_length = 2048 # Supports RoPE Scaling internally, so choose any! # Get LAION dataset url = "https://huggingface.co/datasets/laion/OIG/resolve/main/unified_chip2.jsonl" - Network accessline 1680
# Get LAION dataset url = "https://huggingface.co/datasets/laion/OIG/resolve/main/unified_chip2.jsonl" dataset = load_dataset("json", data_files = {"train" : url}, split = "train") - Network accessline 1681
url = "https://huggingface.co/datasets/laion/OIG/resolve/main/unified_chip2.jsonl" - Network accessline 1688
] # More models at https://huggingface.co/unsloth - Network accessline 1735
# Go to https://docs.unsloth.ai for advanced tips like - Possible obfuscationline 1752
* <U+200B>**DeepSeek-R1-Distill-Llama-8B** is a fine-tuned version of Llama-3.1-8B. DeepSeek utilized data generated by DeepSeek-R1, to fine-tune Llama-3.1-8B. This process, known as distillation (a subcategory of fine-tuning), injects the data in - Network accessline 1754
With [Unsloth](https://github.com/unslothai/unsloth), you can fine-tune for free on Colab, Kaggle, or locally with just 3GB VRAM by using our [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). By fine-tuning a pre-trained m - Network accessline 1770
You may have heard that fine-tuning does not make a model learn new knowledge or RAG performs better than fine-tuning. That is **false**. Read more FAQ + misconceptions [here](https://docs.unsloth.ai/beginner-start-here/faq-+-is-fine-tuning - Network accessline 1772
{% content-ref url="beginner-start-here/faq-+-is-fine-tuning-right-for-me" %} [faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 1773
[faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 1783
[Credential-related source omitted] - Network accessline 1787
We recommend starting with **Instruct models**, as they allow direct fine-tuning using conversational chat templates (ChatML, ShareGPT etc.) and require less data compared to **Base models** (which uses Alpaca, Vicuna etc). Learn more about - Network accessline 1789
* Model names ending in **`unsloth-bnb-4bit`** indicate they are [**Unsloth dynamic 4-bit**](https://unsloth.ai/blog/dynamic-4bit) **quants**. These models consume slightly more VRAM than standard BitsAndBytes 4-bit models but offer signifi - Network accessline 1801
We recommend starting with QLoRA, as it is one of the most accessible and effective methods for training models. Our [dynamic 4-bit](https://unsloth.ai/blog/dynamic-4bit) quants, the accuracy loss for QLoRA compared to LoRA is now largely r - Network accessline 1803
You can also do [Text-to-speech (TTS)](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning), [reasoning (GRPO)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide), [vision](https://docs.unsloth.ai/basics/vision-f - Network accessline 1807
{% content-ref url="fine-tuning-llms-guide/what-model-should-i-use" %} [what-model-should-i-use](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/what-model-should-i-use) - Network accessline 1808
[what-model-should-i-use](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/what-model-should-i-use) - Network accessline 1815
* You will need to create a dataset usually with 2 columns - question and answer. The quality and amount will largely reflect the end result of your fine-tune so it's imperative to get this part right. * You can [synthetically generate data - Network accessline 1816
* You can [synthetically generate data](https://docs.unsloth.ai/get-started/datasets-guide#synthetic-data-generation) and structure your dataset (into QA pairs) using ChatGPT or local LLMs. - Network accessline 1817
* You can also use our new Synthetic Dataset notebook which automatically parses documents (PDFs, videos etc.), generates QA pairs and auto cleans data using local models like Llama 3.2. [Access the notebook here.](https://colab.research.go - Network accessline 1823
{% content-ref url="fine-tuning-llms-guide/datasets-guide" %} [datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 1824
[datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 1827
For most of our notebook examples, we utilize the [Alpaca dataset](https://docs.unsloth.ai/basics/tutorial-how-to-finetune-llama-3-and-use-in-ollama#id-6.-alpaca-dataset) however other notebooks like Vision will use different datasets which - Network accessline 1831
Learn how to choose the right [hyperparameters](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) using best practices from research and real-world experiments - and understand how each one affects your - Network accessline 1835
{% content-ref url="fine-tuning-llms-guide/lora-hyperparameters-guide" %} [lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 1836
[lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 1841
We would recommend beginners to utilise our pre-made [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) first as it's the easiest way to get started with guided steps. However, if installing locally is a must, you can instal - Network accessline 1843
{% content-ref url="beginner-start-here/unsloth-requirements" %} [unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 1844
[unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 1849
{% content-ref url="install-and-update" %} [install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 1850
[install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 1859
[Credential-related source omitted] - Network accessline 1872
For testing, you can also take 20% of your training data and use that for testing. If you already used all of the training data, then you have to manually evaluate it. You can also use automatic eval tools like EleutherAI’s [lm-evaluation- - Network accessline 1876
[Credential-related source omitted] - Network accessline 1880
[Credential-related source omitted] - Network accessline 1888
{% content-ref url="../basics/running-and-saving-models" %} [running-and-saving-models](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 1889
[running-and-saving-models](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 1892
We can now save the finetuned model as a small 100MB file called a LoRA adapter like below. You can instead push to the Hugging Face hub as well if you want to upload your model! Remember to get a Hugging Face token via: <https://huggingfac - Network accessline 1894
[Credential-related source omitted] - Network accessline 1898
[Credential-related source omitted] - Network accessline 1904
To learn more about fine-tuning tips and tricks, head over to our blogs which provide tremendous and educational value: <https://unsloth.ai/blog/> - Network accessline 1906
If you need any help on fine-tuning, you can also join our Discord server [here](https://discord.gg/unsloth) or [Reddit r/unsloth](https://www.reddit.com/r/unsloth/). Thanks for reading and hopefully this was helpful! - Network accessline 1908
[Credential-related source omitted] - Network accessline 1922
* E.g. For image-based training, select a vision model such as *Llama 3.2 Vision*. For code datasets, opt for a specialized model like *Qwen Coder 2.5*. * **Licensing and Requirements**: Different models may have specific licensing terms an - Network accessline 1923
* **Licensing and Requirements**: Different models may have specific licensing terms and [system requirements](https://docs.unsloth.ai/beginner-start-here/unsloth-requirements#system-requirements). Be sure to review these carefully to avoid - Network accessline 1930
* Use our [VRAM guideline](https://docs.unsloth.ai/beginner-start-here/unsloth-requirements#approximate-vram-requirements-based-on-model-parameters) to determine the VRAM requirements for the model you’re considering. - Network accessline 1938
* We recommend using the latest model for the best performance and capabilities. For instance, as of January 2025, the leading 70B model is *Llama 3.3*. * You can stay up to date by exploring our [model catalog](https://docs.unsloth.ai/get- - Network accessline 1939
* You can stay up to date by exploring our [model catalog](https://docs.unsloth.ai/get-started/all-our-models) to find the newest and relevant options. - Network accessline 1960
Base models, on the other hand, are the original pre-trained versions without instruction fine-tuning. These are specifically designed for customization through fine-tuning, allowing you to adapt them to your unique needs. Base models are c - Network accessline 1967
* **300–1,000 Rows of High-Quality Data**: With a medium-sized, high-quality dataset, fine-tuning the base or instruct model are both viable options. * **Less than 300 Rows**: For smaller datasets, the instruct model is typically the better - Network accessline 1969
* For information how how big your dataset should be, [see here](https://docs.unsloth.ai/get-started/datasets-guide#how-big-should-my-dataset-be) - Network accessline 1977
* Model names ending in **`unsloth-bnb-4bit`** indicate they are [**Unsloth dynamic 4-bit**](https://unsloth.ai/blog/dynamic-4bit) **quants**. These models consume slightly more VRAM than standard BitsAndBytes 4-bit models but offer signifi - Network accessline 1996
One of the key parts of creating a dataset is your [chat template](https://docs.unsloth.ai/basics/chat-templates) and how you are going to design it. Tokenization is also important as it breaks text into tokens, which can be words, sub-word - Network accessline 2019
* Chat-based dialogues (Q\&A, learn a new language, customer support, conversations). * Structured tasks ([classification](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification. - Network accessline 2020
* Structured tasks ([classification](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification.ipynb), summarization, generation tasks). - Network accessline 2049
For [**continued pretraining**](https://docs.unsloth.ai/basics/continued-pretraining), we use raw text format without specific structure: - Network accessline 2057
If we are adapting a model to a new task, and intend for the model to output text in a single turn based on a specific set of instructions, we can use **Instruction** format in [Alpaca style](https://docs.unsloth.ai/basics/tutorial-how-to-f - Network accessline 2189
<mark style="color:green;">**A:**</mark> If your dataset is already formatted in the Alpaca format, then follow the formatting steps as shown in the Llama3.1 [notebook ](https://colab.research.google.com/github/unslothai/notebooks/blob/mai - Network accessline 2197
<mark style="color:green;">**A:**</mark> The `chat_template` attribute when a model is first uploaded by the original model owners sometimes contains errors and may take time to be updated. In contrast, at Unsloth, we thoroughly check and - Network accessline 2201
<mark style="color:green;">**A:**</mark> Submit a feature request on the unsloth github issues [forum](https://github.com/unslothai/unsloth). As a temporary workaround, you could also use the tokenizer's own apply\_chat\_template function - Network accessline 2207
* Produce entirely new data - either from scratch or from your existing dataset * Diversify your dataset so your model does not [overfit](https://docs.unsloth.ai/get-started/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting) - Network accessline 2208
* Diversify your dataset so your model does not [overfit](https://docs.unsloth.ai/get-started/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting) and become too specific - Network accessline 2213
We collaborated with Meta to launch a free notebook for creating Synthetic Datasets automatically using local models like Llama 3.2. [Access the notebook here.](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Meta_ - Network accessline 2260
If you want to fine-tune a model that already has reasoning capabilities like the distilled versions of DeepSeek-R1 (e.g. DeepSeek-R1-Distill-Llama-8B), you will need to still follow question/task and answer pairs however, for your answer y - Network accessline 2262
For a model that does not have reasoning and you want to train it so that it later encompasses reasoning capabilities, you will need to utilize a standard dataset but this time without reasoning in its answers. This is training process is k - Network accessline 2268
* Standardize the format of all datasets, combine them into a single dataset, and fine-tune on this unified dataset. * Use the [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) notebo - Network accessline 2269
* Use the [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) notebook to fine-tune on multiple datasets directly. - Network accessline 2281
[Credential-related source omitted] - Network accessline 2285
You can access the GPT4 version of the Alpaca dataset [here](https://huggingface.co/datasets/vicgalle/alpaca-gpt4.). Below shows some examples of the dataset: - Network accessline 2287
[Credential-related source omitted] - Network accessline 2291
[Credential-related source omitted] - Network accessline 2297
[Credential-related source omitted] - Network accessline 2303
[Credential-related source omitted] - Network accessline 2307
[Credential-related source omitted] - Network accessline 2311
[Credential-related source omitted] - Network accessline 2321
[Credential-related source omitted] - Network accessline 2349
[Credential-related source omitted] - Network accessline 2353
[Credential-related source omitted] - Network accessline 2359
[Credential-related source omitted] - Network accessline 2363
The dataset for fine-tuning a vision or multimodal model also includes image inputs. For example, the [Llama 3.2 Vision Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb#scroll - Network accessline 2365
We'll be using a sampled version of the ROCO radiography dataset. You can access the dataset [here](https://www.google.com/url?q=https%3A%2F%2Fhuggingface.co%2Fdatasets%2Funsloth%2FRadiology_mini). The dataset includes X-rays, CT scans and - Network accessline 2376
| Image - Network accessline 2378
[Credential-related source omitted] - Network accessline 2483
For more details, view our dataset section in the [notebook here](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb#scrollTo=vITh0KVJ10qX). - Network accessline 2506
[Credential-related source omitted] - Network accessline 2535
* **LoRA:** 16-bit fine-tuning. It's slightly faster and slightly more accurate, but consumes significantly more VRAM (4× more than QLoRA). Recommended for 16-bit environments and scenarios where maximum accuracy is required. * **QLoRA:** 4 - Network accessline 2537
:sloth: *70B LLaMA fits in <48GB VRAM with QLoRA in Unsloth -* [*more details here*](https://unsloth.ai/blog/llama3-3)*.* - Network accessline 2581
[Read our blog post](https://unsloth.ai/blog/gradient) for more details. - Network accessline 2585
[Credential-related source omitted] - Network accessline 2589
[Credential-related source omitted] - Network accessline 2595
[Credential-related source omitted] - Network accessline 2620
A regularization technique that helps [prevent overfitting](#overfitting-poor-generalization-too-specialized) by randomly setting a fraction of the LoRA activations to zero during each training step. [Recent research suggests](https://arxiv - Network accessline 2633
Options are `True`, `False`, and `"unsloth"`. \ 🦥 *We recommend* `"unsloth"` *as it reduces memory usage by an extra 30% and supports extremely long context fine-tunes. You can read more on* [*our blog post about long context training*]( - Network accessline 2634
🦥 *We recommend* `"unsloth"` *as it reduces memory usage by an extra 30% and supports extremely long context fine-tunes. You can read more on* [*our blog post about long context training*](https://unsloth.ai/blog/long-context)*.*\\ - Network accessline 2646
An advanced feature that implements [**Rank-Stabilized LoRA**](https://arxiv.org/abs/2312.03732). If set to `True`, the effective scaling becomes `lora_alpha / sqrt(r)` instead of the standard `lora_alpha / r`. This can sometimes improve st - Network accessline 2652
An advanced technique, as proposed in [**LoftQ**](https://arxiv.org/abs/2310.08659), initializes LoRA matrices with the top 'r' singular vectors from the pretrained weights. This can improve accuracy but may cause a significant memory spike - Network accessline 2656
When validating that **LoRA** adapter weights have been updated after fine-tuning, avoid using **np.allclose()** for comparison. This method can miss subtle but meaningful changes, particularly in **LoRA A**, which is initialized with small - Network accessline 2677
[Credential-related source omitted] - Network accessline 2687
According to the [rsLoRA (rank stabilized lora) paper](https://arxiv.org/abs/2312.03732), we should instead scale alpha by the sqrt of the rank. Other options exist, but theoretically this is the optimum. The left plot shows other ranks and - Network accessline 2704
According to empirical experiments and research papers like the original [QLoRA paper](https://arxiv.org/pdf/2305.14314), it's best to apply LoRA to both attention and MLP layers. - Network accessline 2709
[Credential-related source omitted] - Network accessline 2728
The [QLoRA paper](https://arxiv.org/pdf/2305.14314) shows that masking out inputs and **training only on completions** (outputs or assistant messages) can further **increase accuracy** by a few percentage points (*1%*). Below demonstrates h - Network accessline 2751
The QLoRA paper states that **training on completions only** increases accuracy by quite a bit, especially for multi-turn conversational finetunes! We do this in our [conversational notebooks here](https://colab.research.google.com/github/u - Network accessline 2753
[Credential-related source omitted] - Network accessline 2822
***Acknowledgements:** A huge thank you to* [*Eyera*](https://huggingface.co/Orenguteng) *for contributing to this guide!* - Network accessline 2829
By the end of this tutorial, you will create a custom chatbot by **finetuning Llama-3** with [**Unsloth**](https://github.com/unslothai/unsloth) for free. It can run locally via [**Ollama**](https://github.com/ollama/ollama) on your PC, or - Network accessline 2831
[Credential-related source omitted] - Network accessline 2833
**Unsloth** makes finetuning much easier, and can automatically export the finetuned model to **Ollama** with integrated automatic `Modelfile` creation! If you need help, you can join our Discord server: <https://discord.com/invite/unsloth> - Network accessline 2835
{% hint style="warning" %} **If you’d like to copy or save the code, everything is available in our** [**Ollama Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb)**. You c - Network accessline 2836
**If you’d like to copy or save the code, everything is available in our** [**Ollama Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb)**. You can use it directly there or - Network accessline 2841
[Unsloth](https://github.com/unslothai/unsloth) makes finetuning LLMs like Llama-3, Mistral, Phi-3 and Gemma 2x faster, use 70% less memory, and with no degradation in accuracy! We will be using Google Colab which provides a free GPU during - Network accessline 2843
* [Ollama Llama-3 Alpaca](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) (notebook which we will be using) - Network accessline 2844
* [CSV/Excel Ollama Guide](https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharing) - Network accessline 2848
[Credential-related source omitted] - Network accessline 2852
[Ollama ](https://github.com/ollama/ollama)allows you to run language models from your own computer in a quick and simple way! It quietly launches a program which can run a language model like Llama-3 in the background. If you suddenly want - Network accessline 2854
[Credential-related source omitted] - Network accessline 2858
[Credential-related source omitted] - Network accessline 2868
[Credential-related source omitted] - Network accessline 2876
[Credential-related source omitted] - Network accessline 2896
[Credential-related source omitted] - Network accessline 2902
[Credential-related source omitted] - Network accessline 2938
Options include `True`, `False` and `"unsloth"`. We suggest `"unsloth"` since we reduce memory usage by an extra 30% and support extremely long context finetunes.You can read up here: <https://unsloth.ai/blog/long-context> for more details. - Network accessline 2957
[Credential-related source omitted] - Network accessline 2961
You can access the GPT4 version of the Alpaca dataset here: <https://huggingface.co/datasets/vicgalle/alpaca-gpt4>. An older first version of the dataset is here: <https://github.com/tatsu-lab/stanford_alpaca>. Below shows some examples of - Network accessline 2963
[Credential-related source omitted] - Network accessline 2967
[Credential-related source omitted] - Network accessline 2973
[Credential-related source omitted] - Network accessline 2979
[Credential-related source omitted] - Network accessline 2983
[Credential-related source omitted] - Network accessline 2987
To access the Titanic finetuning notebook or if you want to upload a CSV or Excel file, go here: <https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharing> - Network accessline 2989
[Credential-related source omitted] - Network accessline 2999
[Credential-related source omitted] - Network accessline 3027
[Credential-related source omitted] - Network accessline 3031
[Credential-related source omitted] - Network accessline 3037
[Credential-related source omitted] - Network accessline 3043
[Credential-related source omitted] - Network accessline 3047
[Credential-related source omitted] - Network accessline 3051
[Credential-related source omitted] - Network accessline 3055
[Credential-related source omitted] - Network accessline 3059
[Credential-related source omitted] - Network accessline 3061
Or in the Titanic prediction task where you had to predict if a passenger died or survived in this Colab notebook which includes CSV and Excel uploading: <https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharin - Network accessline 3063
[Credential-related source omitted] - Network accessline 3069
[Credential-related source omitted] - Network accessline 3094
[Credential-related source omitted] - Network accessline 3100
[Credential-related source omitted] - Network accessline 3104
[Credential-related source omitted] - Network accessline 3110
We can now save the finetuned model as a small 100MB file called a LoRA adapter like below. You can instead push to the Hugging Face hub as well if you want to upload your model! Remember to get a Hugging Face token via <https://huggingface - Network accessline 3112
[Credential-related source omitted] - Network accessline 3116
[Credential-related source omitted] - Network accessline 3122
[Credential-related source omitted] - Network accessline 3126
[Credential-related source omitted] - Network accessline 3130
Head over to <https://github.com/ggerganov/llama.cpp> to learn more about GGUF. We also have some manual instructions of how to export to GGUF if you want here: <https://github.com/unslothai/unsloth/wiki#manually-saving-to-gguf> - Network accessline 3134
[Credential-related source omitted] - Network accessline 3138
[Credential-related source omitted] - Network accessline 3142
[Credential-related source omitted] - Network accessline 3148
[Credential-related source omitted] - Network accessline 3152
[Credential-related source omitted] - Network accessline 3158
[Credential-related source omitted] - Network accessline 3162
[Credential-related source omitted] - Network accessline 3164
[Credential-related source omitted] - Network accessline 3168
[Credential-related source omitted] - Network accessline 3172
[Credential-related source omitted] - Network accessline 3178
If you want to learn how to do reward modelling, do continued pretraining, export to vLLM or GGUF, do text completion, or learn more about finetuning tips and tricks, head over to our [Github](https://github.com/unslothai/unsloth#-finetune- - Network accessline 3180
If you need any help on finetuning, you can also join our Discord server [here](https://discord.gg/unsloth). If you want help with Ollama, you can also join their server [here](https://discord.gg/ollama). - Network accessline 3184
To access our Alpaca dataset example click [here](https://colab.research.google.com/drive/1WZDi7APtQ9VsvOrQSSC5DDtxq159j8iZ?usp=sharing), and our CSV / Excel finetuning guide is [here](https://colab.research.google.com/drive/1VYkncZMfGFkeCE - Network accessline 3197
{% hint style="success" %} For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3198
For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3206
This article covers everything (from beginner to advanced) you need to know about GRPO, Reinforcement Learning (RL) and reward functions, along with tips, and the basics of using GRPO with [Unsloth](https://github.com/unslothai/unsloth). If - Network accessline 3229
[Credential-related source omitted] - Network accessline 3236
[Credential-related source omitted] - Network accessline 3255
[Credential-related source omitted] - Network accessline 3258
{% column %} OpenAI popularized the concept of [RLHF](https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback) (Reinforcement Learning from Human Feedback), where we train an <mark style="background-color:red;">**"agent"**< - Network accessline 3259
OpenAI popularized the concept of [RLHF](https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback) (Reinforcement Learning from Human Feedback), where we train an <mark style="background-color:red;">**"agent"**</mark> to pro - Network accessline 3268
[Credential-related source omitted] - Network accessline 3270
[Credential-related source omitted] - Network accessline 3275
{% column %} In order to do RLHF, [<mark style="background-color:red;">**PPO**</mark>](https://en.wikipedia.org/wiki/Proximal_policy_optimization) (Proximal policy optimization) was developed. The <mark style="background-color:blue;">**agen - Network accessline 3276
In order to do RLHF, [<mark style="background-color:red;">**PPO**</mark>](https://en.wikipedia.org/wiki/Proximal_policy_optimization) (Proximal policy optimization) was developed. The <mark style="background-color:blue;">**agent**</mark> is - Network accessline 3284
The formula for PPO looks quite complicated because it was designed to be stable. Visit our [AI Engineer talk](https://docs.unsloth.ai/ai-engineers-2025) we gave in 2025 about RL for more in depth maths derivations about PPO. - Network accessline 3291
[Credential-related source omitted] - Network accessline 3294
{% column %} DeepSeek developed [<mark style="background-color:red;">**GRPO**</mark>](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. The key differences to PPO are: - Network accessline 3295
DeepSeek developed [<mark style="background-color:red;">**GRPO**</mark>](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. The key differences to PPO are: - Network accessline 3307
2. Code output can be verified as having executed correctly or not. 3. Designing verifiable reward functions can be tough, and so most examples are math or code. 4. Use-cases for GRPO isn’t just for code or math—its reasoning process can en - Network accessline 3309
4. Use-cases for GRPO isn’t just for code or math—its reasoning process can enhance tasks like email automation, database retrieval, law, and medicine, greatly improving accuracy based on your dataset and reward function - the trick is to d - Network accessline 3321
[Credential-related source omitted] - Network accessline 3334
[Credential-related source omitted] - Network accessline 3359
[Credential-related source omitted] - Network accessline 3373
* With 15GB VRAM, Unsloth allows you to transform any model up to 17B parameters like Llama 3.1 (8B), Phi-4 (14B), Mistral (7B) or Qwen2.5 (7B) into a reasoning model * **Unsloth now supports** [**RL for Vision/multimodal**](https://docs.un - Network accessline 3374
* **Unsloth now supports** [**RL for Vision/multimodal**](https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl) **models!** - Network accessline 3377
{% content-ref url="reinforcement-learning-rl-guide/tutorial-train-your-own-reasoning-model-with-grpo" %} [tutorial-train-your-own-reasoning-model-with-grpo](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/tutorial-train - Network accessline 3378
[tutorial-train-your-own-reasoning-model-with-grpo](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/tutorial-train-your-own-reasoning-model-with-grpo) - Network accessline 3383
| [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) **GSPO -** new | [**Qwen3-VL-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_ - Network accessline 3384
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- - Network accessline 3385
| [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) - Advanced | [**DeepSeek-R1-0528-Qwen3-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/mai - Network accessline 3386
| [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) | [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\) - Network accessline 3387
| [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) | [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\ - Network accessline 3389
{% hint style="success" %} **NEW!** We now support [**GSPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/gspo-reinforcement-learning) and most other new GRPO techniques. You can play with the following arguments in - Network accessline 3390
**NEW!** We now support [**GSPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/gspo-reinforcement-learning) and most other new GRPO techniques. You can play with the following arguments in GRPOConfig to enable: - Network accessline 3416
[Credential-related source omitted] - Network accessline 3420
For a tutorial on how to transform any open LLM into a reasoning model using Unsloth & GRPO, [see here](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/tutorial-train-your-own-reasoning-model-with-grpo). - Network accessline 3422
{% hint style="success" %} For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3423
For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3435
{% hint style="warning" %} If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better rew - Network accessline 3436
If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better reward function and you should - Network accessline 3452
[Credential-related source omitted] - Network accessline 3455
[Credential-related source omitted] - Network accessline 3529
In our other examples, we use existing GSM8K reward functions by [@willccbb](https://x.com/willccbb) which is popular and shown to be quite effective: - Network accessline 3539
You can now use [vLLM](https://github.com/vllm-project/vllm/) directly in your finetuning stack, which allows for much more throughput and allows you to finetune and do inference on the model at the same time! On 1x A100 40GB, expect 4000 t - Network accessline 3559
1. For GRPO's **GPU VRAM requirements for QLoRA 4-bit**, the general rule is the model parameters = the amount of VRAM you will need (you can use less VRAM but this just to be safe). The more context length you set, the more VRAM. LoRA 16-b - Network accessline 3560
2. Our new memory efficient linear kernels for GRPO slashes memory usage by 8x or more. This shaves 68.5GB of memory, whilst being actually faster through the help of torch.compile! 3. We leverage our smart [Unsloth gradient checkpointing]( - Network accessline 3561
3. We leverage our smart [Unsloth gradient checkpointing](https://unsloth.ai/blog/long-context) algorithm which we released a while ago. It smartly offloads intermediate activations to system RAM asynchronously whilst being only 1% slower. - Network accessline 3580
{% embed url="<https://www.youtube.com/watch?v=OkEGJ5G3foU>" %} - Network accessline 3584
1. Nathan Lambert's RLHF Book is a must! <https://rlhfbook.com/c/11-policy-gradients.html> - Network accessline 3585
2. Yannic Kilcher's GRPO Youtube video is also a must! <https://www.youtube.com/watch?v=bAWV_yrqx4w> - Network accessline 3586
3. We did a 3 hour workshop at AI Engineer World's Fair 2025. Slides are other material are at <https://docs.unsloth.ai/ai-engineers-2025> - Network accessline 3587
4. Advanced GRPO notebook via Unsloth. <https://docs.unsloth.ai/basics/reinforcement-learning-guide/tutorial-train-your-own-reasoning-model-with-grpo> - Network accessline 3588
5. GRPO from a base model notebook: <https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_(4B)-GRPO.ipynb> - Network accessline 3595
DeepSeek developed [GRPO](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. - Network accessline 3599
These instructions are for our pre-made Google Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). If you are installing Unsloth locally, you can also copy our notebooks inside your favorite code editor. We'll be using - Network accessline 3601
| [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) **-** GSPO | [**Qwen2.5-VL**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_ - Network accessline 3603
| [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) - Advanced | [**DeepSeek-R1-0528-Qwen3-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb - Network accessline 3610
If you're using our Colab notebook, click **Runtime > Run all**. We'd highly recommend you checking out our [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) before getting started. - Network accessline 3612
If installing locally, ensure you have the correct [requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) and use `pip install unsloth` on Linux or follow our [Windows install ](https://docs.unsloth.ai/ - Network accessline 3614
[Credential-related source omitted] - Network accessline 3621
Before we get started, it is recommended to learn more about GRPO, reward functions and how they work. Read more about them including [tips & tricks](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#basics-tips)[ here] - Network accessline 3630
We have pre-selected optimal settings for the best results for you already and you can change the model to whichever you want listed in our [supported models](https://docs.unsloth.ai/get-started/all-our-models). Would not recommend changing - Network accessline 3632
{% hint style="success" %} For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3633
For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 3636
[Credential-related source omitted] - Network accessline 3643
We have pre-selected OpenAI's [GSM8K](https://huggingface.co/datasets/openai/gsm8k) dataset which contains grade school math problems but you could change it to your own or any public one on Hugging Face. You can read more about [datasets h - Network accessline 3647
[Credential-related source omitted] - Network accessline 3718
[Reward Functions/Verifiers](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#reward-functions-verifier) lets us know if the model is doing well or not according to the dataset you have provided. Each generation run wi - Network accessline 3720
You can input your generations into an LLM like ChatGPT 4o or Llama 3.1 (8B) and design a reward function and verifier to evaluate it. For example, feed your generations into a LLM of your choice and set a rule: "If the answer sounds too ro - Network accessline 3733
[Credential-related source omitted] - Network accessline 3740
We have pre-selected hyperparameters for the most optimal results however you could change them. Read all about [parameters here](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide). For **advanced GRPO** - Network accessline 3742
[Credential-related source omitted] - Network accessline 3774
{% hint style="warning" %} If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better rew - Network accessline 3775
If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better reward function and you should - Network accessline 3780
[Credential-related source omitted] - Network accessline 3792
[Credential-related source omitted] - Network accessline 3796
You can then save your model to GGUF, Ollama etc. by following our [guide here](https://docs.unsloth.ai/fine-tuning-llms-guide#id-7.-running--saving-the-model). - Network accessline 3798
[Credential-related source omitted] - Network accessline 3807
We have multiple options for saving your fine-tuned model, but we’ll focus on the easiest and most popular approaches which you can read more about [here](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 3850
{% embed url="<https://www.youtube.com/watch?v=SoPE1cUz3Hs>" %} - Network accessline 3854
{% embed url="<https://www.youtube.com/watch?t=3289s&v=bbFEYPx9Hpo>" %} - Network accessline 3858
{% embed url="<https://www.youtube.com/watch?v=juOh1afy-IE>" %} - Network accessline 3860
{% embed url="<https://www.youtube.com/watch?v=oF0_eMhzRaQ>" %} - Network accessline 3904
This can zero out all `completion_mask` entries when many completions are truncated, making `n_mask_per_reward = 0` and causing KL to become NaN. [See](https://github.com/unslothai/unsloth-zoo/blob/e705f7cb50aa3470a0b6e36052c61b7486a39133/u - Access to secretsline 4111
[Credential-related source omitted] - Network accessline 4137
[Credential-related source omitted] - Network accessline 4143
[Credential-related source omitted] - Network accessline 4168
[Credential-related source omitted] - Network accessline 4170
This means the memory space for inference and training can in theory be re-used, since inference and training are separate modes - this is where [vLLM's sleep mode feature](https://docs.vllm.ai/en/latest/features/sleep_mode.html#rlhf-weight - Access to secretsline 4186
[Credential-related source omitted] - Network accessline 4202
[Credential-related source omitted] - Network accessline 4208
[Credential-related source omitted] - Network accessline 4212
<table data-full-width="true"><thead><tr><th>Experiments</th><th>Config</th><th>Status</th><th>GPU Memory usage</th><th>Comments</th></tr></thead><tbody><tr><td><ol><li><a href="https://colab.research.google.com/drive/18CssBY5C0mStnLvu2Hlt4 - Network accessline 4333
[Credential-related source omitted] - Network accessline 4339
[Credential-related source omitted] - Network accessline 4343
We now select better compilation flags and reduce compile times by 50% or more. We also managed to dynamically patch any vLLM version to handle `gc.collect` better for backwards compatibility reasons, as inspired from this [vLLM pull reques - Network accessline 4349
All our GRPO notebooks have Unsloth Standby on by default and all optimizations! See <https://docs.unsloth.ai/get-started/unsloth-notebooks> for all our GRPO notebooks, or try the below: - Network accessline 4351
* [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **-** Advanced GRPO LoRA - Network accessline 4352
* [**DeepSeek-R1-0528-Qwen3 (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_\(8B\)_GRPO.ipynb) (for multilingual usecases) - Network accessline 4353
* [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 4354
* [Llama 3.2 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Advanced_Llama3_2_\(3B\)_GRPO_LoRA.ipynb) - Advanced GRPO LoRA - Network accessline 4355
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 4356
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\)-GRPO.ipynb) - Network accessline 4357
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) - Network accessline 4358
* [Qwen2.5 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_\(3B\)-GRPO.ipynb) - Network accessline 4367
It's the reason models learn to modify unit tests to pass coding challenges, and these are critical blockers for real world deployment. Some other good examples are from [Wikipedia](https://en.wikipedia.org/wiki/Reward_hacking). - Network accessline 4369
<div align="center"><figure><img src="https://i.pinimg.com/originals/55/e0/1b/55e01b94a9c5546b61b59ae300811c83.gif" alt="" width="188"><figcaption></figcaption></figure></div> - Network accessline 4371
**Can you counter reward hacking? Yes!** In our [free gpt-oss RL notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) we explore how to counter reward hacking in a code generation s - Network accessline 4396
We're introducing GSPO which is a variant of [GRPO](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#from-rlhf-ppo-to-grpo-and-rlvr) made by the Qwen team at Alibaba. They noticed the observation that when GRPO takes i - Network accessline 4398
* Use our free GSPO notebooks for: [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) and [**Qwen2.5-VL**](https://colab.research.google.com/github/unslothai/notebooks/blo - Network accessline 4402
[Credential-related source omitted] - Network accessline 4404
[Credential-related source omitted] - Network accessline 4408
[Credential-related source omitted] - Network accessline 4412
[Credential-related source omitted] - Network accessline 4458
* [GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-rl-notebooks) - Network accessline 4459
* [ORPO notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-ORPO.ipynb) - Network accessline 4460
* [DPO Zephyr notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 4461
* [KTO notebook](https://colab.research.google.com/drive/1MRgGtLWuZX4ypSfGguFgC-IblTvO2ivM?usp=sharing) - Network accessline 4462
* [SimPO notebook](https://colab.research.google.com/drive/1Hs5oQDovOay4mFA6Y9lQhVJ8TnbFLFh2?usp=sharing) - Network accessline 4464
We're also in 🤗Hugging Face's official docs! We're on the [SFT docs](https://huggingface.co/docs/trl/main/en/sft_trainer#accelerate-fine-tuning-2x-using-unsloth) and the [DPO docs](https://huggingface.co/docs/trl/main/en/dpo_trainer#acceler - Access to secretsline 4471
[Credential-related source omitted] - Network accessline 4536
You can fine-tune DeepSeek-OCR to enhance its vision or language performance. In our Unsloth [**free fine-tuning notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb), we demonstrat - Network accessline 4540
> **Our model upload that enables fine-tuning + more inference support:** [**DeepSeek-OCR**](https://huggingface.co/unsloth/DeepSeek-OCR) - Network accessline 4561
source .venv/bin/activate # Until v0.11.1 release, you need to install vLLM from nightly build uv pip install -U vllm --pre --extra-index-url https://wheels.vllm.ai/nightly - Network accessline 4563
uv pip install -U vllm --pre --extra-index-url https://wheels.vllm.ai/nightly - Access to secretsline 4632
[Credential-related source omitted] - Network accessline 4655
Unsloth supports fine-tuning of DeepSeek-OCR. Since the default model isn’t fine-tunable, we added changes from the [Stranger Vision HF](https://huggingface.co/strangervisionhf) team, to then enable fine-tuning. As usual, Unsloth trains Dee - Network accessline 4659
* DeepSeek-OCR: [Fine-tuning only notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) - Network accessline 4660
* DeepSeek-OCR: [Fine-tuning + Evaluation notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\)-Eval.ipynb) (A100) - Network accessline 4771
[Credential-related source omitted] - Network accessline 4778
Local training can be complex due to dependency hell or breaking environments. Unsloth’s [Docker image](https://hub.docker.com/r/unsloth/unsloth) can bypass these issues. No setup is needed: pull and run the image and start training. - Network accessline 4780
* **Unsloth official Docker image:** [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) - Network accessline 4784
Unsloth’s Docker image is stable, up-to-date and works in [supported setups](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements#system-requirements) like Windows. - Network accessline 4800
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other).\ - Network accessline 4801
Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation): - Dangerous shell operationline 4804
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 4811
[Credential-related source omitted] - Network accessline 4818
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For [Blackwell](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and 50-series GPUs, use this same im - Network accessline 4828
[Credential-related source omitted] - Network accessline 4835
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. - Network accessline 4837
[Credential-related source omitted] - Network accessline 4841
[Credential-related source omitted] - Network accessline 4848
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 4850
[Credential-related source omitted] - Access to secretsline 4865
[Credential-related source omitted] - Access to secretsline 4867
[Credential-related source omitted] - Access to secretsline 4881
[Credential-related source omitted] - Access to secretsline 4884
[Credential-related source omitted] - Access to secretsline 4887
[Credential-related source omitted] - Access to secretsline 4915
[Credential-related source omitted] - Access to secretsline 4917
[Credential-related source omitted] - Dangerous shell operationline 4928
* Use `USER_PASSWORD` for sudo operations inside container - Network accessline 4936
Unsloth now supports vision/multimodal RL with [Qwen3-VL](https://docs.unsloth.ai/models/qwen3-vl-how-to-run-and-fine-tune), [Gemma 3](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune) and more. Due to Unsloth's unique [weigh - Network accessline 4938
Unsloth can train Qwen3-VL-8B with GSPO/GRPO on a free Colab T4 GPU. Other VLMs work too, but may need larger GPUs. Gemma requires newer GPUs than T4 because vLLM [restricts to Bfloat16](https://docs.unsloth.ai/models/gemma-3-how-to-run-and - Network accessline 4940
* **Qwen-3 VL-8B** (vLLM inference)**:** [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Network accessline 4941
* **Qwen-2.5 VL-7B** (vLLM inference)**:** [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_GRPO.ipynb) •[ Kaggle](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/note - Network accessline 4942
* **Gemma-3-4B** (Unsloth inference): [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Network accessline 4944
We have also added vLLM VLM integration into Unsloth natively, so all you have to do to use vLLM inference is enable the `fast_inference=True` flag when initializing the model. Special thanks to [Sinoué GAD](https://github.com/unslothai/uns - Network accessline 4946
This VLM support also integrates our latest update for even more memory efficient + faster RL including our [Standby feature](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/memory-efficient-rl#unsloth-standby), which un - Access to secretsline 4953
[Credential-related source omitted] - Network accessline 4996
This was [reported](https://github.com/QwenLM/Qwen2.5-VL/issues/759) as well in Qwen2.5-VL-7B-Instruct output unexpected results "addCriterion". In fact we see this as well! We tried both non Unsloth, bfloat16 and float16 machines and other - Network accessline 5006
[Credential-related source omitted] - Network accessline 5010
[Credential-related source omitted] - Network accessline 5036
# Fix up addCriterion issues # See https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl#qwen-2.5-vl-vision-rl-issues-and-quirks - Network accessline 5037
# See https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl#qwen-2.5-vl-vision-rl-issues-and-quirks - Network accessline 5050
This update in addition adds GSPO ([Group Sequence Policy Optimization](https://arxiv.org/abs/2507.18071)) which is a variant of GRPO made by the Qwen team at Alibaba. They noticed that GRPO implicitly results in importance weights for each - Network accessline 5054
[Credential-related source omitted] - Network accessline 5056
[Credential-related source omitted] - Network accessline 5060
[Credential-related source omitted] - Network accessline 5064
[Credential-related source omitted] - Network accessline 5105
[reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide "mention") - Network accessline 5107
***Authors:** A huge thank you to* [*Keith*](https://www.linkedin.com/in/keith-truongcao-7bb84a23b/) *and* [*Datta*](https://www.linkedin.com/in/datta0/) *for contributing to this article!* - Network accessline 5112
You can now train OpenAI [gpt-oss](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune) with RL and GRPO via [Unsloth](https://github.com/unslothai/unsloth). Unsloth now offers the <mark style="background-color:$success;">**fast - Network accessline 5114
Since reinforcement learning (RL) on gpt-oss isn't yet vLLM compatible, we had to rewrite the inference code from Transformers code to deliver 3x faster inference for gpt-oss at \~21 tokens/s. For BF16, Unsloth also achieves the fastest inf - Network accessline 5116
* **Free notebook:** [**gpt-oss-20b GRPO Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb)\ - Network accessline 5119
[Credential-related source omitted] - Network accessline 5123
Unsloth is the only framework to support 4-bit RL for gpt-oss. All performance gains are due to Unsloth's unique [weight sharing](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#what-unsloth-offers-for-rl), [Flex Attenti - Network accessline 5125
{% hint style="warning" %} Reminder: <mark style="background-color:$info;">**Flash Attention 3 (FA3) is**</mark> [<mark style="background-color:$info;">**unsuitable for gpt-oss**</mark>](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and - Network accessline 5126
Reminder: <mark style="background-color:$info;">**Flash Attention 3 (FA3) is**</mark> [<mark style="background-color:$info;">**unsuitable for gpt-oss**</mark>](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/long-context-gpt - Network accessline 5133
[Credential-related source omitted] - Network accessline 5135
Inference is crucial in RL training, since we need it to generate candidate solutions before maximizing some reward function ([see here](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) for a more detailed explanation). - Network accessline 5137
vLLM does not support RL for gpt-oss since it lacks BF16 training and LoRA support for gpt-oss. Without Unsloth, only training via full precision BF16 works, making <mark style="background-color:$warning;">memory use</mark> <mark style="bac - Network accessline 5145
We had to change our implementation for attention sinks as [described here](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/long-context-gpt-oss-training) to allow generation to work with left padding. We had to get the logs - Network accessline 5194
The harder part is batch generation. Sequences differ in length, so padding complicates mask creation. Flex Attention had a lot of [challenges](https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665) and dynamic mas - Network accessline 5196
> *Quote from* [*https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665*](https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665) - Network accessline 5210
[Credential-related source omitted] - Network accessline 5225
It's the reason models learn to modify unit tests to pass coding challenges, and these are critical blockers for real world deployment. Some other good examples are from [Wikipedia](https://en.wikipedia.org/wiki/Reward_hacking). - Network accessline 5227
<div align="center"><figure><img src="https://i.pinimg.com/originals/55/e0/1b/55e01b94a9c5546b61b59ae300811c83.gif" alt="" width="188"><figcaption></figcaption></figure></div> - Network accessline 5229
In our [free gpt-oss RL notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) we explore how to counter reward hacking in a code generation setting and showcase tangible solutions to - Network accessline 5251
LLMs often struggle with tasks that involve complex environments. However, by applying [reinforcement learning](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) (RL) and designing a custom [reward function](https://docs. - Network accessline 5253
RL can be adapted for tasks such as auto kernel or strategy creation. This tutorial shows how to train **gpt-oss** with [**GRPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#from-rlhf-ppo-to-grpo-and-rlvr) and Unslo - Network accessline 5257
| [2048 notebook](https://colab.research.google.com/github/openai/gpt-oss/blob/main/examples/reinforcement-fine-tuning.ipynb) (Official OpenAI example) | [Kernel generation notebook](https://colab.research.google.com/github/unslothai/notebo - Network accessline 5279
LLMs often struggle with tasks that involve complex environments. However, by applying [reinforcement learning](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) (RL) and designing a custom [reward function](https://docs. - Network accessline 5281
RL can be adapted for tasks such as auto kernel or strategy creation. This tutorial shows how to train **gpt-oss** with [**GRPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#from-rlhf-ppo-to-grpo-and-rlvr) and Unslo - Network accessline 5283
| [2048 notebook](https://colab.research.google.com/github/openai/gpt-oss/blob/main/examples/reinforcement-fine-tuning.ipynb) (Official OpenAI example) | [Kernel generation notebook](https://colab.research.google.com/github/unslothai/notebo - Network accessline 5311
!uv pip install -qqq \ "torch>=2.8.0" "triton>=3.4.0" {get_numpy} torchvision bitsandbytes "transformers==4.56.2" \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 5312
"torch>=2.8.0" "triton>=3.4.0" {get_numpy} torchvision bitsandbytes "transformers==4.56.2" \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ "unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 5313
"unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 5314
"unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 5315
git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 5326
Load the 20B model in 4‑bit QLoRA for memory efficiency, then wrap it with a LoRA adapter. You can also train it in 16-bit LoRA but it will use 4x more memory. For more settings view our [configuration guide](https://docs.unsloth.ai/get-sta - Network accessline 5576
We will use the **GRPOTrainer**. Set the prompt/completion lengths, then build a `GRPOConfig`. Keep in mind you could also set the RL algorithm type to others such as [GSPO](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guid - Network accessline 5703
We’re excited to share that Unsloth Dynamic GGUFs shows how it's possible to quantize LLMs like [DeepSeek-V3.1](https://docs.unsloth.ai/models/deepseek-v3.1-how-to-run-locally) (671B) down to just **1-bit** or **3-bit**, and still be able t - Network accessline 5705
Previously, [we demonstrated](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) how Unsloth Dynamic GGUFs outperform other quantization methods on 5-shot MMLU and KL Divergence. Now, we’re showcasing their performance on independent - Network accessline 5707
[Credential-related source omitted] - Network accessline 5717
**Why the** [**Aider Polyglot**](https://aider.chat/docs/leaderboards/) **benchmark?** Aider is one of the most comprehensive measures of how well LLMs can write, code, follow instructions, and apply changes without human intervention, maki - Network accessline 5719
{% hint style="success" %} The **key advantage** of using the Unsloth package and models is our active role in ***fixing critical bugs*** in major models. We've collaborated directly with teams behind [Qwen3](https://www.reddit.com/r/LocalL - Network accessline 5720
The **key advantage** of using the Unsloth package and models is our active role in ***fixing critical bugs*** in major models. We've collaborated directly with teams behind [Qwen3](https://www.reddit.com/r/LocalLLaMA/comments/1kaodxu/qwen3 - Network accessline 5729
In Nov 2024, our [4-bit Dynamic](https://unsloth.ai/blog/dynamic-4bit) Quants showcased how you could largely restore QLoRA fine-tuning & model accuracy by just <mark style="background-color:green;">**selectively quantizing layers**</mark>. - Network accessline 5731
Our Dynamic GGUFs are even more effective when paired with our [imatrix calibration dataset](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs#whats-new-in-dynamic-v2.0), designed for chat and coding performance. All of this enabled - Network accessline 5738
[Credential-related source omitted] - Network accessline 5743
[Credential-related source omitted] - Network accessline 5747
We also showed dynamic benchmarks in <https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs> for Gemma 3 and Llama 4 Scout, showing how effective our methodology is: - Network accessline 5752
[Credential-related source omitted] - Network accessline 5757
[Credential-related source omitted] - Network accessline 5769
Benchmark experiments were mainly conducted by [David Sluys](https://www.linkedin.com/in/david-sluys-231348208/) (neolithic5452 on [Aider Discord](https://discord.com/channels/1131200896827654144/1408293692074360914)), a trusted community c - Network accessline 5816
[Credential-related source omitted] - Network accessline 5827
[Credential-related source omitted] - Network accessline 5847
[Credential-related source omitted] - Network accessline 5864
See [here](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF?chat_template=default\&format=true) for our fixed chat template or [here](https://huggingface.co/unsloth/DeepSeek-V3.1/raw/main/chat_template.jinja) for a raw jinja file. - Network accessline 5870
[Credential-related source omitted] - Network accessline 5874
Head over to our [DeepSeek V3.1 guide](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/deepseek-r1-how-to-run-locally/deepseek-r1-dynamic-1.58-bit) or to quickly get the dynamic 2bit version, do: - Network accessline 5877
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5878
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5879
git clone https://github.com/ggml-org/llama.cpp - Network accessline 5909
Qwen3-VL has vision, video and OCR capabilities as well as 256K context (can be extended to 1M).\ \ [Unsloth](https://github.com/unslothai/unsloth) supports **Qwen3-VL fine-tuning and** [**RL**](https://docs.unsloth.ai/new/vision-reinforcem - Network accessline 5911
[Unsloth](https://github.com/unslothai/unsloth) supports **Qwen3-VL fine-tuning and** [**RL**](https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl). Train Qwen3-VL (8B) for free with our [notebooks](#fine-tuning-qwen3-vl). - Network accessline 5921
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-VL-2B-Instruct-GGUF">2B-Instruct</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-VL-2B-Thinking-GGUF">2B-Thinking</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-VL - Network accessline 5939
Qwen3-VL also used the below settings for their benchmarking numbers, as mentioned [on GitHub](https://github.com/QwenLM/Qwen3-VL/tree/main?tab=readme-ov-file#generation-hyperparameters). - Network accessline 5982
[Credential-related source omitted] - Network accessline 6004
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6007
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6008
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6009
git clone https://github.com/ggml-org/llama.cpp - Network accessline 6016
2. **Let's first get an image!** You can also upload images as well. We shall use <https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/unsloth%20made%20with%20love.png>, which is just our mini logo showing how finetun - Network accessline 6018
[Credential-related source omitted] - Network accessline 6025
wget https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/unsloth%20made%20with%20love.png -O unsloth.png - Network accessline 6030
4. Let's get the 2nd image at <https://files.worldwildlife.org/wwfcmsprod/images/Sloth_Sitting_iStock_3_12_2014/story_full_width/8l7pbjmj29_iStock_000011145477Large_mini__1_.jpg> - Network accessline 6032
[Credential-related source omitted] - Network accessline 6037
wget https://files.worldwildlife.org/wwfcmsprod/images/Sloth_Sitting_iStock_3_12_2014/story_full_width/8l7pbjmj29_iStock_000011145477Large_mini__1_.jpg -O picture.png - Network accessline 6060
[Credential-related source omitted] - Network accessline 6064
[Credential-related source omitted] - Network accessline 6068
[Credential-related source omitted] - Network accessline 6072
[Credential-related source omitted] - Network accessline 6076
[Credential-related source omitted] - Network accessline 6093
[Credential-related source omitted] - Access to secretsline 6100
[Credential-related source omitted] - Access to secretsline 6154
[Credential-related source omitted] - Network accessline 6235
* [Normal SFT fine-tuning notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision.ipynb) - Network accessline 6236
* [GRPO/GSPO RL notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Network accessline 6246
[Credential-related source omitted] - Network accessline 6248
This Qwen3-VL support also integrates our latest update for even more memory efficient + faster RL including our [Standby feature](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/memory-efficient-rl#unsloth-standby), whi - Network accessline 6277
{% hint style="success" %} [**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, - Network accessline 6278
[**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF etc. - Network accessline 6280
We also introduced [Unsloth Flex Attention](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support) which enables **>8× longer context lengths**, **>50% less VRAM usage** and **>1.5× faster t - Network accessline 6283
> [**Fine-tune**](#fine-tuning-gpt-oss-with-unsloth) **gpt-oss-20b for free with our** [**Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) - Network accessline 6285
Trained with [RL](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide), **gpt-oss-120b** rivals o4-mini and **gpt-oss-20b** rivals o3-mini. Both excel at function calling and CoT reasoning, surpassing o1 and GPT-4o. - Network accessline 6293
* 20B: [gpt-oss-**20B**](https://huggingface.co/unsloth/gpt-oss-20b-GGUF) - Network accessline 6294
* 120B: [gpt-oss-**120B**](https://huggingface.co/unsloth/gpt-oss-120b-GGUF) - Network accessline 6298
OpenAI released a standalone parsing and tokenization library called [Harmony](https://github.com/openai/harmony) which allows one to tokenize conversations to OpenAI's preferred format for gpt-oss. The official OpenAI [cookbook article](ht - Network accessline 6302
[Credential-related source omitted] - Network accessline 6347
[Credential-related source omitted] - Network accessline 6353
We made a [MXFP4 inference notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\)-Inference.ipynb) as well in Tesla T4 Colab! - Network accessline 6355
{% hint style="info" %} [Software emulation](https://triton-lang.org/main/python-api/generated/triton.language.dot_scaled.html) enables targeting hardware architectures without native microscaling operation support. Right now for such case, - Network accessline 6356
[Software emulation](https://triton-lang.org/main/python-api/generated/triton.language.dot_scaled.html) enables targeting hardware architectures without native microscaling operation support. Right now for such case, microscaled lhs/rhs are - Network accessline 6401
[Credential-related source omitted] - Network accessline 6403
To achieve inference speeds of 6+ tokens per second for our Dynamic 4-bit quant, have at least **14GB of unified memory** (combined VRAM and RAM) or **14GB of system RAM** alone. As a rule of thumb, your available memory should match or exc - Network accessline 6413
> **You can run gpt-oss-20b for free with our** [**Google Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\)-Inference.ipynb) - Network accessline 6425
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6428
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6429
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6430
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 6450
[Credential-related source omitted] - Network accessline 6461
[Credential-related source omitted] - Network accessline 6463
To achieve inference speeds of 6+ tokens per second for our 1-bit quant, we recommend at least **66GB of unified memory** (combined VRAM and RAM) or **66GB of system RAM** alone. As a rule of thumb, your available memory should match or exc - Network accessline 6479
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6482
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6483
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6484
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 6515
[Credential-related source omitted] - Network accessline 6556
The [latest llama.cpp release](https://github.com/ggml-org/llama.cpp/pull/14363) also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You - Network accessline 6567
{% content-ref url="gpt-oss-how-to-run-and-fine-tune/tutorial-how-to-fine-tune-gpt-oss" %} [tutorial-how-to-fine-tune-gpt-oss](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/tutorial-how-to-fine-tune-gpt-oss) - Network accessline 6568
[tutorial-how-to-fine-tune-gpt-oss](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/tutorial-how-to-fine-tune-gpt-oss) - Network accessline 6571
Currently you cannot load QLoRA fine-tuned gpt-oss models in frameworks other than Unsloth, however you can if you do LoRA fine-tuning and utilize our [bf16 weights](https://huggingface.co/unsloth/gpt-oss-20b-BF16) for fine-tuning. This mea - Network accessline 6575
* gpt-oss-20b [Reasoning + Conversational notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) (recommended) - Network accessline 6584
To enable export/usage of the model for use outside of Unsloth but with Hugging Face, llama.cpp, or vLLM, fine-tuning must be done with LoRA while leveraging our [bf16 weights](https://huggingface.co/unsloth/gpt-oss-20b-BF16). Keep in mind - Network accessline 6608
We utilized OpenAI's Triton Kernels library directly to allow MXFP4 inference. For finetuning / training however, the MXFP4 kernels do not yet support training, since the backwards pass is not yet implemented. We're actively working on impl - Network accessline 6618
Though gpt-oss supports only reasoning, you can still fine-tune it with a non-reasoning [dataset](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide), but this may affect its reasoning ability. If you want to maintain - Network accessline 6622
[Credential-related source omitted] - Network accessline 6631
{% hint style="success" %} [**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF - Network accessline 6632
[**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF etc. - Network accessline 6634
We also introduced [Unsloth Flex Attention](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support) which enables **>8× longer context lengths**, **>50% less VRAM usage** and **>1.5× faster t - Network accessline 6637
> **Quickstart:** Fine-tune gpt-oss-20b for free with our: [Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) - Network accessline 6648
This section covers fine-tuning gpt-oss using our Google Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). You can also save and use the gpt-oss notebook into your favorite code editor and follow our [local gpt-oss g - Network accessline 6657
[Credential-related source omitted] - Network accessline 6659
[Credential-related source omitted] - Network accessline 6666
We’ll load **`gpt-oss-20b`** using Unsloth's [linearized version](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#making-efficient-gpt-oss-fine-tuning-work) (as no other version will work).  - Network accessline 6675
[Credential-related source omitted] - Network accessline 6679
[Credential-related source omitted] - Network accessline 6686
Now it's time to adjust your training hyperparameters. For a deeper dive into how, when, and what to tune, check out our [detailed hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 6688
{% hint style="info" %} To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high. - Network accessline 6689
To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high.  - Network accessline 6694
[Credential-related source omitted] - Network accessline 6703
[Credential-related source omitted] - Network accessline 6710
For this example, we will use the [`HuggingFaceH4/Multilingual-Thinking`](https://huggingface.co/datasets/HuggingFaceH4/Multilingual-Thinking). This dataset contains chain-of-thought reasoning examples derived from user questions translated - Network accessline 6716
[Credential-related source omitted] - Network accessline 6745
[Credential-related source omitted] - Network accessline 6747
One unique feature of gpt-oss is its use of the [**OpenAI Harmony format**](https://github.com/openai/harmony)**,** which supports structured conversations, reasoning output, and tool calling. This format includes tags such as `<|start|>` , - Network accessline 6749
{% hint style="info" %} 🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 6750
🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 6753
Feel free to adapt the prompt and structure to suit your own dataset or use-case. For more guidance, refer to our [dataset guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide). - Network accessline 6760
We've pre-selected training hyperparameters for optimal results. However, you can modify them based on your specific use case. Refer to our [hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparamet - Network accessline 6764
[Credential-related source omitted] - Network accessline 6768
[Credential-related source omitted] - Network accessline 6779
[Credential-related source omitted] - Network accessline 6783
[Credential-related source omitted] - Network accessline 6812
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6815
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6816
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6817
git clone https://github.com/ggml-org/llama.cpp - Network accessline 6837
[Credential-related source omitted] - Network accessline 6845
{% hint style="info" %} We recommend downloading or incorporating elements from our Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) into your local setup for easier use. - Network accessline 6846
We recommend downloading or incorporating elements from our Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) into your local setup for easier use. - Network accessline 6854
Ensure your device is [Unsloth compatible](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) and you can read our detailed [installation guide](https://docs.unsloth.ai/get-started/install-and-update). - Network accessline 6863
!uv pip install -qqq \ "torch>=2.8.0" "triton>=3.4.0" {install_numpy} \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 6864
"torch>=2.8.0" "triton>=3.4.0" {install_numpy} \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ "unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 6865
"unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 6866
"unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 6867
torchvision bitsandbytes \ git+https://github.com/huggingface/transformers \ git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 6868
git+https://github.com/huggingface/transformers \ - Network accessline 6869
git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 6878
We’ll load **`gpt-oss-20b`** using Unsloth's [linearized version](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#making-efficient-gpt-oss-fine-tuning-work) (as no other version will work for QLoRA fine-tuning). Configur - Network accessline 6894
</strong> "unsloth/gpt-oss-20b", # 20B model using MXFP4 format "unsloth/gpt-oss-120b", ] # More models at https://huggingface.co/unsloth - Network accessline 6896
] # More models at https://huggingface.co/unsloth - Network accessline 6915
Now it's time to adjust your training hyperparameters. For a deeper dive into how, when, and what to tune, check out our [detailed hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 6917
{% hint style="info" %} To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high. - Network accessline 6918
To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high.  - Network accessline 6946
For this example, we will use the [`HuggingFaceH4/Multilingual-Thinking`](https://huggingface.co/datasets/HuggingFaceH4/Multilingual-Thinking). This dataset contains chain-of-thought reasoning examples derived from user questions translated - Network accessline 6990
[Credential-related source omitted] - Network accessline 6992
One unique feature of gpt-oss is its use of the [**OpenAI Harmony format**](https://github.com/openai/harmony)**,** which supports structured conversations, reasoning output, and tool calling. This format includes tags such as `<|start|>` , - Network accessline 6994
{% hint style="info" %} 🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 6995
🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 6998
Feel free to adapt the prompt and structure to suit your own dataset or use-case. For more guidance, refer to our [dataset guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide). - Network accessline 7005
We've pre-selected training hyperparameters for optimal results. However, you can modify them based on your specific use case. Refer to our [hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparamet - Network accessline 7035
[Credential-related source omitted] - Network accessline 7064
[Credential-related source omitted] - Network accessline 7091
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7094
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7095
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7096
git clone https://github.com/ggml-org/llama.cpp - Network accessline 7124
As always, feel free to drop by our [Discord](https://discord.com/invite/unsloth) or [Reddit](https://www.reddit.com/r/unsloth/) if you need any help. - Network accessline 7130
Yes you can now [save/export your gpt-oss fine-tuned](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training) model using Unsloth's new update! - Network accessline 7142
Yes! Unsloth now supports RL for gpt-oss with GRPO/GSPO. We made it work on a free Kaggle notebook and achieved the fastest inference for RL. [Read more here](https://docs.unsloth.ai/new/gpt-oss-reinforcement-learning) - Network accessline 7146
***Acknowledgements:** A huge thank you to* [*Eyera*](https://huggingface.co/Orenguteng) *for contributing to this guide!* - Network accessline 7161
[Credential-related source omitted] - Network accessline 7167
A huge thank you to Rohan Pandey for his [Flex Attention implementation](https://x.com/khoomeik/status/1955693558914310608), which directly inspired the development of Unsloth's Flex Attention implementation. - Network accessline 7173
OpenAI leveraged **Attention Sinks** from the Efficient Streaming Language Models with Attention Sinks [paper](https://arxiv.org/abs/2309.17453) which shows that you can use a small sliding window, except you must add a global attention on - Network accessline 7175
[Credential-related source omitted] - Network accessline 7181
[Credential-related source omitted] - Network accessline 7183
The paper also shows that the [Attention Is Off By One method](https://www.evanmiller.org/attention-is-off-by-one.html) does partially work, except one must also add a few extra sink tokens to get lower perplexities. **The paper shows that - Network accessline 7185
[Credential-related source omitted] - Network accessline 7189
Flex Attention <https://pytorch.org/blog/flexattention/> is extremely powerful as it provides the practitioner 2 customization routes for the attention mechanism - a **score modifier (f)** and a **masking function (M)**. - Network accessline 7207
By using some visualization utilities from [Flex Attention's Github repo](https://github.com/meta-pytorch/attention-gym), we can visualize this. Assume the sequence length was 16, and a sliding window of 5. On the left is the last sink colu - Network accessline 7213
[Credential-related source omitted] - Network accessline 7219
[Credential-related source omitted] - Network accessline 7223
**Interesting finding**: The official Flex Attention sliding window implementations considers the window size as the number of last tokens **PLUS ONE** as it includes the current token. The HuggingFace and GPT OSS implementations strictly o - Network accessline 7240
[Credential-related source omitted] - Network accessline 7246
[Credential-related source omitted] - Network accessline 7250
We also confirmed through OpenAI's official GPT-OSS implementation on whether we attend to the last N or N+1 tokens here: <https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py> - Network accessline 7260
[Credential-related source omitted] - Network accessline 7290
[Credential-related source omitted] - Network accessline 7332
To run inference on the merged model, you can use vLLM and Llama.cpp among others. OpenAI recommends these [inference settings](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#recommended-settings) for both models: `tempe - Network accessline 7336
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7339
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7340
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7341
git clone https://github.com/ggml-org/llama.cpp - Network accessline 7368
# build from source git clone https://github.com/sgl-project/sglang - Network accessline 7369
git clone https://github.com/sgl-project/sglang - Network accessline 7374
# ROCm 6.3 pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/rocm6.3 - Network accessline 7375
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/rocm6.3 - Network accessline 7376
git clone https://github.com/triton-lang/triton - Network accessline 7380
# hopper pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu126 - Network accessline 7381
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu126 - Network accessline 7384
# blackwell cu128 pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu128 - Network accessline 7385
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu128 - Network accessline 7386
pip3 install https://github.com/sgl-project/whl/releases/download/v0.3.2/sgl_kernel-0.3.2+cu128-cp39-abi3-manylinux2014_x86_64.whl - Network accessline 7388
# blackwell cu129 pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu129 - Network accessline 7389
pip3 install torch==2.8.0 torchvision torchaudio --index-url https://download.pytorch.org/whl/test/cu129 - Network accessline 7390
pip3 install https://github.com/sgl-project/whl/releases/download/v0.3.2/sgl_kernel-0.3.2-cp39-abi3-manylinux2014_x86_64.whl - Network accessline 7403
url = f"http://localhost:8000/v1/chat/completions" - Network accessline 7410
response = requests.post(url, json=data) - Network accessline 7436
We [recently collaborated with Hugging Face](https://github.com/huggingface/transformers/pull/40197) to resolve inference issues by using OpenAI’s kernels and ensuring that `swiglu_limit = 7.0` is correctly applied during MXFP4 inference. - Network accessline 7442
[Credential-related source omitted] - Network accessline 7454
[Credential-related source omitted] - Network accessline 7458
OpenAI's sink token implementation is [provided here](https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py). We provide it below: - Network accessline 7487
The HuggingFace transformers implementation is [provided here](https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt_oss/modeling_gpt_oss.py). We also provide it below: - Network accessline 7531
GLM-4.6 is the latest reasoning model from **Z.ai**, achieving SOTA performance on coding and agent benchmarks while offering improved conversational chats. The full 355B parameter model requires **400GB** of disk space, while the Unsloth D - Network accessline 7538
You asked for benchmarks on our quants, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF scores **75.6%**, surpassing many full-precision SOTA LLMs. [Read more.](https://docs.unsloth.ai/new/unsloth-dynamic-gg - Network accessline 7541
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and Aider performance, meaning you can run & fine-tune quantized GLM LLMs with minimal accuracy loss. - Network accessline 7551
[Credential-related source omitted] - Network accessline 7583
{% stepper %} {% step %} Install `ollama` if you haven't already! To run more variants of the model, [see here](https://docs.unsloth.ai/deepseek-v3.1-how-to-run-locally#run-in-llama.cpp). - Network accessline 7585
Install `ollama` if you haven't already! To run more variants of the model, [see here](https://docs.unsloth.ai/deepseek-v3.1-how-to-run-locally#run-in-llama.cpp). - Network accessline 7588
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 7590
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7590
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7626
{% stepper %} {% step %} Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or jus - Network accessline 7628
Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7631
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7632
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7633
git clone https://github.com/ggerganov/llama.cpp - Access to secretsline 7679
[Credential-related source omitted] - Network accessline 7741
import json openai_client = OpenAI( base_url = "http://127.0.0.1:8001/v1", - Network accessline 7742
[Credential-related source omitted] - Network accessline 7743
base_url = "http://127.0.0.1:8001/v1", - Access to secretsline 7744
[Credential-related source omitted] - Network accessline 7759
We also uploaded [IQ4\_NL](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF/tree/main/IQ4_NL) and [Q4\_1](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF/tree/main/Q4_1) quants which run specifically faster for ARM and Apple devices resp - Network accessline 7761
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/GLM-4.6-GGUF?show_file_info=GLM-4.6-UD-TQ1_ - Network accessline 7775
Llama.cpp also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You can also **quantize the KV cache to 4bits** for example to reduce VRAM - Network accessline 7802
<table><thead><tr><th width="249">Dynamic GGUFs</th><th>Dynamic 4-bit + FP8</th><th>16-bit Instruct</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/granite-4.0-h-350m-GGUF">H-350M</a></li><li><a href="https:/ - Network accessline 7804
You can also view our [Granite-4.0 collection](https://huggingface.co/collections/unsloth/granite-40-68ddf64b4a8717dc22a9322d) for all uploads including Dynamic Float8 quants etc. - Network accessline 7841
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 7843
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7843
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7854
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7857
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7858
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 7859
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 7878
[Credential-related source omitted] - Network accessline 7917
* **Granite-4.0** [**free fine-tuning notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) - Network accessline 7918
* Granite-4.0-350M [fine-tuning notebook](https://github.com/unslothai/notebooks/blob/main/nb/Granite4.0_350M.ipynb) - Network accessline 7924
[Credential-related source omitted] - Network accessline 7953
DeepSeek’s V3.1 and **Terminus** update introduces hybrid reasoning inference, combining 'think' and 'non-think' into one model. The full 671B parameter model requires 715GB of disk space. The quantized dynamic 2-bit version uses 245GB (-75 - Network accessline 7955
{% hint style="success" %} **NEW:** DeepSeek-V3.1-Terminus out now: [DeepSeek-V3.1-Terminus-GGUF](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF)\ - Network accessline 7956
**NEW:** DeepSeek-V3.1-Terminus out now: [DeepSeek-V3.1-Terminus-GGUF](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF)\ - Network accessline 7958
[**Sept 10, 2025 update:**](https://docs.unsloth.ai/new/unsloth-dynamic-ggufs-on-aider-polyglot) You asked for tougher benchmarks, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF scores **75.6%**, surpassing - Network accessline 7963
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized DeepSeek LLMs with minimal accuracy loss. - Network accessline 7987
1. DeepSeek V3.1 is a hybrid reasoning model, meaning you can change the chat template to enable reasoning. The chat template introduced `thinking = True` , but other models use `enable_thinking = True` . We added the option to use `enable_ - Network accessline 7988
2. llama.cpp's jinja renderer via [minja](https://github.com/google/minja) does not allow the use of extra arguments in the `.split()` command, so using `.split(text, 1)` works in Python, but not in minja. We had to change this to make llam - Network accessline 7995
According to [DeepSeek](https://huggingface.co/deepseek-ai/DeepSeek-V3.1), these are the recommended settings for V3.1 inference: - Network accessline 8060
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 8062
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8062
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8095
{% step %} Open WebUI also made a [step-by-step tutorial](https://docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/) on how to run R1 and for V3.1, you will just need to replace R1 with the new V3.1 quant. - Network accessline 8096
Open WebUI also made a [step-by-step tutorial](https://docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/) on how to run R1 and for V3.1, you will just need to replace R1 with the new V3.1 quant. - Network accessline 8102
{% stepper %} {% step %} Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or jus - Network accessline 8104
Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8107
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8108
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8109
git clone https://github.com/ggerganov/llama.cpp - Access to secretsline 8156
[Credential-related source omitted] - Network accessline 8231
import json openai_client = OpenAI( base_url = "http://127.0.0.1:8001/v1", - Network accessline 8232
[Credential-related source omitted] - Network accessline 8233
base_url = "http://127.0.0.1:8001/v1", - Access to secretsline 8234
[Credential-related source omitted] - Network accessline 8249
We also uploaded [IQ4\_NL](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF/tree/main/IQ4_NL) and [Q4\_1](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF/tree/main/Q4_1) quants which run specifically faster for ARM and Apple devices resp - Network accessline 8251
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF?show_file_info=DeepSeek- - Network accessline 8253
We've also uploaded versions in [BF16 format](https://huggingface.co/unsloth/DeepSeek-V3.1-BF16), and original [FP8 (float8) format](https://huggingface.co/unsloth/DeepSeek-V3.1). - Network accessline 8267
The [latest llama.cpp release](https://github.com/ggml-org/llama.cpp/pull/14363) also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You - Network accessline 8286
Qwen3-Coder is Qwen’s new series of coding agent models, available in 30B (**Qwen3-Coder-Flash**) and 480B parameters. **Qwen3-480B-A35B-Instruct** achieves SOTA coding performance rivalling Claude Sonnet-4, GPT-4.1, and [Kimi K2](https://d - Network accessline 8288
We also uploaded Qwen3-Coder with native <mark style="background-color:purple;">**1M context length**</mark> extended by YaRN and full-precision 8bit and 16bit versions. [Unsloth](https://github.com/unslothai/unsloth) also now supports fine - Network accessline 8296
{% hint style="success" %} **Does** [**Unsloth Dynamic Quants**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **work?** Yes, and very well. In third-party testing on the Aider Polyglot benchmark, the **UD-Q4\_K\_XL (276GB)** dy - Network accessline 8297
**Does** [**Unsloth Dynamic Quants**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **work?** Yes, and very well. In third-party testing on the Aider Polyglot benchmark, the **UD-Q4\_K\_XL (276GB)** dynamic quant nearly matched - Network accessline 8302
| Dynamic 2.0 GGUF (to run) | 1M Context Dyn - Network accessline 8304
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF">30B-A3B-Instruct</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF">480B-A35B-Instruct</a></li></ul> | <ul><li><a hre - Network accessline 8383
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 8385
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8385
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8396
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8399
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8400
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8401
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 8421
[Credential-related source omitted] - Network accessline 8448
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8451
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8452
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8453
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 8485
[Credential-related source omitted] - Network accessline 8520
{% hint style="success" %} Also don't forget about the new Qwen3 update. Run [**Qwen3-235B-A22B-Instruct-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) locally with llama.cpp. - Network accessline 8521
Also don't forget about the new Qwen3 update. Run [**Qwen3-235B-A22B-Instruct-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) locally with llama.cpp. - Network accessline 8536
The [latest llama.cpp release](https://github.com/ggml-org/llama.cpp/pull/14363) also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You - Network accessline 8548
We also uploaded 1 million context length GGUFs via YaRN scaling [here](https://app.gitbook.com/o/HpyELzcNe0topgVLGCZY/s/xhOjnexMCB3dmuQFQ2Zq/). - Network accessline 8554
1. Download the first file at <https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF/tree/main/UD-Q2\\_K\\_XL> for UD-Q2\_K\_XL, and replace your current file - Network accessline 8555
2. Use `snapshot_download` as usual as in <https://docs.unsloth.ai/basics/qwen3-coder-how-to-run-locally#llama.cpp-run-qwen3-tutorial> which will auto override the old files - Network accessline 8556
3. Use the new chat template via `--chat-template-file`. See [GGUF chat template](https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF?chat_template=default) or [chat\_template.jinja](https://huggingface.co/unsloth/Qwen3-Coder - Network accessline 8557
4. As an extra, we also made 1 single 150GB UD-IQ1\_M file (so Ollama works) at <https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF/blob/main/Qwen3-Coder-480B-A35B-Instruct-UD-IQ1\\_M.gguf> - Network accessline 8559
This should solve issues like: <https://github.com/ggml-org/llama.cpp/issues/14915> - Network accessline 8635
Google releases Gemma 3 with a new 270M model and the previous 1B, 4B, 12B, and 27B sizes. The 270M and 1B are text-only, while larger models handle both text and vision. We provide GGUFs, and a guide of how to run it effectively, and how t - Network accessline 8637
{% hint style="success" %} **NEW Aug 14, 2025 Update:** Try our fine-tuning [Gemma 3 (270M) notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(270M\).ipynb) and [GGUFs to run](https://huggingface.co - Network accessline 8638
**NEW Aug 14, 2025 Update:** Try our fine-tuning [Gemma 3 (270M) notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(270M\).ipynb) and [GGUFs to run](https://huggingface.co/collections/unsloth/gemma- - Network accessline 8640
Also see our [Gemma 3n Guide](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune/gemma-3n-how-to-run-and-fine-tune). - Network accessline 8647
* Fine-tune Gemma 3 (4B) with vision support using our [free Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - Network accessline 8656
| GGUF - Network accessline 8658
| <ul><li><a href="https://huggingface.co/unsloth/gemma-3-270m-it-GGUF">270M</a> - new</li><li><a href="https://huggingface.co/unsloth/gemma-3-1b-it-GGUF">1B</a></li><li><a href="https://huggingface.co/unsloth/gemma-3-4b-it-GGUF">4B</a></li - Network accessline 8695
To run the models on your phone, we recommend using any mobile app that can run GGUFs locally on edge devices like phones. After fine-tuning you can export it to GGUF then run it locally on your phone. Ensure your phone has enough RAM/power - Network accessline 8706
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 8708
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8708
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8719
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8722
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8723
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8724
git clone https://github.com/ggerganov/llama.cpp - Network accessline 8738
3. **OR** download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose Q4\_K\_M, or other quantized versions (like BF16 full precision). More versions at: <https://huggingface.co/unsloth/gemma-3-27b-i - Access to secretsline 8743
[Credential-related source omitted] - Network accessline 8791
The full input from our <https://unsloth.ai/blog/deepseekr1-dynamic> 1.58bit blog is: - Network accessline 8819
* Try our new [Gemma 3 (270M) notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(270M\).ipynb) which makes the 270M parameter model very smart at playing chess and can predict the next chess move. - Network accessline 8820
* Fine-tune Gemma 3 (4B) using our notebooks for: [**Text**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) or [**Vision**](https://colab.research.google.com/github/unslothai/notebooks/blob/ma - Network accessline 8821
* Or fine-tune [Gemma 3n (E4B)](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune/gemma-3n-how-to-run-and-fine-tune) with [Text](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversa - Network accessline 8837
[Credential-related source omitted] - Network accessline 8843
[Credential-related source omitted] - Network accessline 8854
Google’s Gemma 3n multimodal model handles image, audio, video, and text inputs. Available in 2B and 4B sizes, it supports 140 languages for text and multimodal tasks. You can now run and fine-tune **Gemma-3n-E4B** and **E2B** locally using - Network accessline 8856
> **Fine-tune Gemma 3n with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 8864
<table><thead><tr><th width="249">Dynamic 2.0 GGUF (text only)</th><th width="285">Dynamic 4-bit Instruct (to fine-tune)</th><th>16-bit Instruct</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/gemma-3n-E2B-it - Network accessline 8866
**See all our Gemma 3n uploads including base and more formats in** [**our collection here**](https://huggingface.co/collections/unsloth/gemma-3n-685d3874830e49e1c93f9339)**.** - Dangerous shell operationline 8917
ollama rm hf.co/unsloth/gemma-3n-E4B-it-GGUF:UD-Q4_K_XL - Network accessline 8927
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 8929
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8929
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 8940
{% hint style="info" %} We would first like to thank [Xuan-Son Nguyen](https://x.com/ngxson) from Hugging Face, [Georgi Gerganov](https://x.com/ggerganov) from the llama.cpp team on making Gemma 3N work in llama.cpp! - Network accessline 8941
We would first like to thank [Xuan-Son Nguyen](https://x.com/ngxson) from Hugging Face, [Georgi Gerganov](https://x.com/ggerganov) from the llama.cpp team on making Gemma 3N work in llama.cpp! - Network accessline 8944
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8947
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8948
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8949
git clone https://github.com/ggerganov/llama.cpp - Access to secretsline 8967
[Credential-related source omitted] - Network accessline 9018
Gemma 3n, like [Gemma 3](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune/..#unsloth-fine-tuning-fixes-for-gemma-3), had issues running on <mark style="background-color:yellow;">**Flotat16 GPUs such as Tesla T4s in Colab**</m - Network accessline 9020
* Fine-tune Gemma 3n-E4B with our [free Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 9021
* **Audio:** Fine-tune Gemma 3n-E4B with our [**Audio only notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Audio.ipynb) - Network accessline 9022
* **Vision**: Fine-tune Gemma 3n-E4B with our [**Vision only notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Vision.ipynb) - Network accessline 9044
* Fine-tune Gemma 3 (4B) with Vision support using our [free Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - Network accessline 9046
{% hint style="info" %} If you love Kaggle, Google is holding a competition where the best model fine-tuned with Gemma 3n and Unsloth will win a $10K prize! [See more here](https://www.kaggle.com/competitions/google-gemma-3n-hackathon). - Network accessline 9047
If you love Kaggle, Google is holding a competition where the best model fine-tuned with Gemma 3n and Unsloth will win a $10K prize! [See more here](https://www.kaggle.com/competitions/google-gemma-3n-hackathon). - Network accessline 9054
Thanks to discussions from [Michael](https://github.com/mxyng) from the Ollama team and also [Xuan](https://x.com/ngxson) from Hugging Face, there were 2 issues we had to fix specifically for GGUFs: - Network accessline 9056
1. The `add_shared_kv_layers` parameter was accidentally encoded in `float32` which is fine, but becomes slightly complicated to decode on Ollama's side - a simple change to `uint32` solves the issue. [Pull request](https://github.com/ggml- - Network accessline 9058
1. As an [update](https://huggingface.co/unsloth/gemma-3n-E4B-it-GGUF/discussions/4), [Matt](https://huggingface.co/WBB2500) mentioned we can also use Q4\_0, Q4\_1, Q5\_0, Q5\_1 for the embeddings - and we confirmed it does also work in Oll - Network accessline 9066
Our previous fixes for Gemma 3 is [discussed here](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune). For Gemma 3, we found that activations exceed float16's maximum range of **65504.** - Network accessline 9073
[Credential-related source omitted] - Network accessline 9079
[Credential-related source omitted] - Network accessline 9103
We found Gemma 3N's vision encoder to be quite unique as well since it re-uses hidden states. This unfortunately limits the usage of [Unsloth's gradient checkpointing](https://unsloth.ai/blog/long-context), which could have reduced VRAM usa - Network accessline 9114
[Credential-related source omitted] - Network accessline 9116
{% hint style="success" %} **Fine-tune Gemma 3n with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 9117
**Fine-tune Gemma 3n with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 9124
So what is so special about Gemma 3n you ask? It is based on [Matryoshka Transformer or MatFormer](https://arxiv.org/abs/2310.07707) architecture meaning that each transformer layer/block embeds/nests FFNs of progressively smaller sizes. Th - Network accessline 9132
[Credential-related source omitted] - Network accessline 9134
{% hint style="info" %} **Fine-tune and try multimodal Gemma 3n inference with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 9135
**Fine-tune and try multimodal Gemma 3n inference with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 9145
{% hint style="success" %} **NEW!** Qwen3 got an update in July 2025. Run & fine-tune the latest model: [**Qwen-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) - Network accessline 9146
**NEW!** Qwen3 got an update in July 2025. Run & fine-tune the latest model: [**Qwen-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) - Network accessline 9149
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized Qwen LLMs with minimal accuracy loss. - Network accessline 9153
[Unsloth](https://github.com/unslothai/unsloth) also now supports fine-tuning and [Reinforcement Learning (RL)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) of Qwen3 and Qwen3 MOE models — 2x faster, with 70% less VR - Network accessline 9159
| Dynamic 2.0 GGUF (to run) - Network accessline 9161
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-0.6B-GGUF">0.6B</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-1.7B-GGUF">1.7B</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-4B-GGUF">4B</a></li><li><a href="htt - Network accessline 9208
Qwen3 models come with built-in "thinking mode" to boost reasoning and improve response quality - similar to how [QwQ-32B](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/qwq-32b-how-to-run-effectively) worked. Instru - Network accessline 9275
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 9277
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9277
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9298
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9301
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9302
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9303
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 9315
[Credential-related source omitted] - Access to secretsline 9359
[Credential-related source omitted] - Network accessline 9405
* [Qwen3 (14B) Reasoning + Conversational notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) (recommended) - Network accessline 9406
* [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **- Advanced GRPO LoRA** - Network accessline 9407
* [Qwen3 (14B) Alpaca notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Alpaca.ipynb) (for Base models) - Network accessline 9440
[Credential-related source omitted] - Network accessline 9450
If you'd like to read a full end-to-end guide on how to use Unsloth notebooks for fine-tuning or just learn about fine-tuning, creating [datasets](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) etc., view our [co - Network accessline 9452
{% content-ref url="../get-started/fine-tuning-llms-guide" %} [fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 9453
[fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 9456
{% content-ref url="../get-started/fine-tuning-llms-guide/datasets-guide" %} [datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 9457
[datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 9465
[**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **notebook - Advanced GRPO LoRA** - Network accessline 9475
[Credential-related source omitted] - Network accessline 9482
Qwen released 2507 (July 2025) updates for their [Qwen3](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune) 4B, 30B and 235B models, introducing both "thinking" and "non-thinking" variants. The non-thinking '**Qwen3-30B-A3B-Inst - Network accessline 9486
[Unsloth](https://github.com/unslothai/unsloth) also now supports fine-tuning and [Reinforcement Learning (RL)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) of Qwen3-2507 models — 2x faster, with 70% less VRAM, and 8 - Network accessline 9490
**Unsloth** [**Dynamic 2.0**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **GGUFs:** - Network accessline 9492
| Model | GGUFs to run: | | ------------------------ | ---------------------- - Network accessline 9493
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Qwen3-**4B-2507** | [Instruct](https://hug - Network accessline 9494
| Qwen3-**4B-2507** | [Instruct](https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF) • [Thinking ](https://huggingface.co/unsloth/Qwen3-4B-Thinking-2507-GGUF) | - Network accessline 9495
| Qwen3-**30B-A3B**-2507 | [Instruct](#llama.cpp-run-qwen3-30b-a3b-instruct-2507-tutorial) • [Thinking](https://huggingface.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF) | - Network accessline 9496
| Qwen3-**235B-A22B**-2507 | [Instruct](https://huggingface.co/unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF) • [Thinking](https://huggingface.co/unsloth/Qwen3-235B-A22B-Thinking-2507-GGUF) | - Network accessline 9555
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 9557
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9557
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9568
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9571
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9572
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9573
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 9593
[Credential-related source omitted] - Network accessline 9623
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 9625
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9625
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 9636
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9639
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9640
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9641
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 9661
[Credential-related source omitted] - Network accessline 9697
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9700
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9701
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9702
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 9730
[Credential-related source omitted] - Network accessline 9791
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9794
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9795
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9796
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 9824
[Credential-related source omitted] - Network accessline 9870
The [latest llama.cpp release](https://github.com/ggml-org/llama.cpp/pull/14363) also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You - Network accessline 9884
Unsloth makes [Qwen3](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/..#fine-tuning-qwen3-with-unsloth) and Qwen3-2507 fine-tuning 2x faster, use 70% less VRAM and supports 8x longer context lengths. Because Qwen3-2507 was o - Network accessline 9888
* [Qwen3 (14B) Reasoning + Conversational notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb)  - Network accessline 9900
**Qwen3-2507-4B notebooks for:** [Thinking](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-Thinking.ipynb) and [Instruct](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen - Network accessline 9921
[Credential-related source omitted] - Network accessline 9928
[Credential-related source omitted] - Network accessline 9935
DeepSeek-R1-0528 is DeepSeek's new update to their R1 reasoning model. The full 671B parameter model requires 715GB of disk space. The quantized dynamic **1.66-bit** version uses 162GB (-80% reduction in size). GGUF: [DeepSeek-R1-0528-GGUF] - Network accessline 9937
DeepSeek also released a R1-0528 distilled version by fine-tuning Qwen3 (8B). The distill achieves similar performance to Qwen3 (235B). ***You can also*** [***fine-tune Qwen3 Distill***](#fine-tuning-deepseek-r1-0528-with-unsloth) ***with U - Network accessline 9939
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized DeepSeek LLMs with minimal accuracy loss. - Network accessline 9946
NEW: Huge improvements to tool calling and chat template fixes.\ \ New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM - Network accessline 9947
\ New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM (including Mac) and Ollama users. Try: `ollama run hf.co/unsloth/ - Network accessline 9948
New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM (including Mac) and Ollama users. Try: `ollama run hf.co/unsloth/De - Network accessline 9967
According to [DeepSeek](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528), these are the recommended settings for R1 (R1-0528 and Qwen3 distill should use the same settings) inference: - Network accessline 9994
* Qwen3 (8B) distill: [DeepSeek-R1-0528-Qwen3-8B-GGUF](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) - Network accessline 9997
We also uploaded [IQ4\_NL](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF/tree/main/IQ4_NL) and [Q4\_1](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF/tree/main/Q4_1) quants which run specifically faster for ARM and Apple device - Network accessline 9999
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSe - Network accessline 10001
We've also uploaded versions in [BF16 format](https://huggingface.co/unsloth/DeepSeek-R1-0528-BF16), and original [FP8 (float8) format](https://huggingface.co/unsloth/DeepSeek-R1-0528). - Network accessline 10010
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 10012
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 10012
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 10031
Open WebUI has made an step-by-step tutorial on how to run R1 here and for R1-0528, you will just need to replace R1 with the new 0528 quant: [docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/](https://docs.openwebui.com/tutoria - Network accessline 10051
1. <mark style="background-color:yellow;">**To run the full 720GB R1-0528 model,**</mark> [<mark style="background-color:yellow;">**see here**</mark>](#run-full-r1-0528-on-llama.cpp)<mark style="background-color:yellow;">**.**</mark> Obtain - Network accessline 10054
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10055
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10056
git clone https://github.com/ggml-org/llama.cpp - Network accessline 10071
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 10074
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10075
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10076
git clone https://github.com/ggerganov/llama.cpp - Network accessline 10113
3. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose `UD-IQ1_S`(dynamic 1.78bit quant) or other quantized versions like `Q4_K_M` . We <mark style="background-color:green;">**recommend using - Access to secretsline 10120
[Credential-related source omitted] - Network accessline 10157
You can also test our dynamic quants via [r/Localllama](https://www.reddit.com/r/LocalLLaMA/comments/1j7r47l/i_just_made_an_animation_of_a_ball_bouncing/) which tests the model on creating a basic physics engine to simulate balls rotating i - Network accessline 10159
[Credential-related source omitted] - Network accessline 10192
* [**DeepSeek-R1-0528-Qwen3-8B notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_\(8B\)_GRPO.ipynb) **- new** - Network accessline 10209
**Magistral-Small-2509** is a reasoning LLM developed by Mistral AI. It excels at coding and mathematics and supports multiple languages. Magistral supports a 128k token context window and was finetuned from [**Mistral-Small-3.2**](https:/ - Network accessline 10221
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized Mistral LLMs with minimal accuracy loss. - Network accessline 10225
<table><thead><tr><th width="255.64999389648438">Dynamic 2.0 GGUF (to run)</th><th width="305.25">Dynamic 4-bit (to finetune/deploy)</th><th>Dynamic Float8</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/Magi - Network accessline 10310
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 10312
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 10312
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 10315
2. Run the model with our dynamic quant. We did not set the context length automatically, so it will just use Ollama's default set context length.\ Note you can call `ollama serve &`in another terminal if it fails! We include all suggest - Network accessline 10316
Note you can call `ollama serve &`in another terminal if it fails! We include all suggested parameters (temperature etc) in `params` in our Hugging Face upload! 3. Also Magistral supports 40K context lengths, so best to enable [**KV cache q - Network accessline 10317
3. Also Magistral supports 40K context lengths, so best to enable [**KV cache quantization**](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-set-the-quantization-type-for-the-kv-cache). We use 8bit quantization which saves - Network accessline 10318
4. **Ollama also sets the default context length to 4096**, as [mentioned here](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size). Use `OLLAMA_CONTEXT_LENGTH=8192` to change it to 8192. Magist - Network accessline 10328
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 10331
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10332
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10333
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 10359
[Credential-related source omitted] - Network accessline 11514
For Magistral versions before September 2025, [Xuan-Son](https://x.com/ngxson) from HuggingFace showed in their [GGUF repo](https://huggingface.co/ngxson/Devstral-Small-Vision-2505-GGUF) how it is actually possible to "graft" the vision enc - Network accessline 11537
* **Magistral 2509 Kaggle (2x Tesla T4s) free** [**finetuning notebook**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Magistral_\(24B\)-Reasoning-Conversational.ipynb\&accelerator= - Network accessline 11538
* Magistral 2509 Colab L4 (24GB) [finetuning notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Magistral_\(24B\)-Reasoning-Conversational.ipynb) - Network accessline 11540
Magistral slightly exceeds the memory limits of a 16GB VRAM, so fine-tuning it for free on Google Colab isn't possible for now. However, you *can* fine-tune the model for free using [Kaggle](https://www.kaggle.com/danielhanchen/code), which - Network accessline 11542
**To finetune on new reasoning traces, you can use our free** [**Kaggle notebook for Magistral**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Magistral_\(24B\)-Reasoning-Conversati - Network accessline 11569
* [vLLM's Float8 format](https://huggingface.co/unsloth/Magistral-Small-2509-FP8-Dynamic) - Network accessline 11570
* [TorchAO's Float8 format](https://huggingface.co/unsloth/Magistral-Small-2509-FP8-torchao) - Network accessline 11572
Both are fantastic to deploy via vLLM. Read up on using TorchAO based FP8 quants in vLLM [here](https://docs.vllm.ai/en/latest/features/quantization/torchao.html). - Network accessline 11601
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type</th><th>Disk Size</th><th>Link</th><th>Details</th></tr></thead><tbody><tr><td>1.78bit</td><td>IQ1_S</td><td>33.8GB</td><td><a href="https://huggingface.co/unsloth/Llama-4- - Network accessline 11609
| MoE Bits | Type | Disk Size | HF Link | | -------- | --------- | --------- | ---------------------------------------------------------------- - Network accessline 11610
| -------- | --------- | --------- | --------------------------------------------------------------------------------------------------- | | 1.78bit | IQ1\_S | 122GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E- - Network accessline 11611
| 1.78bit | IQ1\_S | 122GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ1_S) | - Network accessline 11612
| 1.93bit | IQ1\_M | 128GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ1_M) | - Network accessline 11613
| 2.42-bit | IQ2\_XXS | 140GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ2_XXS) | - Network accessline 11614
| 2.71-bit | Q2\_K\_XL | 151B | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q2_K_XL) | - Network accessline 11615
| 3.5-bit | Q3\_K\_XL | 193GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q3_K_XL) | - Network accessline 11616
| 4.5-bit | Q4\_K\_XL | 243GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q4_K_XL) | - Network accessline 11635
* A BOS token of `<|begin_of_text|>` is auto added during tokenization (do NOT add it manually!)  * According to <https://www.llama.com/docs/model-cards-and-prompt-formats/llama4_omni/>, there is an <mark style="background-color:yellow - Network accessline 11636
* According to <https://www.llama.com/docs/model-cards-and-prompt-formats/llama4_omni/>, there is an <mark style="background-color:yellow;">**suggested optional system prompt**</mark>, which is listed below: - Network accessline 11654
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 11657
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11658
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11659
git clone https://github.com/ggml-org/llama.cpp - Network accessline 11666
2. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose Q4\_K\_M, or other quantized versions (like BF16 full precision). More versions at: <https://huggingface.co/unsloth/Llama-4-Scout-17B-16 - Access to secretsline 11671
[Credential-related source omitted] - Access to secretsline 11718
[Credential-related source omitted] - Network accessline 11753
[Credential-related source omitted] - Network accessline 11755
For Llama 4 Scout, we found we should not quantize the vision layers, and leave the MoE router and some other layers as unquantized - we upload these to <https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-dynamic-bnb-4bit - Network accessline 11757
[Credential-related source omitted] - Network accessline 11759
We also had to convert `torch.nn.Parameter` to `torch.nn.Linear` for the MoE layers to allow 4bit quantization to occur. This also means we had to rewrite and patch over the generic Hugging Face implementation. We upload our quantized versi - Network accessline 11761
[Credential-related source omitted] - Network accessline 11770
Kimi-K2-Instruct-0905 the new version of K2 achieves SOTA performance in knowledge, reasoning, coding, and agentic tasks. The full 1T parameter model from Moonshot AI requires 1.09TB of disk space, while the quantized **Unsloth Dynamic 1.8- - Network accessline 11772
You can now run **Kimi-K2-Instruct-0905** with our new GGUFs. Use our same settings below but ensure you change the model name from 'Kimi-K2-Instruct' to 'Kimi-K2-Instruct-0905': [K2-0905 GGUFs](https://huggingface.co/unsloth/Kimi-K2-Instru - Network accessline 11774
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run quantized LLMs with minimal accuracy loss. - Network accessline 11776
<a href="https://docs.unsloth.ai/basics/kimi-k2-how-to-run-locally#run-kimi-k2-tutorials" class="button primary">Run in llama.cpp</a> - Network accessline 11800
According to [Moonshot AI](https://huggingface.co/moonshotai/Kimi-K2-Instruct), these are the recommended settings for Kimi K2 inference: - Network accessline 11846
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/Kimi-K2-Instruct-GGUF/tree/main/UD-TQ1_0">U - Network accessline 11848
We've also uploaded versions in [BF16 format](https://huggingface.co/unsloth/Kimi-K2-Instruct-BF16). - Network accessline 11852
{% hint style="success" %} You can now use the latest update of [llama.cpp](https://github.com/ggml-org/llama.cpp) to run the model: - Network accessline 11853
You can now use the latest update of [llama.cpp](https://github.com/ggml-org/llama.cpp) to run the model: - Network accessline 11858
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 11861
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11862
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11863
git clone https://github.com/ggml-org/llama.cpp - Network accessline 11898
3. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose `UD-TQ1_0`(dynamic 1.8bit quant) or other quantized versions like `Q2_K_XL` . We <mark style="background-color:green;">**recommend using - Access to secretsline 11905
[Credential-related source omitted] - Network accessline 11916
{% hint style="info" %} If you find that downloads get stuck at 90 to 95% or so, please see <https://docs.unsloth.ai/basics/troubleshooting-and-faqs#downloading-gets-stuck-at-90-to-95> - Network accessline 11917
If you find that downloads get stuck at 90 to 95% or so, please see <https://docs.unsloth.ai/basics/troubleshooting-and-faqs#downloading-gets-stuck-at-90-to-95> - Network accessline 11944
**16th July 2025: Kimi K2 updated their tokenizer to enable multiple tool calls** as per <https://x.com/Kimi_Moonshot/status/1945050874067476962> - Network accessline 11946
**18th July 2025: We fixed a system prompt - Kimi tweeted about our fix as well here:** [**https://x.com/Kimi\_Moonshot/status/1946130043446690030**](https://x.com/Kimi_Moonshot/status/1946130043446690030)**. The fix was described here as w - Network accessline 11951
wget https://huggingface.co/unsloth/Kimi-K2-Instruct/raw/main/chat_template.jinja - Network accessline 11955
The Kimi K2 tokenizer was interesting to play around with - <mark style="background-color:green;">**it's mostly similar in action to GPT-4o's tokenizer**</mark>! We first see in the [tokenization\_kimi.py](https://huggingface.co/moonshotai/ - Network accessline 11972
After careful inspection, we find Kimi K2 is nearly identical to GPT-4o's tokenizer regex which can be found in [llama.cpp's source code](https://github.com/ggml-org/llama.cpp/blob/55c509daf51d25bfaee9c8b8ce6abff103d4473b/src/llama-vocab.cp - Network accessline 11982
Both tokenize numbers into groups of 1 to 3 numbers (9, 99, 999), and use similar patterns. The only difference looks to be the handling of "Han" or Chinese characters, which Kimi's tokenizer deals with more. [The PR](https://github.com/ggm - Network accessline 11988
We introduced the Flappy Bird test when our 1.58bit quants for DeepSeek R1 were provided. We found Kimi K2 one of the only models to one-shot all our tasks including this one, [Heptagon ](https://docs.unsloth.ai/models/deepseek-r1-0528-how- - Network accessline 12007
You can also test the dynamic quants via the Heptagon Test as per [r/Localllama](https://www.reddit.com/r/LocalLLaMA/comments/1j7r47l/i_just_made_an_animation_of_a_ball_bouncing/) which tests the model on creating a basic physics engine to - Network accessline 12009
<figure><img src="https://docs.unsloth.ai/~gitbook/image?url=https%3A%2F%2F3215535692-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FxhOjnexMCB3dmuQFQ2Zq%252Fuploads%252F2O72oTw5yPUbcxXjDNKS%252Fsnapsh - Network accessline 12026
You can now run **Grok 2** (aka Grok 2.5), the 270B parameter model by xAI. Full precision requires **539GB**, while the Unsloth Dynamic 3-bit version shrinks size down to just **118GB** (a 75% reduction). GGUF: [Grok-2-GGUF](https://huggin - Network accessline 12028
The **3-bit Q3\_K\_XL** model runs on a single **128GB Mac** or **24GB VRAM + 128GB RAM**, achieving **5+ tokens/s** inference. Thanks to the llama.cpp team and community for [supporting Grok 2](https://github.com/ggml-org/llama.cpp/pull/15 - Network accessline 12030
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run quantized Grok LLMs with minimal accuracy loss. - Network accessline 12064
{% stepper %} {% step %} Install the specific `llama.cpp` PR for Grok 2 on [GitHub here](https://github.com/ggml-org/llama.cpp/pull/15539). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if - Network accessline 12066
Install the specific `llama.cpp` PR for Grok 2 on [GitHub here](https://github.com/ggml-org/llama.cpp/pull/15539). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or - Network accessline 12069
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 12070
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 12071
git clone https://github.com/ggml-org/llama.cpp cd llama.cpp && git fetch origin pull/15539/head:MASTER && git checkout MASTER && cd .. cmake llama.cpp -B llama.cpp/build \ - Access to secretsline 12118
[Credential-related source omitted] - Network accessline 12156
| MoE Bits | Type + Link | Disk Size | Details | | -------- | ----------------------------------------------------------------------------------- | ----------- - Network accessline 12157
| -------- | ----------------------------------------------------------------------------------- | ----------- | ------------- | | 1.66bit | [TQ1\_0](https://huggingface.co/unsloth/grok-2-GGUF/blob/main/grok-2-UD-TQ1_0.gguf) | **81.8 GB** - Network accessline 12158
| 1.66bit | [TQ1\_0](https://huggingface.co/unsloth/grok-2-GGUF/blob/main/grok-2-UD-TQ1_0.gguf) | **81.8 GB** | 1.92/1.56bit | - Network accessline 12159
| 1.78bit | [IQ1\_S](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-IQ1_S) | **88.9 GB** | 2.06/1.56bit | - Network accessline 12160
| 1.93bit | [IQ1\_M](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-IQ1_M) | **94.5 GB** | 2.5/2.06/1.56 | - Network accessline 12161
| 2.42bit | [IQ2\_XXS](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-IQ2_XXS) | **99.3 GB** | 2.5/2.06bit | - Network accessline 12162
| 2.71bit | [Q2\_K\_XL](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-Q2_K_XL) | **112 GB** | 3.5/2.5bit | - Network accessline 12163
| 3.12bit | [IQ3\_XXS](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-IQ3_XXS) | **117 GB** | 3.5/2.06bit | - Network accessline 12164
| 3.5bit | [Q3\_K\_XL](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-Q3_K_XL) | **126 GB** | 4.5/3.5bit | - Network accessline 12165
| 4.5bit | [Q4\_K\_XL](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-Q4_K_XL) | **155 GB** | 5.5/4.5bit | - Network accessline 12166
| 5.5bit | [Q5\_K\_XL](https://huggingface.co/unsloth/grok-2-GGUF/tree/main/UD-Q5_K_XL) | **191 GB** | 6.5/5.5bit | - Network accessline 12180
The [latest llama.cpp release](https://github.com/ggml-org/llama.cpp/pull/14363) also introduces high throughput mode. Use `llama-parallel`. Read more about it [here](https://github.com/ggml-org/llama.cpp/tree/master/examples/parallel). You - Network accessline 12201
Finetuned from [**Mistral-Small-3.1**](https://huggingface.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF), Devstral supports a 128k context window. Devstral Small 1.1 has improved performance, achieving a score of 53.6% performance on
skills/vendor-ai-research/unsloth/references/llms-txt.md
- Access to secretsline 12
[Credential-related source omitted] - Network accessline 35
{% hint style="success" %} Read more on running Llama 4 here: <https://docs.unsloth.ai/basics/tutorial-how-to-run-and-fine-tune-llama-4> - Network accessline 36
Read more on running Llama 4 here: <https://docs.unsloth.ai/basics/tutorial-how-to-run-and-fine-tune-llama-4> - Network accessline 75
Qwen3-Coder is Qwen’s new series of coding agent models, available in 30B (**Qwen3-Coder-Flash**) and 480B parameters. **Qwen3-480B-A35B-Instruct** achieves SOTA coding performance rivalling Claude Sonnet-4, GPT-4.1, and [Kimi K2](https://d - Network accessline 77
We also uploaded Qwen3-Coder with native <mark style="background-color:purple;">**1M context length**</mark> extended by YaRN and full-precision 8bit and 16bit versions. [Unsloth](https://github.com/unslothai/unsloth) also now supports fine - Network accessline 85
{% hint style="success" %} **Does** [**Unsloth Dynamic Quants**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **work?** Yes, and very well. In third-party testing on the Aider Polyglot benchmark, the **UD-Q4\_K\_XL (276GB)** dy - Network accessline 86
**Does** [**Unsloth Dynamic Quants**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **work?** Yes, and very well. In third-party testing on the Aider Polyglot benchmark, the **UD-Q4\_K\_XL (276GB)** dynamic quant nearly matched - Network accessline 91
| Dynamic 2.0 GGUF (to run) | 1M Context Dyn - Network accessline 93
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF">30B-A3B-Instruct</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF">480B-A35B-Instruct</a></li></ul> | <ul><li><a hre - Network accessline 147
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 186
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 188
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 188
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 236
Orpheus supports tags like `<laugh>`, `<chuckle>`, `<sigh>`, `<cough>`, `<sniffle>`, `<groan>`, `<yawn>`, `<gasp>`, etc. For example: `"I missed you <laugh> so much!"`. These tags are enclosed in angle brackets and will be treated as speci - Network accessline 299
Unsloth model catalog for all our [Dynamic](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) GGUF, 4-bit, 16-bit models on Hugging Face. - Network accessline 309
| Model | Variant | GGUF | Instruct (4-bit) - Network accessline 310
| ------------------------------------------------------------------------------------------ | ---------------------- | ------------------------------------------------------------------------------- | -------------------------------------- - Network accessline 311
| [**gpt-oss** ](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune) | 120b | [link](https://huggingface.co/unsloth/gpt-oss-120b-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 312
| | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 313
| [**DeepSeek-V3.1**](https://docs.unsloth.ai/models/deepseek-v3.1-how-to-run-locally) | Terminus | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF) | — - Network accessline 314
| | V3.1 | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF) | — - Network accessline 315
| [**Qwen3-VL**](https://docs.unsloth.ai/models/qwen3-vl-how-to-run-and-fine-tune) | 2B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-2B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 316
| | 2B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-2B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 317
| | 4B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-4B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 318
| | 4B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-4B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 319
| | 8B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-8B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 320
| | 8B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-8B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 321
| | 30B-A3B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-30B-A3B-Instruct-GGUF) | — - Network accessline 322
| | 30B-A3B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-30B-A3B-Thinking-GGUF) | — - Network accessline 323
| | 32B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-32B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 324
| | 32B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-32B-Thinking-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 325
| | 235B-A22B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-VL-235B-A22B-Instruct-GGUF) | — - Network accessline 326
| | 235B-A22B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-VL-235B-A22B-Thinking-GGUF) | — - Network accessline 327
| [**Qwen3-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) | 30B-A3B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Instruct-2507-GGUF) | — - Network accessline 328
| | 30B-A3B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF) | — - Network accessline 329
| | 235B-A22B-Thinking | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-Thinking-2507-GGUF/) | — - Network accessline 330
| | 235B-A22B-Instruct | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF/) | — - Network accessline 331
| **Qwen3-Coder** | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF) | — - Network accessline 332
| | 480B-A35B | [link](https://huggingface.co/unsloth/Qwen3-Coder-480B-A35B-Instruct-GGUF) | — - Network accessline 333
| **Granite-4.0 (new)** | H-Small | [link](https://huggingface.co/unsloth/granite-4.0-h-small-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 334
| **GLM (new)** | 4.6 | [link](https://huggingface.co/unsloth/GLM-4.6-GGUF) | — - Network accessline 335
| | 4.5-Air | [link](https://huggingface.co/unsloth/GLM-4.5-Air-GGUF) | — - Network accessline 336
| **Kimi-K2-0905** | 1T | [link](https://huggingface.co/unsloth/Kimi-K2-Instruct-0905-GGUF) | — - Network accessline 337
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 338
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 339
| **DeepSeek-R1-0528** | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 340
| | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF) | — - Network accessline 341
| **Mistral** | Magistral Small (2509) | [link](https://huggingface.co/unsloth/Magistral-Small-2509-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 342
| | Magistral Small (2507) | [link](https://huggingface.co/unsloth/Magistral-Small-2507-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 343
| | Small 3.2 24B (2506) | [link](https://huggingface.co/unsloth/Mistral-Small-3.2-24B-Instruct-2506-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 344
| FLUX.1 | Kontext-dev | [link](https://huggingface.co/unsloth/FLUX.1-Kontext-dev-GGUF) | — - Network accessline 345
| **Qwen3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 346
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 347
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 348
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 349
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 350
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 351
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 352
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF) | — - Network accessline 353
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 354
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF) | — - Network accessline 355
| **Grok 2** | 270B | [link](https://huggingface.co/unsloth/grok-2-GGUF) | — - Network accessline 356
| **Qwen-2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B-GGUF) | — - Network accessline 357
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B-GGUF) | — - Network accessline 358
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 359
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning-GGUF) | [link](https://huggingface.co/unsloth/ - Network accessline 361
| Model | Variant | GGUF | Instruct (4-bit) | | ----------------- | ------- - Network accessline 362
| ----------------- | ---------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | **DeepSeek-V3.1** | Terminu - Network accessline 363
| **DeepSeek-V3.1** | Terminus | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF) | | - Network accessline 364
| | V3.1 | [link](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF) | | - Network accessline 365
| **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324-GGUF) | — | - Network accessline 366
| | V3 | [link](https://huggingface.co/unsloth/DeepSeek-V3-GGUF) | — | - Network accessline 367
| **DeepSeek-R1** | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF) | — | - Network accessline 368
| | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-unsloth-bnb-4bit) | - Network accessline 369
| | R1 | [link](https://huggingface.co/unsloth/DeepSeek-R1-GGUF) | — | - Network accessline 370
| | R1 Zero | [link](https://huggingface.co/unsloth/DeepSeek-R1-Zero-GGUF) | — | - Network accessline 371
| | Distill Llama 3 8 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B-unsloth-bnb-4bit) | - Network accessline 372
| | Distill Llama 3.3 70 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B-bnb-4bit) | - Network accessline 373
| | Distill Qwen 2.5 1.5 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-unsloth-bnb-4bit) | - Network accessline 374
| | Distill Qwen 2.5 7 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B-unsloth-bnb-4bit) | - Network accessline 375
| | Distill Qwen 2.5 14 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B-unsloth-bnb-4bit) | - Network accessline 376
| | Distill Qwen 2.5 32 B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B-GGUF) | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B-bnb-4bit) | - Network accessline 378
| Model | Variant | GGUF | Instruct (4-bit) | | ------------- | ------------ - Network accessline 379
| ------------- | ------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------- | | **Llama 4** | Scout 17 B-1 - Network accessline 380
| **Llama 4** | Scout 17 B-16 E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-bnb-4bit) | - Network accessline 381
| | Maverick 17 B-128 E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF) | — | - Network accessline 382
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct-bnb-4bit) | - Network accessline 383
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-bnb-4bit) | - Network accessline 384
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct-bnb-4bit) | - Network accessline 385
| | 11 B Vision | — | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct-unsloth-bnb-4bit) | - Network accessline 386
| | 90 B Vision | — | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision-Instruct-bnb-4bit) | - Network accessline 387
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Llama-3.1-8B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit) | - Network accessline 388
| | 70 B | — | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B-Instruct-bnb-4bit) | - Network accessline 389
| | 405 B | — | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-405B-Instruct-bnb-4bit) | - Network accessline 390
| **Llama 3** | 8 B | — | [link](https://huggingface.co/unsloth/llama-3-8b-Instruct-bnb-4bit) | - Network accessline 391
| | 70 B | — | [link](https://huggingface.co/unsloth/llama-3-70b-bnb-4bit) | - Network accessline 392
| **Llama 2** | 7 B | — | [link](https://huggingface.co/unsloth/llama-2-7b-chat-bnb-4bit) | - Network accessline 393
| | 13 B | — | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 394
| **CodeLlama** | 7 B | — | [link](https://huggingface.co/unsloth/codellama-7b-bnb-4bit) | - Network accessline 395
| | 13 B | — | [link](https://huggingface.co/unsloth/codellama-13b-bnb-4bit) | - Network accessline 396
| | 34 B | — | [link](https://huggingface.co/unsloth/codellama-34b-bnb-4bit) | - Network accessline 398
| Model | Variant | GGUF | Instruct (4-bit) | | ------------ | ------------- | -------------------------------- - Network accessline 399
| ------------ | ------------- | ------------------------------------------------------------ | ---------------------------------------------------------------------------- | | **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/u - Network accessline 400
| **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-unsloth-bnb-4bit) | - Possible obfuscationline 400
| **Gemma 3n** | E2B | <U+200B>[link](https://huggingface.co/unsloth/gemma-3n-E2B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it-unsloth-bnb-4bit) | - Network accessline 401
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it-unsloth-bnb-4bit) | - Network accessline 402
| **Gemma 3** | 270M | [link](https://huggingface.co/unsloth/gemma-3-270m-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-270m-it) | - Network accessline 403
| | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-1b-it-unsloth-bnb-4bit) | - Network accessline 404
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-4b-it-unsloth-bnb-4bit) | - Network accessline 405
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-12b-it-unsloth-bnb-4bit) | - Network accessline 406
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-3-27b-it-unsloth-bnb-4bit) | - Network accessline 407
| **MedGemma** | 4 B (vision) | [link](https://huggingface.co/unsloth/medgemma-4b-it-GGUF) | [link](https://huggingface.co/unsloth/medgemma-4b-it-unsloth-bnb-4bit) | - Network accessline 408
| | 27 B (vision) | [link](https://huggingface.co/unsloth/medgemma-27b-it-GGUF) | [link](https://huggingface.co/unsloth/medgemma-27b-text-it-unsloth-bnb-4bit) | - Network accessline 409
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2-it-GGUF) | [link](https://huggingface.co/unsloth/gemma-2-2b-it-bnb-4bit) | - Network accessline 410
| | 9 B | — | [link](https://huggingface.co/unsloth/gemma-2-9b-it-bnb-4bit) | - Network accessline 411
| | 27 B | — | [link](https://huggingface.co/unsloth/gemma-2-27b-it-bnb-4bit) | - Network accessline 413
| Model | Variant | GGUF | Instruct (4-bit) | | -------------------------- | ---- - Network accessline 414
| -------------------------- | ---------- | ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | **Qwen 3** | 0.6 - Network accessline 415
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-unsloth-bnb-4bit) | - Network accessline 416
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-unsloth-bnb-4bit) | - Network accessline 417
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-4B-unsloth-bnb-4bit) | - Network accessline 418
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-8B-unsloth-bnb-4bit) | - Network accessline 419
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-14B-unsloth-bnb-4bit) | - Network accessline 420
| | 30 B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-bnb-4bit) | - Network accessline 421
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B-GGUF) | [link](https://huggingface.co/unsloth/Qwen3-32B-unsloth-bnb-4bit) | - Network accessline 422
| | 235 B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B-GGUF) | — | - Network accessline 423
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B-GGUF) | — | - Network accessline 424
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B-GGUF) | — | - Network accessline 425
| **Qwen 2.5 VL** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct-unsloth-bnb-4bit) | - Network accessline 426
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct-unsloth-bnb-4bit) | - Network accessline 427
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct-unsloth-bnb-4bit) | - Network accessline 428
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct-unsloth-bnb-4bit) | - Network accessline 429
| **Qwen 2.5** | 0.5 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-Instruct-bnb-4bit) | - Network accessline 430
| | 1.5 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-Instruct-bnb-4bit) | - Network accessline 431
| | 3 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-3B-Instruct-bnb-4bit) | - Network accessline 432
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-7B-Instruct-bnb-4bit) | - Network accessline 433
| | 14 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-14B-Instruct-bnb-4bit) | - Network accessline 434
| | 32 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-32B-Instruct-bnb-4bit) | - Network accessline 435
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2.5-72B-Instruct-bnb-4bit) | - Network accessline 436
| **Qwen 2.5 Coder (128 K)** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-bnb-4bit) | - Network accessline 437
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-bnb-4bit) | - Network accessline 438
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-bnb-4bit) | - Network accessline 439
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-bnb-4bit) | - Network accessline 440
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-bnb-4bit) | - Network accessline 441
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-128K-GGUF) | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-bnb-4bit) | - Network accessline 442
| **QwQ** | 32 B | [link](https://huggingface.co/unsloth/QwQ-32B-GGUF) | [link](https://huggingface.co/unsloth/QwQ-32B-unsloth-bnb-4bit) | - Network accessline 443
| **QVQ (preview)** | 72 B | — | [link](https://huggingface.co/unsloth/QVQ-72B-Preview-bnb-4bit) | - Network accessline 444
| **Qwen 2 (chat)** | 1.5 B | — | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct-bnb-4bit) | - Network accessline 445
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2-7B-Instruct-bnb-4bit) | - Network accessline 446
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2-72B-Instruct-bnb-4bit) | - Network accessline 447
| **Qwen 2 VL** | 2 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-2B-Instruct-unsloth-bnb-4bit) | - Network accessline 448
| | 7 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-7B-Instruct-unsloth-bnb-4bit) | - Network accessline 449
| | 72 B | — | [link](https://huggingface.co/unsloth/Qwen2-VL-72B-Instruct-bnb-4bit) | - Network accessline 451
<table><thead><tr><th width="174">Model</th><th>Variant</th><th>GGUF</th><th>Instruct (4-bit)</th></tr></thead><tbody><tr><td><strong>Mistral Small</strong></td><td>3.2-24 B (2506)</td><td><a href="https://huggingface.co/unsloth/Mistral-Sma - Network accessline 453
| Model | Variant | GGUF | Instruct (4-bit) | | ----------- | ---------------- | ------------------------ - Network accessline 454
| ----------- | ---------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](https://huggingfa - Network accessline 455
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus-unsloth-bnb-4bit) | - Network accessline 456
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning-GGUF) | [link](https://huggingface.co/unsloth/phi-4-reasoning-unsloth-bnb-4bit) | - Network accessline 457
| | Mini-Reasoning | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning-unsloth-bnb-4bit) | - Network accessline 458
| | Phi-4 (instruct) | [link](https://huggingface.co/unsloth/phi-4-GGUF) | [link](https://huggingface.co/unsloth/phi-4-unsloth-bnb-4bit) | - Network accessline 459
| | mini (instruct) | [link](https://huggingface.co/unsloth/Phi-4-mini-instruct-GGUF) | [link](https://huggingface.co/unsloth/Phi-4-mini-instruct-unsloth-bnb-4bit) | - Network accessline 460
| **Phi-3.5** | mini | — | [link](https://huggingface.co/unsloth/Phi-3.5-mini-instruct-bnb-4bit) | - Network accessline 461
| **Phi-3** | mini | — | [link](https://huggingface.co/unsloth/Phi-3-mini-4k-instruct-bnb-4bit) | - Network accessline 462
| | medium | — | [link](https://huggingface.co/unsloth/Phi-3-medium-4k-instruct-bnb-4bit) | - Network accessline 466
| Model | Variant | GGUF | Instruct (4-bit) | | -------------- | ----------------- | ----- - Network accessline 467
| -------------- | ----------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------- | | GLM | 4.5-Air | [link - Network accessline 468
| GLM | 4.5-Air | [link](https://huggingface.co/unsloth/GLM-4.5-Air-GGUF) | | - Network accessline 469
| | 4.5 | [4.5](https://huggingface.co/unsloth/GLM-4.5-GGUF) | | - Network accessline 470
| | 4-32B-0414 | [4-32B-0414](https://huggingface.co/unsloth/GLM-4-32B-0414-GGUF) | | - Network accessline 471
| Hunyuan | A13B | [link](https://huggingface.co/unsloth/Hunyuan-A13B-Instruct-GGUF) | — | - Network accessline 472
| Orpheus | 0.1-ft (3B) | [link](https://app.gitbook.com/o/HpyELzcNe0topgVLGCZY/s/xhOjnexMCB3dmuQFQ2Zq/) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft-unsloth-bnb-4bit) | - Network accessline 473
| **LLava** | 1.5 (7 B) | — | [link](https://huggingface.co/unsloth/llava-1.5-7b-hf-bnb-4bit) | - Network accessline 474
| | 1.6 Mistral (7 B) | — | [link](https://huggingface.co/unsloth/llava-v1.6-mistral-7b-hf-bnb-4bit) | - Network accessline 475
| **TinyLlama** | Chat | — | [link](https://huggingface.co/unsloth/tinyllama-chat-bnb-4bit) | - Network accessline 476
| **SmolLM 2** | 135 M | [link](https://huggingface.co/unsloth/SmolLM2-135M-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-135M-Instruct-bnb-4bit) | - Network accessline 477
| | 360 M | [link](https://huggingface.co/unsloth/SmolLM2-360M-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-360M-Instruct-bnb-4bit) | - Network accessline 478
| | 1.7 B | [link](https://huggingface.co/unsloth/SmolLM2-1.7B-Instruct-GGUF) | [link](https://huggingface.co/unsloth/SmolLM2-1.7B-Instruct-bnb-4bit) | - Network accessline 479
| **Zephyr-SFT** | 7 B | — | [link](https://huggingface.co/unsloth/zephyr-sft-bnb-4bit) | - Network accessline 480
| **Yi** | 6 B (v1.5) | — | [link](https://huggingface.co/unsloth/Yi-1.5-6B-bnb-4bit) | - Network accessline 481
| | 6 B (v1.0) | — | [link](https://huggingface.co/unsloth/yi-6b-bnb-4bit) | - Network accessline 482
| | 34 B (chat) | — | [link](https://huggingface.co/unsloth/yi-34b-chat-bnb-4bit) | - Network accessline 483
| | 34 B (base) | — | [link](https://huggingface.co/unsloth/yi-34b-bnb-4bit) | - Network accessline 489
| Model | Variant | Instruct (16-bit) | | -------------------- | ---------------------- | --------------------------------------------------------------- - Network accessline 490
| -------------------- | ---------------------- | -------------------------------------------------------------------------- | | **gpt-oss** (new) | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b) - Network accessline 491
| **gpt-oss** (new) | 20b | [link](https://huggingface.co/unsloth/gpt-oss-20b) | - Network accessline 492
| | 120b | [link](https://huggingface.co/unsloth/gpt-oss-120b) | - Network accessline 493
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | - Network accessline 494
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it) | - Network accessline 495
| **DeepSeek-R1-0528** | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B) | - Network accessline 496
| | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528) | - Network accessline 497
| **Mistral** | Small 3.2 24B (2506) | [link](https://huggingface.co/unsloth/Mistral-Small-3.2-24B-Instruct-2506) | - Network accessline 498
| | Small 3.1 24B (2503) | [link](https://huggingface.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503) | - Network accessline 499
| | Small 3.0 24B (2501) | [link](https://huggingface.co/unsloth/Mistral-Small-24B-Instruct-2501) | - Network accessline 500
| | Magistral Small (2506) | [link](https://huggingface.co/unsloth/Magistral-Small-2506) | - Network accessline 501
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | - Network accessline 502
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B) | - Network accessline 503
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B) | - Network accessline 504
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B) | - Network accessline 505
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B) | - Network accessline 506
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B) | - Network accessline 507
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B) | - Network accessline 508
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B) | - Network accessline 509
| **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | - Network accessline 510
| | Maverick 17B-128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct) | - Network accessline 511
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B) | - Network accessline 512
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B) | - Network accessline 513
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | - Network accessline 514
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning) | - Network accessline 516
| Model | Variant | Instruct (16-bit) | | --------------- | --------------------- | -------------------------------------------------------------------- | | **DeepSe - Network accessline 517
| --------------- | --------------------- | -------------------------------------------------------------------- | | **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324) | | - Network accessline 518
| **DeepSeek-V3** | V3-0324 | [link](https://huggingface.co/unsloth/DeepSeek-V3-0324) | - Network accessline 519
| | V3 | [link](https://huggingface.co/unsloth/DeepSeek-V3) | - Network accessline 520
| **DeepSeek-R1** | R1-0528 | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528) | - Network accessline 521
| | R1-0528-Qwen3-8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B) | - Network accessline 522
| | R1 | [link](https://huggingface.co/unsloth/DeepSeek-R1) | - Network accessline 523
| | R1 Zero | [link](https://huggingface.co/unsloth/DeepSeek-R1-Zero) | - Network accessline 524
| | Distill Llama 3 8B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-8B) | - Network accessline 525
| | Distill Llama 3.3 70B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Llama-70B) | - Network accessline 526
| | Distill Qwen 2.5 1.5B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B) | - Network accessline 527
| | Distill Qwen 2.5 7B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-7B) | - Network accessline 528
| | Distill Qwen 2.5 14B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-14B) | - Network accessline 529
| | Distill Qwen 2.5 32B | [link](https://huggingface.co/unsloth/DeepSeek-R1-Distill-Qwen-32B) | - Network accessline 531
| Family | Variant | Instruct (16-bit) | | ------------- | ----------------- | ------------------------------------------------------------------------- | | **Llama 4* - Network accessline 532
| ------------- | ----------------- | ------------------------------------------------------------------------- | | **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | | - Network accessline 533
| **Llama 4** | Scout 17B-16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct) | - Network accessline 534
| | Maverick 17B-128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct) | - Network accessline 535
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B-Instruct) | - Network accessline 536
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct) | - Network accessline 537
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B-Instruct) | - Network accessline 538
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision-Instruct) | - Network accessline 539
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision-Instruct) | - Network accessline 540
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B-Instruct) | - Network accessline 541
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B-Instruct) | - Network accessline 542
| | 405 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-405B-Instruct) | - Network accessline 543
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b-Instruct) | - Network accessline 544
| | 70 B | [link](https://huggingface.co/unsloth/llama-3-70b-Instruct) | - Network accessline 545
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b-chat) | - Network accessline 547
| Model | Variant | Instruct (16-bit) | | ------------ | ------- | ------------------------------------------------------ | | **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3 - Network accessline 548
| ------------ | ------- | ------------------------------------------------------ | | **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | | | E4B | [link](https://huggingface.co/unsloth/gemma-3 - Network accessline 549
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E4B-it) | - Network accessline 550
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E2B-it) | - Network accessline 551
| **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-it) | - Network accessline 552
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-it) | - Network accessline 553
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-it) | - Network accessline 554
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-it) | - Network accessline 555
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2b-it) | - Network accessline 556
| | 9 B | [link](https://huggingface.co/unsloth/gemma-9b-it) | - Network accessline 557
| | 27 B | [link](https://huggingface.co/unsloth/gemma-27b-it) | - Network accessline 559
| Family | Variant | Instruct (16-bit) | | ------------------------ | --------- | ----------------------------------------------------------------------- | | **Qwen 3 - Network accessline 560
| ------------------------ | --------- | ----------------------------------------------------------------------- | | **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | | - Network accessline 561
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B) | - Network accessline 562
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B) | - Network accessline 563
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B) | - Network accessline 564
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B) | - Network accessline 565
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B) | - Network accessline 566
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B) | - Network accessline 567
| | 32 B | [link](https://huggingface.co/unsloth/Qwen3-32B) | - Network accessline 568
| | 235B-A22B | [link](https://huggingface.co/unsloth/Qwen3-235B-A22B) | - Network accessline 569
| **Qwen 2.5 Omni** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-3B) | - Network accessline 570
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Omni-7B) | - Network accessline 571
| **Qwen 2.5 VL** | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-3B-Instruct) | - Network accessline 572
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-7B-Instruct) | - Network accessline 573
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-32B-Instruct) | - Network accessline 574
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-VL-72B-Instruct) | - Network accessline 575
| **Qwen 2.5** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-Instruct) | - Network accessline 576
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-Instruct) | - Network accessline 577
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-3B-Instruct) | - Network accessline 578
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-7B-Instruct) | - Network accessline 579
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-14B-Instruct) | - Network accessline 580
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-32B-Instruct) | - Network accessline 581
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-72B-Instruct) | - Network accessline 582
| **Qwen 2.5 Coder 128 K** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-0.5B-Instruct-128K) | - Network accessline 583
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-1.5B-Instruct-128K) | - Network accessline 584
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-3B-Instruct-128K) | - Network accessline 585
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-7B-Instruct-128K) | - Network accessline 586
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-14B-Instruct-128K) | - Network accessline 587
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-Coder-32B-Instruct-128K) | - Network accessline 588
| **QwQ** | 32 B | [link](https://huggingface.co/unsloth/QwQ-32B) | - Network accessline 589
| **QVQ (preview)** | 72 B | — | | **Qwen 2 (Chat)** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct) | | - Network accessline 590
| **Qwen 2 (Chat)** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B-Instruct) | - Network accessline 591
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-7B-Instruct) | - Network accessline 592
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2-72B-Instruct) | - Network accessline 593
| **Qwen 2 VL** | 2 B | [link](https://huggingface.co/unsloth/Qwen2-VL-2B-Instruct) | - Network accessline 594
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-VL-7B-Instruct) | - Network accessline 595
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2-VL-72B-Instruct) | - Network accessline 597
| Model | Variant | Instruct (16-bit) | | ---------------- | -------------- | ------------------------------------------------------------------ | | **Mistral** | Small - Network accessline 598
| ---------------- | -------------- | ------------------------------------------------------------------ | | **Mistral** | Small 2409-22B | [link](https://huggingface.co/unsloth/Mistral-Small-Instruct-2409) | | **Mistral** | Large - Network accessline 599
| **Mistral** | Small 2409-22B | [link](https://huggingface.co/unsloth/Mistral-Small-Instruct-2409) | - Network accessline 600
| **Mistral** | Large 2407 | [link](https://huggingface.co/unsloth/Mistral-Large-Instruct-2407) | - Network accessline 601
| **Mistral** | 7B v0.3 | [link](https://huggingface.co/unsloth/mistral-7b-instruct-v0.3) | - Network accessline 602
| **Mistral** | 7B v0.2 | [link](https://huggingface.co/unsloth/mistral-7b-instruct-v0.2) | - Network accessline 603
| **Pixtral** | 12B 2409 | [link](https://huggingface.co/unsloth/Pixtral-12B-2409) | - Network accessline 604
| **Mixtral** | 8×7B | [link](https://huggingface.co/unsloth/Mixtral-8x7B-Instruct-v0.1) | - Network accessline 605
| **Mistral NeMo** | 12B 2407 | [link](https://huggingface.co/unsloth/Mistral-Nemo-Instruct-2407) | - Network accessline 606
| **Devstral** | Small 2505 | [link](https://huggingface.co/unsloth/Devstral-Small-2505) | - Network accessline 608
| Model | Variant | Instruct (16-bit) | | ----------- | -------------- | --------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](ht - Network accessline 609
| ----------- | -------------- | --------------------------------------------------------------- | | **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | | | Reasoning | [link](ht - Network accessline 610
| **Phi-4** | Reasoning-plus | [link](https://huggingface.co/unsloth/Phi-4-reasoning-plus) | - Network accessline 611
| | Reasoning | [link](https://huggingface.co/unsloth/Phi-4-reasoning) | - Network accessline 612
| | Phi-4 (core) | [link](https://huggingface.co/unsloth/Phi-4) | - Network accessline 613
| | Mini-Reasoning | [link](https://huggingface.co/unsloth/Phi-4-mini-reasoning) | - Network accessline 614
| | Mini | [link](https://huggingface.co/unsloth/Phi-4-mini) | - Network accessline 615
| **Phi-3.5** | Mini | [link](https://huggingface.co/unsloth/Phi-3.5-mini-instruct) | - Network accessline 616
| **Phi-3** | Mini | [link](https://huggingface.co/unsloth/Phi-3-mini-4k-instruct) | - Network accessline 617
| | Medium | [link](https://huggingface.co/unsloth/Phi-3-medium-4k-instruct) | - Network accessline 621
| Model | Instruct (16-bit) | | ---------------------- | ---------------------------------------------------------------- | | Orpheus-3B (v0.1 ft) | [link](https://huggingfac - Network accessline 622
| ---------------------- | ---------------------------------------------------------------- | | Orpheus-3B (v0.1 ft) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft) | | Orpheus-3B (v0.1 pt) | [link](https://huggingfac - Network accessline 623
| Orpheus-3B (v0.1 ft) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-ft) | - Network accessline 624
| Orpheus-3B (v0.1 pt) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained) | - Network accessline 625
| Sesame-CSM 1B | [link](https://huggingface.co/unsloth/csm-1b) | - Network accessline 626
| Whisper Large V3 (STT) | [link](https://huggingface.co/unsloth/whisper-large-v3) | - Network accessline 627
| Llasa-TTS 1B | [link](https://huggingface.co/unsloth/Llasa-1B) | - Network accessline 628
| Spark-TTS 0.5B | [link](https://huggingface.co/unsloth/Spark-TTS-0.5B) | - Network accessline 629
| Oute-TTS 1B | [link](https://huggingface.co/unsloth/Llama-OuteTTS-1.0-1B) | - Network accessline 635
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------ | ----------------- | ---------- - Network accessline 636
| ------------ | ----------------- | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------- | | **Gemma 3n** | E2B | [link](htt - Network accessline 637
| **Gemma 3n** | E2B | [link](https://huggingface.co/unsloth/gemma-3n-E2B) | [link](https://huggingface.co/unsloth/gemma-3n-E2B-unsloth-bnb-4bit) | - Network accessline 638
| | E4B | [link](https://huggingface.co/unsloth/gemma-3n-E4B) | [link](https://huggingface.co/unsloth/gemma-3n-E4B-unsloth-bnb-4bit) | - Network accessline 639
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base-unsloth-bnb-4bit) | - Network accessline 640
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base-unsloth-bnb-4bit) | - Network accessline 641
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-Base) | [link](https://huggingface.co/unsloth/Qwen3-4B-Base-unsloth-bnb-4bit) | - Network accessline 642
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-Base) | [link](https://huggingface.co/unsloth/Qwen3-8B-Base-unsloth-bnb-4bit) | - Network accessline 643
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-Base) | [link](https://huggingface.co/unsloth/Qwen3-14B-Base-unsloth-bnb-4bit) | - Network accessline 644
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base-bnb-4bit) | - Network accessline 645
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E-Instruct-unsloth-bnb-4bit) | - Network accessline 646
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 650
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------- | ----------------- | ----------------------------------- - Network accessline 651
| ------------- | ----------------- | ---------------------------------------------------------------- | ----------------------------------------------------------- | | **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unslo - Network accessline 652
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | — | - Network accessline 653
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 654
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B) | — | - Network accessline 655
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B) | — | - Network accessline 656
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B) | — | - Network accessline 657
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision) | — | - Network accessline 658
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision) | — | - Network accessline 659
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B) | — | - Network accessline 660
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B) | — | - Network accessline 661
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b) | [link](https://huggingface.co/unsloth/llama-3-8b-bnb-4bit) | - Network accessline 662
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b) | [link](https://huggingface.co/unsloth/llama-2-7b-bnb-4bit) | - Network accessline 663
| | 13 B | [link](https://huggingface.co/unsloth/llama-2-13b) | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 665
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------ | ------- | ------------------------------------------------- - Network accessline 666
| ------------ | ------- | --------------------------------------------------------- | -------------------------------------------------------------------------- | | **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B- - Network accessline 667
| **Qwen 3** | 0.6 B | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base) | [link](https://huggingface.co/unsloth/Qwen3-0.6B-Base-unsloth-bnb-4bit) | - Network accessline 668
| | 1.7 B | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base) | [link](https://huggingface.co/unsloth/Qwen3-1.7B-Base-unsloth-bnb-4bit) | - Network accessline 669
| | 4 B | [link](https://huggingface.co/unsloth/Qwen3-4B-Base) | [link](https://huggingface.co/unsloth/Qwen3-4B-Base-unsloth-bnb-4bit) | - Network accessline 670
| | 8 B | [link](https://huggingface.co/unsloth/Qwen3-8B-Base) | [link](https://huggingface.co/unsloth/Qwen3-8B-Base-unsloth-bnb-4bit) | - Network accessline 671
| | 14 B | [link](https://huggingface.co/unsloth/Qwen3-14B-Base) | [link](https://huggingface.co/unsloth/Qwen3-14B-Base-unsloth-bnb-4bit) | - Network accessline 672
| | 30B-A3B | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base) | [link](https://huggingface.co/unsloth/Qwen3-30B-A3B-Base-unsloth-bnb-4bit) | - Network accessline 673
| **Qwen 2.5** | 0.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B) | [link](https://huggingface.co/unsloth/Qwen2.5-0.5B-bnb-4bit) | - Network accessline 674
| | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B) | [link](https://huggingface.co/unsloth/Qwen2.5-1.5B-bnb-4bit) | - Network accessline 675
| | 3 B | [link](https://huggingface.co/unsloth/Qwen2.5-3B) | [link](https://huggingface.co/unsloth/Qwen2.5-3B-bnb-4bit) | - Network accessline 676
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2.5-7B) | [link](https://huggingface.co/unsloth/Qwen2.5-7B-bnb-4bit) | - Network accessline 677
| | 14 B | [link](https://huggingface.co/unsloth/Qwen2.5-14B) | [link](https://huggingface.co/unsloth/Qwen2.5-14B-bnb-4bit) | - Network accessline 678
| | 32 B | [link](https://huggingface.co/unsloth/Qwen2.5-32B) | [link](https://huggingface.co/unsloth/Qwen2.5-32B-bnb-4bit) | - Network accessline 679
| | 72 B | [link](https://huggingface.co/unsloth/Qwen2.5-72B) | [link](https://huggingface.co/unsloth/Qwen2.5-72B-bnb-4bit) | - Network accessline 680
| **Qwen 2** | 1.5 B | [link](https://huggingface.co/unsloth/Qwen2-1.5B) | [link](https://huggingface.co/unsloth/Qwen2-1.5B-bnb-4bit) | - Network accessline 681
| | 7 B | [link](https://huggingface.co/unsloth/Qwen2-7B) | [link](https://huggingface.co/unsloth/Qwen2-7B-bnb-4bit) | - Network accessline 685
| Model | Variant | Base (16-bit) | Base (4-bit) | | ------------- | ----------------- | ----------------------------------- - Network accessline 686
| ------------- | ----------------- | ---------------------------------------------------------------- | ----------------------------------------------------------- | | **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unslo - Network accessline 687
| **Llama 4** | Scout 17B 16E | [link](https://huggingface.co/unsloth/Llama-4-Scout-17B-16E) | — | - Network accessline 688
| | Maverick 17B 128E | [link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E) | — | - Network accessline 689
| **Llama 3.3** | 70 B | [link](https://huggingface.co/unsloth/Llama-3.3-70B) | — | - Network accessline 690
| **Llama 3.2** | 1 B | [link](https://huggingface.co/unsloth/Llama-3.2-1B) | — | - Network accessline 691
| | 3 B | [link](https://huggingface.co/unsloth/Llama-3.2-3B) | — | - Network accessline 692
| | 11 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-11B-Vision) | — | - Network accessline 693
| | 90 B Vision | [link](https://huggingface.co/unsloth/Llama-3.2-90B-Vision) | — | - Network accessline 694
| **Llama 3.1** | 8 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-8B) | — | - Network accessline 695
| | 70 B | [link](https://huggingface.co/unsloth/Meta-Llama-3.1-70B) | — | - Network accessline 696
| **Llama 3** | 8 B | [link](https://huggingface.co/unsloth/llama-3-8b) | [link](https://huggingface.co/unsloth/llama-3-8b-bnb-4bit) | - Network accessline 697
| **Llama 2** | 7 B | [link](https://huggingface.co/unsloth/llama-2-7b) | [link](https://huggingface.co/unsloth/llama-2-7b-bnb-4bit) | - Network accessline 698
| | 13 B | [link](https://huggingface.co/unsloth/llama-2-13b) | [link](https://huggingface.co/unsloth/llama-2-13b-bnb-4bit) | - Network accessline 700
| Model | Variant | Base (16-bit) | Base (4-bit) | | ----------- | ------- | ----------------------------------------------------- | --- - Network accessline 701
| ----------- | ------- | ----------------------------------------------------- | ---------------------------------------------------------------------- | | **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-pt) | [li - Network accessline 702
| **Gemma 3** | 1 B | [link](https://huggingface.co/unsloth/gemma-3-1b-pt) | [link](https://huggingface.co/unsloth/gemma-3-1b-pt-unsloth-bnb-4bit) | - Network accessline 703
| | 4 B | [link](https://huggingface.co/unsloth/gemma-3-4b-pt) | [link](https://huggingface.co/unsloth/gemma-3-4b-pt-unsloth-bnb-4bit) | - Network accessline 704
| | 12 B | [link](https://huggingface.co/unsloth/gemma-3-12b-pt) | [link](https://huggingface.co/unsloth/gemma-3-12b-pt-unsloth-bnb-4bit) | - Network accessline 705
| | 27 B | [link](https://huggingface.co/unsloth/gemma-3-27b-pt) | [link](https://huggingface.co/unsloth/gemma-3-27b-pt-unsloth-bnb-4bit) | - Network accessline 706
| **Gemma 2** | 2 B | [link](https://huggingface.co/unsloth/gemma-2-2b) | — | - Network accessline 707
| | 9 B | [link](https://huggingface.co/unsloth/gemma-2-9b) | — | - Network accessline 708
| | 27 B | [link](https://huggingface.co/unsloth/gemma-2-27b) | — | - Network accessline 712
| Model | Variant | Base (16-bit) | Base (4-bit) | | ----------- | ---------------- | ----------------------------------- - Network accessline 713
| ----------- | ---------------- | ------------------------------------------------------------------ | --------------------------------------------------------------- | | **Mistral** | Small 24B 2501 | [link](https://huggingface.co/unslo - Network accessline 714
| **Mistral** | Small 24B 2501 | [link](https://huggingface.co/unsloth/Mistral-Small-24B-Base-2501) | — | - Network accessline 715
| | NeMo 12B 2407 | [link](https://huggingface.co/unsloth/Mistral-Nemo-Base-2407) | — | - Network accessline 716
| | 7B v0.3 | [link](https://huggingface.co/unsloth/mistral-7b-v0.3) | [link](https://huggingface.co/unsloth/mistral-7b-v0.3-bnb-4bit) | - Network accessline 717
| | 7B v0.2 | [link](https://huggingface.co/unsloth/mistral-7b-v0.2) | [link](https://huggingface.co/unsloth/mistral-7b-v0.2-bnb-4bit) | - Network accessline 718
| | Pixtral 12B 2409 | [link](https://huggingface.co/unsloth/Pixtral-12B-Base-2409) | — | - Network accessline 722
| Model | Variant | Base (16-bit) | Base (4-bit) | | -------------- | -------------- | ----------------- - Network accessline 723
| -------------- | -------------- | ---------------------------------------------------------------- | --------------------------------------------------------------------------------- | | **TinyLlama** | 1.1 B (Base) | [link](https://hu - Network accessline 724
| **TinyLlama** | 1.1 B (Base) | [link](https://huggingface.co/unsloth/tinyllama) | [link](https://huggingface.co/unsloth/tinyllama-bnb-4bit) | - Network accessline 725
| **Orpheus-3b** | 0.1-pretrained | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained) | [link](https://huggingface.co/unsloth/orpheus-3b-0.1-pretrained-unsloth-bnb-4bit) | - Network accessline 749
Docker might be the easiest way for Windows users to get started with Unsloth as there is no setup needed or dependency issues. [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For [Blackwell - Network accessline 751
For installation instructions, please follow our [Docker guide](https://docs.unsloth.ai/new/how-to-fine-tune-llms-with-unsloth-and-docker), otherwise here is a quickstart guide: - Network accessline 758
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other). Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/ins - Dangerous shell operationline 761
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 770
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. - Network accessline 774
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. Access the `unsloth-notebooks` tabs to see Unsloth notebooks. - Network accessline 779
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 793
You should install the latest version of your GPUs driver. Download drivers here: [NVIDIA GPU Drive](https://www.nvidia.com/Download/index.aspx) - Network accessline 801
* Launch the Installer here: [Visual Studio Community Edition](https://visualstudio.microsoft.com/vs/community/) - Network accessline 825
Follow the instructions to install [CUDA Toolkit](https://developer.nvidia.com/cuda-toolkit-archive). - Network accessline 827
Then install Miniconda (which has Python) here: [https://www.anaconda.com/docs/getting-started/miniconda/install](https://www.anaconda.com/docs/getting-started/miniconda/install#quickstart-install-instructions) - Network accessline 833
You will need the correct version of PyTorch that is compatible with your CUDA drivers, so make sure to select them carefully. [Install PyTorch](https://pytorch.org/get-started/locally/) - Network accessline 850
* Install Triton from this Windows fork and follow the instructions [here](https://github.com/woct0rdho/triton-windows) (be aware that the Windows fork requires PyTorch >= 2.4 and CUDA 12) - Network accessline 857
1. Install `torch` and `triton`. Go to <https://pytorch.org> to install it. For example `pip install torch torchvision torchaudio triton` - Network accessline 858
2. Confirm if CUDA is installated correctly. Try `nvcc`. If that fails, you need to install `cudatoolkit` or CUDA drivers. 3. Install `xformers` manually. You can try installing `vllm` and seeing if `vllm` succeeds. Check if `xformers` succ - Network accessline 859
3. Install `xformers` manually. You can try installing `vllm` and seeing if `vllm` succeeds. Check if `xformers` succeeded with `python -m xformers.info` Go to <https://github.com/facebookresearch/xformers>. Another option is to install `fl - Network accessline 860
4. Double check that your versions of Python, CUDA, CUDNN, `torch`, `triton`, and `xformers` are compatible with one another. The [PyTorch Compatibility Matrix](https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-m - Network accessline 867
1. **Install NVIDIA CUDA Toolkit**: * Download and install the appropriate version of the **NVIDIA CUDA Toolkit** from [CUDA Downloads](https://developer.nvidia.com/cuda-downloads). - Network accessline 868
* Download and install the appropriate version of the **NVIDIA CUDA Toolkit** from [CUDA Downloads](https://developer.nvidia.com/cuda-downloads). - Network accessline 870
* **Note**: No additional setup is required after installation for Unsloth. 2. **Install Microsoft C++ Build Tools**: * Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.mic - Network accessline 871
2. **Install Microsoft C++ Build Tools**: * Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.microsoft.com/visual-cpp-build-tools/). * During installation, select the ** - Network accessline 872
* Download and install **Microsoft Build Tools for Visual Studio** from the [official website](https://visualstudio.microsoft.com/visual-cpp-build-tools/). - Network accessline 886
* Verify: Open a new terminal and type `cl`. It should show version info. 4. **Install Conda** 1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) - Network accessline 887
4. **Install Conda** 1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) 2. Follow installation instruction from the website - Network accessline 888
1. Download and install **Miniconda** from the [official website](https://docs.anaconda.com/miniconda/install/#quick-command-line-install) - Network accessline 894
1. **Download the** [**unsloth\_windows.ps1**](https://github.com/unslothai/notebooks/blob/main/unsloth_windows.ps1) **PowerShell script by going through this link**. - Network accessline 911
1. Install python though [Python's official site](https://www.python.org/downloads/windows/). - Network accessline 958
pip install "unsloth[windows] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 1014
{% hint style="info" %} Please see <https://docs.unsloth.ai/basics/deepseek-r1-0528-how-to-run-locally> (May 28th 2025 update) to learn on how to run DeepSeek faster and more efficiently! - Network accessline 1015
Please see <https://docs.unsloth.ai/basics/deepseek-r1-0528-how-to-run-locally> (May 28th 2025 update) to learn on how to run DeepSeek faster and more efficiently! - Network accessline 1022
<table data-full-width="true"><thead><tr><th>MoE Bits</th><th>Type</th><th>Disk Size</th><th>Accuracy</th><th>Link</th><th>Details</th></tr></thead><tbody><tr><td>1.78bit</td><td>IQ1_S</td><td><strong>173GB</strong></td><td>Ok</td><td><a hr - Network accessline 1030
According to [DeepSeek](https://huggingface.co/deepseek-ai/DeepSeek-V3-0324), these are the recommended settings for inference: - Network accessline 1032
* <mark style="background-color:blue;">**Temperature of 0.3**</mark> (Maybe 0.0 for coding as [seen here](https://api-docs.deepseek.com/quick_start/parameter_settings)) - Network accessline 1041
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 1047
2. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose `UD-IQ1_S`(dynamic 1.78bit quant) or other quantized versions like `Q4_K_M` . <mark style="background-color:green;">**I recommend using - Network accessline 1055
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1056
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1057
git clone https://github.com/ggml-org/llama.cpp - Network accessline 1081
> **Try QAT with our free** [**Qwen3 (4B) notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)_Instruct-QAT.ipynb) - Network accessline 1096
[Credential-related source omitted] - Network accessline 1100
Dequantizing back to 16bits simply does the reverse operation by `float16(qW) / a` . Post-training quantization (PTQ) can greatly reduce storage and inference costs, but quite often degrades accuracy when representing high-precision values - Network accessline 1104
[Credential-related source omitted] - Network accessline 1106
To enable smarter quantization, we collaborated with the [TorchAO](https://github.com/pytorch/ao) team to add **Quantization-Aware Training (QAT)** directly inside of Unsloth - so now you can fine-tune models in Unsloth and then export them - Network accessline 1116
[Credential-related source omitted] - Network accessline 1176
Qwen released 2507 (July 2025) updates for their [Qwen3](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune) 4B, 30B and 235B models, introducing both "thinking" and "non-thinking" variants. The non-thinking '**Qwen3-30B-A3B-Inst - Network accessline 1180
[Unsloth](https://github.com/unslothai/unsloth) also now supports fine-tuning and [Reinforcement Learning (RL)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) of Qwen3-2507 models — 2x faster, with 70% less VRAM, and 8 - Network accessline 1184
**Unsloth** [**Dynamic 2.0**](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) **GGUFs:** - Network accessline 1186
| Model | GGUFs to run: | | ------------------------ | ---------------------- - Network accessline 1187
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Qwen3-**4B-2507** | [Instruct](https://hug - Network accessline 1188
| Qwen3-**4B-2507** | [Instruct](https://huggingface.co/unsloth/Qwen3-4B-Instruct-2507-GGUF) • [Thinking ](https://huggingface.co/unsloth/Qwen3-4B-Thinking-2507-GGUF) | - Network accessline 1189
| Qwen3-**30B-A3B**-2507 | [Instruct](#llama.cpp-run-qwen3-30b-a3b-instruct-2507-tutorial) • [Thinking](https://huggingface.co/unsloth/Qwen3-30B-A3B-Thinking-2507-GGUF) | - Network accessline 1190
| Qwen3-**235B-A22B**-2507 | [Instruct](https://huggingface.co/unsloth/Qwen3-235B-A22B-Instruct-2507-GGUF) • [Thinking](https://huggingface.co/unsloth/Qwen3-235B-A22B-Thinking-2507-GGUF) | - Network accessline 1240
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 1261
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 1263
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 1263
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 1273
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1274
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1275
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 1331
[Credential-related source omitted] - Access to secretsline 1352
[Credential-related source omitted] - Network accessline 1395
curl -X POST http://localhost:8000/v1/load_lora_adapter \ - Network accessline 1405
curl -X POST http://localhost:8000/v1/unload_lora_adapter \ - Network accessline 1436
* E.g. For image-based training, select a vision model such as *Llama 3.2 Vision*. For code datasets, opt for a specialized model like *Qwen Coder 2.5*. * **Licensing and Requirements**: Different models may have specific licensing terms an - Network accessline 1437
* **Licensing and Requirements**: Different models may have specific licensing terms and [system requirements](https://docs.unsloth.ai/beginner-start-here/unsloth-requirements#system-requirements). Be sure to review these carefully to avoid - Network accessline 1442
* Use our [VRAM guideline](https://docs.unsloth.ai/beginner-start-here/unsloth-requirements#approximate-vram-requirements-based-on-model-parameters) to determine the VRAM requirements for the model you’re considering. - Network accessline 1448
* We recommend using the latest model for the best performance and capabilities. For instance, as of January 2025, the leading 70B model is *Llama 3.3*. * You can stay up to date by exploring our [model catalog](https://docs.unsloth.ai/get- - Network accessline 1449
* You can stay up to date by exploring our [model catalog](https://docs.unsloth.ai/get-started/all-our-models) to find the newest and relevant options. - Network accessline 1464
Base models, on the other hand, are the original pre-trained versions without instruction fine-tuning. These are specifically designed for customization through fine-tuning, allowing you to adapt them to your unique needs. Base models are c - Network accessline 1471
* **300–1,000 Rows of High-Quality Data**: With a medium-sized, high-quality dataset, fine-tuning the base or instruct model are both viable options. * **Less than 300 Rows**: For smaller datasets, the instruct model is typically the better - Network accessline 1473
* For information how how big your dataset should be, [see here](https://docs.unsloth.ai/get-started/datasets-guide#how-big-should-my-dataset-be) - Network accessline 1481
* Model names ending in **`unsloth-bnb-4bit`** indicate they are [**Unsloth dynamic 4-bit**](https://unsloth.ai/blog/dynamic-4bit) **quants**. These models consume slightly more VRAM than standard BitsAndBytes 4-bit models but offer signifi - Network accessline 1507
[Credential-related source omitted] - Network accessline 1538
* You can use our [Magistral-2509 Kaggle notebook](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/magistral-how-to-run-and-fine-tune#fine-tuning-magistral-with-unsloth) as an example which utilizes multi-GPU Unsloth - Network accessline 1551
* [unsloth-5090-multiple](https://github.com/thad0ctor/unsloth-5090-multiple): A fork enabling Unsloth to run efficiently on multi-GPU systems, particularly for the NVIDIA [RTX 5090](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blac - Network accessline 1552
* [opensloth](https://github.com/anhvth/opensloth): Unsloth with support for multi-GPU training including experimental features. - Network accessline 1554
**Stay tuned for our official announcement!**\ For more details, check out our ongoing [Pull Request](https://github.com/unslothai/unsloth/issues/2435) discussing multi-GPU support. - Network accessline 1555
For more details, check out our ongoing [Pull Request](https://github.com/unslothai/unsloth/issues/2435) discussing multi-GPU support. - Network accessline 1581
If you're a beginner, here might be the first questions you'll ask before your first fine-tune. You can also always ask our community by joining our [Reddit page](https://www.reddit.com/r/unsloth/). - Network accessline 1585
[Credential-related source omitted] - Network accessline 1593
uv pip install -U vllm --pre --extra-index-url https://wheels.vllm.ai/nightly - Network accessline 1661
Unsloth supports natively 2x faster inference. For our inference only notebook, click [here](https://colab.research.google.com/drive/1aqlNQi7MMJbynFDyOQteD2t0yVfjb9Zh?usp=sharing). - Network accessline 1679
Sometimes when you execute a cell [this error](https://github.com/googlecolab/colabtools/issues/3409) can appear. To solve this, in a new cell, run the below: - Network accessline 1700
{% hint style="success" %} Please see <https://docs.unsloth.ai/basics/deepseek-r1-0528-how-to-run-locally> for an updated DeepSeek R1-0528 (May 28th 2025 version) - Network accessline 1701
Please see <https://docs.unsloth.ai/basics/deepseek-r1-0528-how-to-run-locally> for an updated DeepSeek R1-0528 (May 28th 2025 version) - Network accessline 1706
1. Do not forget about `<|User|>` and `<|Assistant|>` tokens! - Or use a chat template formatter 2. Obtain the latest `llama.cpp` at: [github.com/ggerganov/llama.cpp](https://github.com/ggerganov/llama.cpp). You can follow the build instruc - Network accessline 1707
2. Obtain the latest `llama.cpp` at: [github.com/ggerganov/llama.cpp](https://github.com/ggerganov/llama.cpp). You can follow the build instructions below as well: - Network accessline 1716
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1717
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 1718
git clone https://github.com/ggerganov/llama.cpp - Network accessline 1770
[Credential-related source omitted] - Network accessline 1776
[Credential-related source omitted] - Network accessline 1799
[Credential-related source omitted] - Network accessline 1801
This means the memory space for inference and training can in theory be re-used, since inference and training are separate modes - this is where [vLLM's sleep mode feature](https://docs.vllm.ai/en/latest/features/sleep_mode.html#rlhf-weight - Network accessline 1828
[Credential-related source omitted] - Network accessline 1834
[Credential-related source omitted] - Network accessline 1838
<table data-full-width="true"><thead><tr><th>Experiments</th><th>Config</th><th>Status</th><th>GPU Memory usage</th><th>Comments</th></tr></thead><tbody><tr><td><ol><li><a href="https://colab.research.google.com/drive/18CssBY5C0mStnLvu2Hlt4 - Network accessline 1850
[Credential-related source omitted] - Network accessline 1856
[Credential-related source omitted] - Network accessline 1860
We now select better compilation flags and reduce compile times by 50% or more. We also managed to dynamically patch any vLLM version to handle `gc.collect` better for backwards compatibility reasons, as inspired from this [vLLM pull reques - Network accessline 1866
All our GRPO notebooks have Unsloth Standby on by default and all optimizations! See <https://docs.unsloth.ai/get-started/unsloth-notebooks> for all our GRPO notebooks, or try the below: - Network accessline 1868
* [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **-** Advanced GRPO LoRA - Network accessline 1869
* [**DeepSeek-R1-0528-Qwen3 (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_\(8B\)_GRPO.ipynb) (for multilingual usecases) - Network accessline 1870
* [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 1871
* [Llama 3.2 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Advanced_Llama3_2_\(3B\)_GRPO_LoRA.ipynb) - Advanced GRPO LoRA - Network accessline 1872
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 1873
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\)-GRPO.ipynb) - Network accessline 1874
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) - Network accessline 1875
* [Qwen2.5 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_\(3B\)-GRPO.ipynb) - Access to secretsline 1882
[Credential-related source omitted] - Access to secretsline 1899
[Credential-related source omitted] - Network accessline 2027
{% hint style="warning" %} If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better rew - Network accessline 2028
If you're having issues with your GRPO model not learning, we'd highly recommend to use our [Advanced GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-notebooks) as it has a much better reward function and you should - Network accessline 2033
[Credential-related source omitted] - Network accessline 2045
[Credential-related source omitted] - Network accessline 2049
You can then save your model to GGUF, Ollama etc. by following our [guide here](https://docs.unsloth.ai/fine-tuning-llms-guide#id-7.-running--saving-the-model). - Network accessline 2051
[Credential-related source omitted] - Network accessline 2060
We have multiple options for saving your fine-tuned model, but we’ll focus on the easiest and most popular approaches which you can read more about [here](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 2095
Install the latest PyTorch, TorchAO, Xformers from <https://pytorch.org/> - Network accessline 2113
And that's it! Try some examples in our [**Unsloth Notebooks**](https://docs.unsloth.ai/get-started/unsloth-notebooks) page! - Network accessline 2117
You can use our :ledger:[gpt-oss RL auto win 2048](https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_Reinforcement_Learning_2048_Game_BF16.ipynb) example on a MI300X (192GB) GPU. The goal is to play the 2048 game automatic - Network accessline 2122
[Credential-related source omitted] - Network accessline 2130
[Credential-related source omitted] - Network accessline 2137
[Credential-related source omitted] - Network accessline 2139
You can also use our :ledger:[automatic kernel gen RL notebook](https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_GRPO_BF16.ipynb) also with gpt-oss to auto create matrix multiplication kernels in Python. The notebook also - Network accessline 2159
[Credential-related source omitted] - Network accessline 2169
AMD GPUs also need the bitsandbytes `blocksize` to be 128 and not 64 - this also means our pre-quantized models (for example [unsloth/Llama-3.2-1B-Instruct-unsloth-bnb-4bit](https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-bnb-4bit)) fr - Network accessline 2183
pip install --upgrade torch==2.8.0 pytorch-triton-rocm torchvision torchaudio torchao==0.13.0 xformers --index-url https://download.pytorch.org/whl/rocm6.4 - Network accessline 2188
pip install --no-deps unsloth unsloth-zoo pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 2189
pip install --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 2190
pip install "unsloth[amd] @ git+https://github.com/unslothai/unsloth" - Network accessline 2394
[Credential-related source omitted] - Network accessline 2428
bash NOTEBOOK_URL="https://raw.githubusercontent.com/unslothai/notebooks/refs/heads/main/nb/gpt_oss_(20B)_Reinforcement_Learning_2048_Game_DGX_Spark.ipynb" wget -O "gpt_oss_20B_RL_2048_Game.ipynb" "$NOTEBOOK_URL" - Network accessline 2429
NOTEBOOK_URL="https://raw.githubusercontent.com/unslothai/notebooks/refs/heads/main/nb/gpt_oss_(20B)_Reinforcement_Learning_2048_Game_DGX_Spark.ipynb" - Network accessline 2430
wget -O "gpt_oss_20B_RL_2048_Game.ipynb" "$NOTEBOOK_URL" - Network accessline 2435
[Credential-related source omitted] - Network accessline 2437
Don't forget Unsloth also allows you to [save and run](https://docs.unsloth.ai/basics/running-and-saving-models) your models after fine-tuning so you can locally deploy them directly on your DGX Spark after. - Network accessline 2441
Many thanks to [Lakshmi Ramesh](https://www.linkedin.com/in/rlakshmi24/) and [Barath Anandan](https://www.linkedin.com/in/barathsa/) from NVIDIA for helping Unsloth’s DGX Spark launch and building the Docker image. - Network accessline 2447
[Credential-related source omitted] - Network accessline 2451
Thanks to Tim from [AnythingLLM](https://github.com/Mintplex-Labs/anything-llm) for providing a great fine-tuning tutorial with Unsloth on DGX Spark: - Network accessline 2453
{% embed url="<https://www.youtube.com/watch?t=962s&v=zs-J9sKxvoM>" %} - Network accessline 2471
[Credential-related source omitted] - Network accessline 2478
Inside the container, start Jupyter and run the required notebook. You can use the Reinforcement Learning gpt-oss 20b to win 2048 [notebook here](https://github.com/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_Reinforcement_Learning_204 - Network accessline 2480
[Credential-related source omitted] - Network accessline 2504
</strong> "unsloth/gpt-oss-20b", # 20B model using MXFP4 format "unsloth/gpt-oss-120b", ] # More models at https://huggingface.co/unsloth - Network accessline 2506
] # More models at https://huggingface.co/unsloth - Network accessline 2523
Now it's time to adjust your training hyperparameters. For a deeper dive into how, when, and what to tune, check out our [detailed hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 2525
{% hint style="info" %} To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high. - Network accessline 2526
To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high.  - Network accessline 2531
For this example, we will use the [`HuggingFaceH4/Multilingual-Thinking`](https://huggingface.co/datasets/HuggingFaceH4/Multilingual-Thinking). This dataset contains chain-of-thought reasoning examples derived from user questions translated - Network accessline 2541
[Credential-related source omitted] - Network accessline 2543
One unique feature of gpt-oss is its use of the [**OpenAI Harmony format**](https://github.com/openai/harmony)**,** which supports structured conversations, reasoning output, and tool calling. This format includes tags such as `<|start|>` , - Network accessline 2545
{% hint style="info" %} 🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 2546
🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 2549
Feel free to adapt the prompt and structure to suit your own dataset or use-case. For more guidance, refer to our [dataset guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide). - Network accessline 2552
We've pre-selected training hyperparameters for optimal results. However, you can modify them based on your specific use case. Refer to our [hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparamet - Network accessline 2558
[Credential-related source omitted] - Network accessline 2569
[Credential-related source omitted] - Network accessline 2586
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 2599
As always, feel free to drop by our [Discord](https://discord.com/invite/unsloth) or [Reddit](https://www.reddit.com/r/unsloth/) if you need any help. - Network accessline 2605
Yes you can now [save/export your gpt-oss fine-tuned](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training) model using Unsloth's new update! - Network accessline 2617
Yes! Unsloth now supports RL for gpt-oss with GRPO/GSPO. We made it work on a free Kaggle notebook and achieved the fastest inference for RL. [Read more here](https://docs.unsloth.ai/new/gpt-oss-reinforcement-learning) - Network accessline 2619
***Acknowledgements:** A huge thank you to* [*Eyera*](https://huggingface.co/Orenguteng) *for contributing to this guide!* - Network accessline 2686
* The [text completion notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_\(7B\)-Text_Completion.ipynb) is for continued pretraining/raw text. - Network accessline 2687
* The [continued pretraining notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-CPT.ipynb) is for learning another language. - Network accessline 2689
You can read more about continued pretraining and our release in our [blog post](https://unsloth.ai/blog/contpretraining). - Network accessline 2996
1. We find using lower KV cache quantization (4bit) seems to degrade generation quality via empirical tests - more tests need to be done, but we suggest using `q8_0` cache quantization. The goal of quantization is to support longer context - Network accessline 2997
2. We found the `down_proj` in this model to be extremely sensitive to quantitation. We had to redo some of our dyanmic quants which used 2bits for `down_proj` and now we use 3bits as the minimum for all these matrices. 3. Using `llama.cpp` - Network accessline 2998
3. Using `llama.cpp` 's Flash Attention backend does result in somewhat faster decoding speeds. Use `-DGGML_CUDA_FA_ALL_QUANTS=ON` when compiling. Note it's also best to set your CUDA architecture as found in <https://developer.nvidia.com/c - Network accessline 3023
Kimi-K2-Instruct-0905 the new version of K2 achieves SOTA performance in knowledge, reasoning, coding, and agentic tasks. The full 1T parameter model from Moonshot AI requires 1.09TB of disk space, while the quantized **Unsloth Dynamic 1.8- - Network accessline 3025
You can now run **Kimi-K2-Instruct-0905** with our new GGUFs. Use our same settings below but ensure you change the model name from 'Kimi-K2-Instruct' to 'Kimi-K2-Instruct-0905': [K2-0905 GGUFs](https://huggingface.co/unsloth/Kimi-K2-Instru - Network accessline 3027
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run quantized LLMs with minimal accuracy loss. - Network accessline 3029
<a href="https://docs.unsloth.ai/basics/kimi-k2-how-to-run-locally#run-kimi-k2-tutorials" class="button primary">Run in llama.cpp</a> - Network accessline 3053
According to [Moonshot AI](https://huggingface.co/moonshotai/Kimi-K2-Instruct), these are the recommended settings for Kimi K2 inference: - Network accessline 3078
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/Kimi-K2-Instruct-GGUF/tree/main/UD-TQ1_0">U - Network accessline 3080
We've also uploaded versions in [BF16 format](https://huggingface.co/unsloth/Kimi-K2-Instruct-BF16). - Network accessline 3084
{% hint style="success" %} You can now use the latest update of [llama.cpp](https://github.com/ggml-org/llama.cpp) to run the model: - Network accessline 3085
You can now use the latest update of [llama.cpp](https://github.com/ggml-org/llama.cpp) to run the model: - Network accessline 3090
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 3106
3. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose `UD-TQ1_0`(dynamic 1.8bit quant) or other quantized versions like `Q2_K_XL` . We <mark style="background-color:green;">**recommend using - Network accessline 3146
Also see our GitHub repo for our notebooks: [github.com/unslothai/notebooks](https://github.com/unslothai/notebooks/) - Network accessline 3152
* [**gpt-oss (20b)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) • [Inference](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\) - Network accessline 3153
* [**DeepSeek-OCR**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) **- new** - Network accessline 3154
* [Qwen3 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) • [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL - Network accessline 3155
* [**Qwen3-2507-4B**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) • [Thinking](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-Thinking.ipynb) • [Instruct](https://colab.r - Network accessline 3156
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) • [Text](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversation - Network accessline 3157
* [IBM Granite-4.0-H](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) - new - Network accessline 3158
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) • [Text](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) • [Vision](https://colab - Network accessline 3159
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb)  - Network accessline 3160
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-Alpaca.ipynb) • [Llama 3.2 (1B + 3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3 - Network accessline 3164
* [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) (automatic kernels creation) - new - Network accessline 3165
* [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt_oss_\(20B\)_Reinforcement_Learning_2048_Game.ipynb) (auto win 2048 game) - new - Network accessline 3166
* [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Vision **GSPO** - new - Network accessline 3167
* [Qwen3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) **-** Advanced GRPO LoRA - Network accessline 3168
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 3169
* [**DeepSeek-R1-0528-Qwen3 (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/DeepSeek_R1_0528_Qwen3_\(8B\)_GRPO.ipynb) (for multilingual usecase) - Network accessline 3170
* [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 3171
* [Llama 3.2 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Advanced_Llama3_2_\(3B\)_GRPO_LoRA.ipynb) - Advanced GRPO LoRA - Network accessline 3172
* [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 3173
* [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\)-GRPO.ipynb)  - Network accessline 3174
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) - Network accessline 3178
* [Sesame-CSM (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Sesame_CSM_\(1B\)-TTS.ipynb) - new - Network accessline 3179
* [Orpheus-TTS (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Orpheus_\(3B\)-TTS.ipynb) - Network accessline 3180
* [Whisper Large V3](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Whisper.ipynb) - Speech-to-Text (STT) - Network accessline 3181
* [Llasa-TTS (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llasa_TTS_\(1B\).ipynb) - Network accessline 3182
* [Spark-TTS (0.5B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Spark_TTS_\(0_5B\).ipynb) - Network accessline 3183
* [Oute-TTS (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Oute_TTS_\(1B\).ipynb) - Network accessline 3187
* [Whisper-Large-V3](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Whisper.ipynb) - Network accessline 3188
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Audio.ipynb) - Audio - Network accessline 3192
* [**Qwen3-VL (8B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision.ipynb) **- new** - Network accessline 3193
* [**DeepSeek-OCR**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) **- new** - Network accessline 3194
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - vision - Network accessline 3195
* [Gemma 3n (E4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - vision - Network accessline 3196
* [Llama 3.2 Vision (11B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb) - Network accessline 3197
* [Qwen2.5-VL (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_VL_\(7B\)-Vision.ipynb) - Network accessline 3198
* [Pixtral (12B) 2409](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Pixtral_\(12B\)-Vision.ipynb) - Network accessline 3199
* [Qwen3-VL](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 3200
* [Qwen2.5-VL](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_GRPO.ipynb) - Vision GSPO - Network accessline 3201
* [Gemma 3 (4B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Vision GSPO - new - Network accessline 3211
* [gpt-oss-120b ](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(120B\)_A100-Fine-tuning.ipynb)- new - Network accessline 3212
* [Qwen3 (32B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(32B\)_A100-Reasoning-Conversational.ipynb) - new - Network accessline 3213
* [Llama 3.3 (70B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.3_\(70B\)_A100-Conversational.ipynb) - new - Network accessline 3214
* [Gemma 3 (27B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(27B\)_A100-Conversational.ipynb) - new - Network accessline 3218
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 3219
* [**Automatic Kernel Creation**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) with RL **- new** - Network accessline 3220
* [**ModernBERT-large**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/bert_classification.ipynb) **- new** as of Aug 19 - Network accessline 3221
* [**Synthetic Data Generation Llama 3.2 (3B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Meta_Synthetic_Data_Llama3_2_\(3B\).ipynb) - new - Network accessline 3222
* [**Tool Calling**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb) **- new** - Network accessline 3223
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 3224
* [Mistral v0.3 Instruct (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 3225
* [Ollama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) - Network accessline 3226
* [ORPO](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-ORPO.ipynb) - Network accessline 3227
* [Continued Pretraining](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 3228
* [DPO Zephyr](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 3229
* [***Inference only***](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\(8B\)-Inference.ipynb) - Network accessline 3230
* [Llama 3 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Alpaca.ipynb) - Network accessline 3234
* [**Customer support agent**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Granite4.0.ipynb) **- new** - Network accessline 3235
* [**Automatic Kernel Creation**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) with RL **- new** - Network accessline 3236
* [DPO Zephyr](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 3237
* [**BERT - Text Classification**](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification.ipynb) **- new as of Aug 19** - Network accessline 3238
* [Ollama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) - Network accessline 3239
* [**Tool Calling**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb) **- new** - Network accessline 3240
* [Continued Pretraining (CPT)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 3241
* [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) by Flail - Network accessline 3242
* [KTO](https://colab.research.google.com/drive/1MRgGtLWuZX4ypSfGguFgC-IblTvO2ivM?usp=sharing) by Jeffrey - Network accessline 3243
* [Inference chat UI](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Unsloth_Studio.ipynb) - Network accessline 3244
* [Conversational](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 3245
* [ChatML](https://colab.research.google.com/drive/15F1xyn8497_dUbxZP4zWmPZ3PJx1Oymv?usp=sharing) - Network accessline 3246
* [Text Completion](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_\(7B\)-Text_Completion.ipynb) - Network accessline 3250
* [Qwen2.5 (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_\(3B\)-GRPO.ipynb) - Network accessline 3251
* [Gemma 2 (9B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma2_\(9B\)-Alpaca.ipynb) - Network accessline 3252
* [Mistral NeMo (12B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_Nemo_\(12B\)-Alpaca.ipynb) - Network accessline 3253
* [Phi-3.5 (mini)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_3.5_Mini-Conversational.ipynb) - Network accessline 3254
* [Phi-3 (medium)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_3_Medium-Conversational.ipynb) - Network accessline 3255
* [Gemma 2 (2B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma2_\(2B\)-Alpaca.ipynb) - Network accessline 3256
* [Qwen 2.5 Coder (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_Coder_\(14B\)-Conversational.ipynb) - Network accessline 3257
* [Mistral Small (22B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_Small_\(22B\)-Alpaca.ipynb) - Network accessline 3258
* [TinyLlama](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/TinyLlama_\(1.1B\)-Alpaca.ipynb) - Network accessline 3259
* [CodeGemma (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/CodeGemma_\(7B\)-Conversational.ipynb) - Network accessline 3260
* [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Alpaca.ipynb) - Network accessline 3261
* [Qwen2 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_\(7B\)-Alpaca.ipynb) - Network accessline 3265
* [**gpt-oss (20B)**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-gpt-oss-\(20B\)-Fine-tuning.ipynb\&accelerator=nvidiaTeslaT4) **- new** - Network accessline 3266
* [Gemma 3n (E4B)](https://www.kaggle.com/code/danielhanchen/gemma-3n-4b-multimodal-finetuning-inference) - Network accessline 3267
* [Qwen3 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen3_\(14B\).ipynb) - Network accessline 3268
* [Magistral-2509 (24B)](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Magistral_\(24B\)-Reasoning-Conversational.ipynb\&accelerator=nvidiaTeslaT4) - new - Network accessline 3269
* [Gemma 3 (4B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma3_\(4B\).ipynb) - Network accessline 3270
* [Phi-4 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Phi_4-Conversational.ipynb) - Network accessline 3271
* [Llama 3.1 (8B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-Alpaca.ipynb) - Network accessline 3272
* [Llama 3.2 (1B + 3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 3273
* [Qwen 2.5 (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_\(7B\)-Alpaca.ipynb) - Network accessline 3277
* [**Qwen2.5-VL**](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen2_5_7B_VL_GRPO.ipynb\&accelerator=nvidiaTeslaT4) - Vision GRPO - new - Network accessline 3278
* [Qwen3 (4B)](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen3_\(4B\)-GRPO.ipynb\&accelerator=nvidiaTeslaT4) - Network accessline 3279
* [Gemma 3 (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma3_\(1B\)-GRPO.ipynb) - Network accessline 3280
* [Llama 3.1 (8B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-GRPO.ipynb) - Network accessline 3281
* [Phi-4 (14B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Phi_4_\(14B\)-GRPO.ipynb) - Network accessline 3282
* [Qwen 2.5 (3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_\(3B\)-GRPO.ipynb) - Network accessline 3286
* [Sesame-CSM (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Sesame_CSM_\(1B\)-TTS.ipynb) - Network accessline 3287
* [Orpheus-TTS (3B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Orpheus_\(3B\)-TTS.ipynb) - Network accessline 3288
* [Whisper Large V3](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Whisper.ipynb) – Speech-to-Text - Network accessline 3289
* [Llasa-TTS (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llasa_TTS_\(1B\).ipynb) - Network accessline 3290
* [Spark-TTS (0.5B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Spark_TTS_\(0_5B\).ipynb) - Network accessline 3291
* [Oute-TTS (1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Oute_TTS_\(1B\).ipynb) - Network accessline 3295
* [Llama 3.2 Vision (11B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.2_\(11B\)-Vision.ipynb) - Network accessline 3296
* [Qwen 2.5-VL (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_VL_\(7B\)-Vision.ipynb) - Network accessline 3297
* [Pixtral (12B) 2409](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Pixtral_\(12B\)-Vision.ipynb) - Network accessline 3301
* [Tool Calling](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/notebooks/blob/main/nb/Kaggle-Qwen2.5_Coder_\(1.5B\)-Tool_Calling.ipynb\&accelerator=nvidiaTeslaT4) - Network accessline 3302
* [ORPO](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3_\(8B\)-ORPO.ipynb) - Network accessline 3303
* [Continued Pretraining](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_v0.3_\(7B\)-CPT.ipynb) - Network accessline 3304
* [DPO Zephyr](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Zephyr_\(7B\)-DPO.ipynb) - Network accessline 3305
* [Inference only](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3.1_\(8B\)-Inference.ipynb) - Network accessline 3306
* [Ollama](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Llama3_\(8B\)-Ollama.ipynb) - Network accessline 3307
* [Text Completion](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_\(7B\)-Text_Completion.ipynb) - Network accessline 3308
* [CodeForces-cot (Reasoning)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-CodeForces-cot-Finetune_for_Reasoning_on_CodeForces.ipynb) - Network accessline 3309
* [Unsloth Studio (chat UI)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Unsloth_Studio.ipynb) - Network accessline 3313
* [Gemma 2 (9B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma2_\(9B\)-Alpaca.ipynb) - Network accessline 3314
* [Gemma 2 (2B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Gemma2_\(2B\)-Alpaca.ipynb) - Network accessline 3315
* [CodeGemma (7B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-CodeGemma_\(7B\)-Conversational.ipynb) - Network accessline 3316
* [Mistral NeMo (12B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_Nemo_\(12B\)-Alpaca.ipynb) - Network accessline 3317
* [Mistral Small (22B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-Mistral_Small_\(22B\)-Alpaca.ipynb) - Network accessline 3318
* [TinyLlama (1.1B)](https://www.kaggle.com/notebooks/welcome?src=https%3A%2F%2Fgithub.com%2Funslothai/notebooks/blob/main/nb/Kaggle-TinyLlama_\(1.1B\)-Alpaca.ipynb) - Network accessline 3320
To view a complete list of all our Kaggle notebooks, [click here](https://github.com/unslothai/notebooks#-kaggle-notebooks). - Network accessline 3322
{% hint style="info" %} Feel free to contribute to the notebooks by visiting our [repo](https://github.com/unslothai/notebooks)! - Network accessline 3323
Feel free to contribute to the notebooks by visiting our [repo](https://github.com/unslothai/notebooks)! - Network accessline 3334
{% hint style="warning" %} Only use Conda if you have it. If not, use [Pip](https://docs.unsloth.ai/get-started/install-and-update/pip-install). - Network accessline 3335
Only use Conda if you have it. If not, use [Pip](https://docs.unsloth.ai/get-started/install-and-update/pip-install). - Network accessline 3340
If you're looking to install Conda in a Linux environment, [read here](https://docs.anaconda.com/miniconda/), or run the below: - Network accessline 3358
mkdir -p ~/miniconda3 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh - Network accessline 3359
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh - Dangerous shell operationline 3361
rm -rf ~/miniconda3/miniconda.sh - Network accessline 3392
You can also run your fine-tuned models by using [Unsloth's 2x faster inference](https://docs.unsloth.ai/basics/running-and-saving-models/unsloth-inference). - Network accessline 3404
Unsloth now supports vision/multimodal RL with [Qwen3-VL](https://docs.unsloth.ai/models/qwen3-vl-how-to-run-and-fine-tune), [Gemma 3](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune) and more. Due to Unsloth's unique [weigh - Network accessline 3406
Unsloth can train Qwen3-VL-8B with GSPO/GRPO on a free Colab T4 GPU. Other VLMs work too, but may need larger GPUs. Gemma requires newer GPUs than T4 because vLLM [restricts to Bfloat16](https://docs.unsloth.ai/models/gemma-3-how-to-run-and - Network accessline 3408
* **Qwen-3 VL-8B** (vLLM inference)**:** [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision-GRPO.ipynb) - Network accessline 3409
* **Qwen-2.5 VL-7B** (vLLM inference)**:** [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_GRPO.ipynb) •[ Kaggle](https://www.kaggle.com/notebooks/welcome?src=https://github.com/unslothai/note - Network accessline 3410
* **Gemma-3-4B** (Unsloth inference): [Colab](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision-GRPO.ipynb) - Network accessline 3412
We have also added vLLM VLM integration into Unsloth natively, so all you have to do to use vLLM inference is enable the `fast_inference=True` flag when initializing the model. Special thanks to [Sinoué GAD](https://github.com/unslothai/uns - Network accessline 3414
This VLM support also integrates our latest update for even more memory efficient + faster RL including our [Standby feature](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/memory-efficient-rl#unsloth-standby), which un - Access to secretsline 3427
[Credential-related source omitted] - Network accessline 3454
<pre class="language-bash"><code class="lang-bash">pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 3455
<strong>pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 3460
'2025.1.5' is one of the previous old versions of Unsloth. Change it to a specific release listed on our [Github here](https://github.com/unslothai/unsloth/releases). - Access to secretsline 3510
[Credential-related source omitted] - Network accessline 3536
pip install ninja export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3537
export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive cd xformers && python setup.py install && cd .. - Network accessline 3538
git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3541
uv pip install unsloth bash curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env - Network accessline 3542
bash curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env bash - Dangerous shell operationline 3543
curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env - Network accessline 3543
curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env - Network accessline 3552
bash uv pip install -qqq \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 3553
uv pip install -qqq \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ "unsloth[base] @ git+https://github.com/unslothai/unsloth" - Network accessline 3554
"unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 3555
"unsloth[base] @ git+https://github.com/unslothai/unsloth" - Network accessline 3561
pip install ninja export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3562
export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive cd xformers && python setup.py install && cd .. - Network accessline 3563
git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3566
uv pip install -U transformers bash curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" - Network accessline 3567
bash curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" bash - Network accessline 3568
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" - Network accessline 3574
conda activate unsloth-blackwell bash pip install -U vllm --extra-index-url https://download.pytorch.org/whl/cu128 - Network accessline 3575
bash pip install -U vllm --extra-index-url https://download.pytorch.org/whl/cu128 bash - Network accessline 3576
pip install -U vllm --extra-index-url https://download.pytorch.org/whl/cu128 - Network accessline 3584
pip install ninja export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3585
export TORCH_CUDA_ARCH_LIST="12.0" git clone --depth=1 https://github.com/facebookresearch/xformers --recursive cd xformers && python setup.py install && cd .. - Network accessline 3586
git clone --depth=1 https://github.com/facebookresearch/xformers --recursive - Network accessline 3608
# Install xformers from source with optimized build flags pip install -v --no-build-isolation -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers - Network accessline 3609
pip install -v --no-build-isolation -U git+https://github.com/facebookresearch/xformers.git@main#egg=xformers - Network accessline 3622
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For Blackwell and 50-series GPUs, use this same image - no separate image needed. - Network accessline 3624
For installation instructions, please follow our [Unsloth Docker guide](https://docs.unsloth.ai/new/how-to-fine-tune-llms-with-unsloth-and-docker). - Network accessline 3664
Google’s Gemma 3n multimodal model handles image, audio, video, and text inputs. Available in 2B and 4B sizes, it supports 140 languages for text and multimodal tasks. You can now run and fine-tune **Gemma-3n-E4B** and **E2B** locally using - Network accessline 3666
> **Fine-tune Gemma 3n with our** [**free Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3N_\(4B\)-Conversational.ipynb) - Network accessline 3674
<table><thead><tr><th width="249">Dynamic 2.0 GGUF (text only)</th><th width="285">Dynamic 4-bit Instruct (to fine-tune)</th><th>16-bit Instruct</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/gemma-3n-E2B-it - Network accessline 3676
**See all our Gemma 3n uploads including base and more formats in** [**our collection here**](https://huggingface.co/collections/unsloth/gemma-3n-685d3874830e49e1c93f9339)**.** - Network accessline 3720
{% hint style="info" %} We would first like to thank [Xuan-Son Nguyen](https://x.com/ngxson) from Hugging Face, [Georgi Gerganov](https://x.com/ggerganov) from the llama.cpp team on making Gemma 3N work in llama.cpp! - Network accessline 3721
We would first like to thank [Xuan-Son Nguyen](https://x.com/ngxson) from Hugging Face, [Georgi Gerganov](https://x.com/ggerganov) from the llama.cpp team on making Gemma 3N work in llama.cpp! - Network accessline 3724
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Dangerous shell operationline 3745
ollama rm hf.co/unsloth/gemma-3n-E4B-it-GGUF:UD-Q4_K_XL - Network accessline 3752
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 3754
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 3754
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 3781
* It might also be because your inference engine adds an unnecessary "start of sequence" token (or the lack of thereof on the contrary) so ensure you check both hypotheses! * <mark style="background-color:green;">**Use our conversational no - Network accessline 3782
* <mark style="background-color:green;">**Use our conversational notebooks to force the chat template - this will fix most issues.**</mark> * Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/ - Network accessline 3783
* Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) - Network accessline 3784
* Gemma-3 4B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) - Network accessline 3785
* Llama-3.2 3B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 3786
* Phi-4 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb) - Network accessline 3787
* Mistral v0.3 7B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 3788
* **More notebooks in our** [**notebooks repo**](https://github.com/unslothai/notebooks)**.** - Network accessline 3806
RUN git clone --depth=1 https://github.com/facebookresearch/xformers --recursive && \ - Network accessline 3824
!uv pip install -qqq \ "torch>=2.8.0" "triton>=3.4.0" {install_numpy} \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 3825
"torch>=2.8.0" "triton>=3.4.0" {install_numpy} \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ "unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 3826
"unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 3827
"unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 3828
torchvision bitsandbytes \ git+https://github.com/huggingface/transformers \ git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 3829
git+https://github.com/huggingface/transformers \ - Network accessline 3830
git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 3835
We’ll load **`gpt-oss-20b`** using Unsloth's [linearized version](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#making-efficient-gpt-oss-fine-tuning-work) (as no other version will work for QLoRA fine-tuning). Configur - Network accessline 3862
* [GRPO notebooks](https://docs.unsloth.ai/unsloth-notebooks#grpo-reasoning-rl-notebooks) - Network accessline 3863
* [ORPO notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-ORPO.ipynb) - Network accessline 3864
* [DPO Zephyr notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Zephyr_\(7B\)-DPO.ipynb) - Network accessline 3865
* [KTO notebook](https://colab.research.google.com/drive/1MRgGtLWuZX4ypSfGguFgC-IblTvO2ivM?usp=sharing) - Network accessline 3866
* [SimPO notebook](https://colab.research.google.com/drive/1Hs5oQDovOay4mFA6Y9lQhVJ8TnbFLFh2?usp=sharing) - Network accessline 3868
We're also in 🤗Hugging Face's official docs! We're on the [SFT docs](https://huggingface.co/docs/trl/main/en/sft_trainer#accelerate-fine-tuning-2x-using-unsloth) and the [DPO docs](https://huggingface.co/docs/trl/main/en/dpo_trainer#acceler - Access to secretsline 3873
[Credential-related source omitted] - Network accessline 3905
Finetuned from [**Mistral-Small-3.1**](https://huggingface.co/unsloth/Mistral-Small-3.1-24B-Instruct-2503-GGUF), Devstral supports a 128k context window. Devstral Small 1.1 has improved performance, achieving a score of 53.6% performance on - Network accessline 3917
All Devstral uploads use our Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) methodology, delivering the best performance on 5-shot MMLU and KL Divergence benchmarks. This means, you can run and fine-tune qua - Network accessline 3921
| Devstral 2507 (new) | Devstral 2505 | | ----- - Network accessline 3922
| ---------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | | GGUF: - Network accessline 3923
| GGUF: [Devstral-Small-2507-GGUF](https://huggingface.co/unsloth/Devstral-Small-2507-GGUF) | [Devstral-Small-2505-GGUF](https://huggingface.co/unsloth/Devstral-Small-2505-GGUF) | - Network accessline 3924
| 4-bit BnB: [Devstral-Small-2507-unsloth-bnb-4bit](https://huggingface.co/unsloth/Devstral-Small-2507-unsloth-bnb-4bit) | [Devstral-Small-2505-unsloth-bnb-4bit](https://huggingface.co/unsloth/Devstral-Small-2505-unsloth-bnb-4bit) | - Network accessline 3936
**A system prompt is recommended**, and is a derivative of Open Hand's system prompt. The full system prompt is provided [here](https://huggingface.co/unsloth/Devstral-Small-2505/blob/main/SYSTEM_PROMPT.txt). - Network accessline 3946
2. Run the model with our dynamic quant. Note you can call `ollama serve &`in another terminal if it fails! We include all suggested parameters (temperature etc) in `params` in our Hugging Face upload! 3. Also Devstral supports 128K context - Network accessline 3947
3. Also Devstral supports 128K context lengths, so best to enable [**KV cache quantization**](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-set-the-quantization-type-for-the-kv-cache). We use 8bit quantization which saves - Network accessline 3951
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 3973
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 3975
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 3975
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 3986
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 3987
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 3988
git clone https://github.com/ggerganov/llama.cpp - Network accessline 4001
RUN git clone https://github.com/triton-lang/triton.git && \ - Network accessline 4084
**Not necessarily.** Many assume RAG will consistently outperform a fine-tuned model, but that’s not the case when fine-tuning is done properly. In fact, a well-tuned model often matches or even surpasses RAG-based systems on specialized ta - Network accessline 4090
**Not at all!** While full fine-tuning or pretraining can be costly, these are not necessary (pretraining is especially not necessary). In most cases, LoRA or QLoRA fine-tuning can be done for minimal cost. In fact, with Unsloth’s [free not - Network accessline 4107
We recommend starting with **QLoRA**, as it’s one of the most efficient and accessible methods available. Thanks to Unsloth’s [dynamic 4-bit](https://unsloth.ai/blog/dynamic-4bit) quants, the accuracy loss compared to standard 16-bit LoRA f - Network accessline 4113
{% content-ref url="../fine-tuning-llms-guide/lora-hyperparameters-guide" %} [lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 4114
[lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Access to secretsline 4127
[Credential-related source omitted] - Access to secretsline 4135
[Credential-related source omitted] - Dangerous shell operationline 4146
* Use `USER_PASSWORD` for sudo operations inside container - Network accessline 4193
Read our full DeepSeek-R1 blogpost here: [unsloth.ai/blog/deepseekr1-dynamic](https://unsloth.ai/blog/deepseekr1-dynamic) - Network accessline 4209
{% tabs %} {% tab title="IQ1\_S code" %} {% file src="<https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FqpBdpW55h5mNAzVoTxPI%2Finference_UD-IQ1_S_3407.txt?alt=media&toke - Network accessline 4211
[Credential-related source omitted] - Network accessline 4213
[Credential-related source omitted] - Network accessline 4215
[Credential-related source omitted] - Network accessline 4218
[Credential-related source omitted] - Network accessline 4219
[Credential-related source omitted] - Network accessline 4221
[Credential-related source omitted] - Network accessline 4223
[Credential-related source omitted] - Network accessline 4226
[Credential-related source omitted] - Network accessline 4227
[Credential-related source omitted] - Network accessline 4229
[Credential-related source omitted] - Network accessline 4231
[Credential-related source omitted] - Network accessline 4237
{% tabs %} {% tab title="IQ1\_S basic code" %} {% file src="<https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FFtAMzAucSfKMkkmXItTj%2Finference_basic-IQ1_S_3407.txt?alt=m - Network accessline 4239
[Credential-related source omitted] - Network accessline 4241
[Credential-related source omitted] - Network accessline 4243
[Credential-related source omitted] - Network accessline 4245
[Credential-related source omitted] - Network accessline 4246
[Credential-related source omitted] - Network accessline 4248
[Credential-related source omitted] - Network accessline 4250
[Credential-related source omitted] - Network accessline 4252
{% tab title="IQ2\_XXS basic code" %} {% file src="<https://3215535692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FajsVHsVqlWpwHk7mY32t%2Finference_basic-IQ2_XXS_3407.txt?alt=media&to - Network accessline 4253
[Credential-related source omitted] - Network accessline 4255
[Credential-related source omitted] - Network accessline 4257
[Credential-related source omitted] - Network accessline 4275
If you're still encountering any issues with versions or depencies, please use our [Docker image](https://docs.unsloth.ai/get-started/install-and-update/docker) which will have everything pre-installed. - Network accessline 4288
* It might also be because your inference engine adds an unnecessary "start of sequence" token (or the lack of thereof on the contrary) so ensure you check both hypotheses! * <mark style="background-color:green;">**Use our conversational no - Network accessline 4289
* <mark style="background-color:green;">**Use our conversational notebooks to force the chat template - this will fix most issues.**</mark> * Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/ - Network accessline 4290
* Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) - Network accessline 4291
* Gemma-3 4B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) - Network accessline 4292
* Llama-3.2 3B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 4293
* Phi-4 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb) - Network accessline 4294
* Mistral v0.3 7B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 4295
* **More notebooks in our** [**notebooks docs**](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 4320
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 4321
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 4322
git clone https://github.com/ggerganov/llama.cpp - Network accessline 4355
DeepSeek-R1-0528 is DeepSeek's new update to their R1 reasoning model. The full 671B parameter model requires 715GB of disk space. The quantized dynamic **1.66-bit** version uses 162GB (-80% reduction in size). GGUF: [DeepSeek-R1-0528-GGUF] - Network accessline 4357
DeepSeek also released a R1-0528 distilled version by fine-tuning Qwen3 (8B). The distill achieves similar performance to Qwen3 (235B). ***You can also*** [***fine-tune Qwen3 Distill***](#fine-tuning-deepseek-r1-0528-with-unsloth) ***with U - Network accessline 4359
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized DeepSeek LLMs with minimal accuracy loss. - Network accessline 4366
NEW: Huge improvements to tool calling and chat template fixes.\ \ New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM - Network accessline 4367
\ New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM (including Mac) and Ollama users. Try: `ollama run hf.co/unsloth/ - Network accessline 4368
New [TQ1\_0 dynamic 1.66-bit quant](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSeek-R1-0528-UD-TQ1_0.gguf) - 162GB in size. Ideal for 192GB RAM (including Mac) and Ollama users. Try: `ollama run hf.co/unsloth/De - Network accessline 4387
According to [DeepSeek](https://huggingface.co/deepseek-ai/DeepSeek-R1-0528), these are the recommended settings for R1 (R1-0528 and Qwen3 distill should use the same settings) inference: - Network accessline 4404
* Qwen3 (8B) distill: [DeepSeek-R1-0528-Qwen3-8B-GGUF](https://huggingface.co/unsloth/DeepSeek-R1-0528-Qwen3-8B-GGUF) - Network accessline 4407
We also uploaded [IQ4\_NL](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF/tree/main/IQ4_NL) and [Q4\_1](https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF/tree/main/Q4_1) quants which run specifically faster for ARM and Apple device - Network accessline 4409
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type + Link</th><th>Disk Size</th><th>Details</th></tr></thead><tbody><tr><td>1.66bit</td><td><a href="https://huggingface.co/unsloth/DeepSeek-R1-0528-GGUF?show_file_info=DeepSe - Network accessline 4411
We've also uploaded versions in [BF16 format](https://huggingface.co/unsloth/DeepSeek-R1-0528-BF16), and original [FP8 (float8) format](https://huggingface.co/unsloth/DeepSeek-R1-0528). - Network accessline 4425
Open WebUI has made an step-by-step tutorial on how to run R1 here and for R1-0528, you will just need to replace R1 with the new 0528 quant: [docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/](https://docs.openwebui.com/tutoria - Network accessline 4433
1. <mark style="background-color:yellow;">**To run the full 720GB R1-0528 model,**</mark> [<mark style="background-color:yellow;">**see here**</mark>](#run-full-r1-0528-on-llama.cpp)<mark style="background-color:yellow;">**.**</mark> Obtain - Network accessline 4439
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 4455
3. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose `UD-IQ1_S`(dynamic 1.78bit quant) or other quantized versions like `Q4_K_M` . We <mark style="background-color:green;">**recommend using - Network accessline 4473
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 4475
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 4475
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 4499
GLM-4.6 is the latest reasoning model from **Z.ai**, achieving SOTA performance on coding and agent benchmarks while offering improved conversational chats. The full 355B parameter model requires **400GB** of disk space, while the Unsloth D - Network accessline 4506
You asked for benchmarks on our quants, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF scores **75.6%**, surpassing many full-precision SOTA LLMs. [Read more.](https://docs.unsloth.ai/new/unsloth-dynamic-gg - Network accessline 4509
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and Aider performance, meaning you can run & fine-tune quantized GLM LLMs with minimal accuracy loss. - Network accessline 4519
[Credential-related source omitted] - Network accessline 4551
{% stepper %} {% step %} Install `ollama` if you haven't already! To run more variants of the model, [see here](https://docs.unsloth.ai/deepseek-v3.1-how-to-run-locally#run-in-llama.cpp). - Network accessline 4553
Install `ollama` if you haven't already! To run more variants of the model, [see here](https://docs.unsloth.ai/deepseek-v3.1-how-to-run-locally#run-in-llama.cpp). - Network accessline 4566
{% stepper %} {% step %} Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or jus - Network accessline 4568
Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 4592
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 4594
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 4594
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 4632
Unsloth Docker image: [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) - Network accessline 4643
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other).\ - Network accessline 4644
Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation): - Dangerous shell operationline 4647
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 4654
[Credential-related source omitted] - Network accessline 4659
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For Blackwell and 50-series GPUs, use this same image - no separate one needed. - Network accessline 4661
[Credential-related source omitted] - Network accessline 4666
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. - Network accessline 4668
[Credential-related source omitted] - Network accessline 4672
[Credential-related source omitted] - Network accessline 4677
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 4679
[Credential-related source omitted] - Access to secretsline 4706
[Credential-related source omitted] - Access to secretsline 4708
[Credential-related source omitted] - Network accessline 4740
One of the key parts of creating a dataset is your [chat template](https://docs.unsloth.ai/basics/chat-templates) and how you are going to design it. Tokenization is also important as it breaks text into tokens, which can be words, sub-word - Network accessline 4759
* Chat-based dialogues (Q\&A, learn a new language, customer support, conversations). * Structured tasks ([classification](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification. - Network accessline 4760
* Structured tasks ([classification](https://colab.research.google.com/github/timothelaborie/text_classification_scripts/blob/main/unsloth_classification.ipynb), summarization, generation tasks). - Network accessline 4789
For [**continued pretraining**](https://docs.unsloth.ai/basics/continued-pretraining), we use raw text format without specific structure: - Network accessline 4793
If we are adapting a model to a new task, and intend for the model to output text in a single turn based on a specific set of instructions, we can use **Instruction** format in [Alpaca style](https://docs.unsloth.ai/basics/tutorial-how-to-f - Network accessline 4828
<mark style="color:green;">**A:**</mark> If your dataset is already formatted in the Alpaca format, then follow the formatting steps as shown in the Llama3.1 [notebook ](https://colab.research.google.com/github/unslothai/notebooks/blob/mai - Network accessline 4836
<mark style="color:green;">**A:**</mark> The `chat_template` attribute when a model is first uploaded by the original model owners sometimes contains errors and may take time to be updated. In contrast, at Unsloth, we thoroughly check and - Network accessline 4840
<mark style="color:green;">**A:**</mark> Submit a feature request on the unsloth github issues [forum](https://github.com/unslothai/unsloth). As a temporary workaround, you could also use the tokenizer's own apply\_chat\_template function - Network accessline 4846
* Produce entirely new data - either from scratch or from your existing dataset * Diversify your dataset so your model does not [overfit](https://docs.unsloth.ai/get-started/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting) - Network accessline 4847
* Diversify your dataset so your model does not [overfit](https://docs.unsloth.ai/get-started/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting) and become too specific - Network accessline 4852
We collaborated with Meta to launch a free notebook for creating Synthetic Datasets automatically using local models like Llama 3.2. [Access the notebook here.](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Meta_ - Network accessline 4889
If you want to fine-tune a model that already has reasoning capabilities like the distilled versions of DeepSeek-R1 (e.g. DeepSeek-R1-Distill-Llama-8B), you will need to still follow question/task and answer pairs however, for your answer y - Network accessline 4891
For a model that does not have reasoning and you want to train it so that it later encompasses reasoning capabilities, you will need to utilize a standard dataset but this time without reasoning in its answers. This is training process is k - Network accessline 4897
* Standardize the format of all datasets, combine them into a single dataset, and fine-tune on this unified dataset. * Use the [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) notebo - Network accessline 4898
* Use the [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) notebook to fine-tune on multiple datasets directly. - Network accessline 4908
[Credential-related source omitted] - Network accessline 4912
You can access the GPT4 version of the Alpaca dataset [here](https://huggingface.co/datasets/vicgalle/alpaca-gpt4.). Below shows some examples of the dataset: - Network accessline 4914
[Credential-related source omitted] - Network accessline 4918
[Credential-related source omitted] - Network accessline 4924
[Credential-related source omitted] - Network accessline 4930
[Credential-related source omitted] - Network accessline 4934
[Credential-related source omitted] - Network accessline 4938
[Credential-related source omitted] - Network accessline 4948
[Credential-related source omitted] - Network accessline 4974
[Credential-related source omitted] - Network accessline 4978
[Credential-related source omitted] - Network accessline 4984
[Credential-related source omitted] - Network accessline 4988
The dataset for fine-tuning a vision or multimodal model also includes image inputs. For example, the [Llama 3.2 Vision Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb#scroll - Network accessline 4990
We'll be using a sampled version of the ROCO radiography dataset. You can access the dataset [here](https://www.google.com/url?q=https%3A%2F%2Fhuggingface.co%2Fdatasets%2Funsloth%2FRadiology_mini). The dataset includes X-rays, CT scans and - Network accessline 4994
| Image - Network accessline 4996
[Credential-related source omitted] - Network accessline 5010
For more details, view our dataset section in the [notebook here](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb#scrollTo=vITh0KVJ10qX). - Network accessline 5082
* **Operating System**: Works on Linux and Windows. * Supports NVIDIA GPUs since 2018+ including [Blackwell RTX 50](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and [**DGX Spark**](https://docs.u - Network accessline 5083
* Supports NVIDIA GPUs since 2018+ including [Blackwell RTX 50](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and [**DGX Spark**](https://docs.unsloth.ai/basics/fine-tuning-llms-with-nvidia-dgx-sp - Network accessline 5084
Minimum CUDA Capability 7.0 (V100, T4, Titan V, RTX 20 & 50, A100, H100, L40 etc) [Check your GPU!](https://developer.nvidia.com/cuda-gpus) GTX 1070, 1080 works, but is slow. - Network accessline 5085
* The official [Unsloth Docker image](https://hub.docker.com/r/unsloth/unsloth) `unsloth/unsloth` is available on Docker Hub. - Network accessline 5086
* Unsloth works on [AMD](https://docs.unsloth.ai/new/fine-tuning-llms-on-amd-gpus-with-unsloth) and [Intel](https://github.com/unslothai/unsloth/pull/2621) GPUs! Apple/Silicon/MLX is in the works. - Network accessline 5101
**For context length benchmarks, see** [**here**](https://docs.unsloth.ai/basics/unsloth-benchmarks#context-length-benchmarks)**.** - Network accessline 5134
<table><thead><tr><th width="212.9000244140625">Argument</th><th>Example and use-case</th></tr></thead><tbody><tr><td><strong><code>--gpu-memory-utilization</code></strong></td><td>Default 0.9. How much VRAM usage vLLM can use. Reduce if go - Network accessline 5181
curl -X POST http://localhost:8000/v1/load_lora_adapter \ - Network accessline 5204
Qwen released QwQ-32B - a reasoning model with performance comparable to DeepSeek-R1 on many [benchmarks](https://qwenlm.github.io/blog/qwq-32b/). However, people have been experiencing **infinite generations**, **many repetitions**, \<thin - Network accessline 5212
| [GGUF](https://huggingface.co/unsloth/QwQ-32B-GGUF) | [Dynamic 4-bit](https://huggingface.co/unsloth/QwQ-32B-unsloth-bnb-4bit) | [BnB 4-bit](https://huggingface.co/unsloth/QwQ-32B-bnb-4bit) | [16-bit](https://huggingface.co/unsloth/QwQ-32 - Network accessline 5217
According to [Qwen](https://huggingface.co/Qwen/QwQ-32B), these are the recommended settings for inference: - Network accessline 5244
Courtesy to [@krist486](https://x.com/krist486/status/1897885598196654180) for bringing llama.cpp sampling directions to my attention. - Network accessline 5248
We investigated usage of `dry penalty` as suggested in <https://github.com/ggml-org/llama.cpp/blob/master/examples/main/README.md> using a value of 0.8, but we actually found this to **rather cause syntax issues especially for coding**. If - Network accessline 5260
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 5262
2. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose Q4\_K\_M, or other quantized versions (like BF16 full precision). More versions at: <https://huggingface.co/unsloth/QwQ-32B-GGUF> - Network accessline 5289
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 5291
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 5291
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 5310
Qwen3-VL has vision, video and OCR capabilities as well as 256K context (can be extended to 1M).\ \ [Unsloth](https://github.com/unslothai/unsloth) supports **Qwen3-VL fine-tuning and** [**RL**](https://docs.unsloth.ai/new/vision-reinforcem - Network accessline 5312
[Unsloth](https://github.com/unslothai/unsloth) supports **Qwen3-VL fine-tuning and** [**RL**](https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl). Train Qwen3-VL (8B) for free with our [notebooks](#fine-tuning-qwen3-vl). - Network accessline 5322
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-VL-2B-Instruct-GGUF">2B-Instruct</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-VL-2B-Thinking-GGUF">2B-Thinking</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-VL - Network accessline 5340
Qwen3-VL also used the below settings for their benchmarking numbers, as mentioned [on GitHub](https://github.com/QwenLM/Qwen3-VL/tree/main?tab=readme-ov-file#generation-hyperparameters). - Network accessline 5359
[Credential-related source omitted] - Network accessline 5371
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 5373
2. **Let's first get an image!** You can also upload images as well. We shall use <https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/unsloth%20made%20with%20love.png>, which is just our mini logo showing how finetun - Network accessline 5375
[Credential-related source omitted] - Network accessline 5381
4. Let's get the 2nd image at <https://files.worldwildlife.org/wwfcmsprod/images/Sloth_Sitting_iStock_3_12_2014/story_full_width/8l7pbjmj29_iStock_000011145477Large_mini__1_.jpg> - Network accessline 5383
[Credential-related source omitted] - Network accessline 5391
[Credential-related source omitted] - Network accessline 5395
[Credential-related source omitted] - Network accessline 5399
[Credential-related source omitted] - Network accessline 5403
[Credential-related source omitted] - Network accessline 5407
[Credential-related source omitted] - Network accessline 5413
[Credential-related source omitted] - Network accessline 5454
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5455
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5456
git clone https://github.com/ggml-org/llama.cpp - Network accessline 5532
[Credential-related source omitted] - Network accessline 5534
We uploaded dynamic 4-bit quants to: <https://huggingface.co/unsloth/QwQ-32B-unsloth-bnb-4bit> - Network accessline 5536
Since vLLM 0.7.3 (2025 February 20th) <https://github.com/vllm-project/vllm/releases/tag/v0.7.3>, vLLM now supports loading Unsloth dynamic 4bit quants! - Network accessline 5538
All our GGUFs are at <https://huggingface.co/unsloth/QwQ-32B-GGUF>! - Network accessline 5548
According to the Min\_p paper <https://arxiv.org/pdf/2407.01082>, for more creative and diverse outputs, and if you still see repetitions, try disabling top\_p and top\_k! - Network accessline 5607
{% embed url="<https://www.youtube.com/watch?v=SoPE1cUz3Hs>" %} - Network accessline 5611
{% embed url="<https://www.youtube.com/watch?t=3289s&v=bbFEYPx9Hpo>" %} - Network accessline 5615
{% embed url="<https://www.youtube.com/watch?v=juOh1afy-IE>" %} - Network accessline 5617
{% embed url="<https://www.youtube.com/watch?v=oF0_eMhzRaQ>" %} - Network accessline 5650
You can then run the merged QAT lower precision model in vLLM, Unsloth and other systems for inference! These are all in the [Qwen3-4B QAT Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\ - Access to secretsline 5696
[Credential-related source omitted] - Access to secretsline 5698
[Credential-related source omitted] - Network accessline 5822
<table data-full-width="true"><thead><tr><th>MoE Bits</th><th>Type</th><th>Disk Size</th><th>Accuracy</th><th>Link</th><th>Details</th></tr></thead><tbody><tr><td>1.58bit</td><td>UD-IQ1_S</td><td><strong>131GB</strong></td><td>Fair</td><td> - Network accessline 5843
5. To test our Flappy Bird example as mentioned in our blog post here: <https://unsloth.ai/blog/deepseekr1-dynamic>, we can produce the 2nd example like below using our 1.58bit dynamic quant: - Network accessline 5845
[Credential-related source omitted] - Network accessline 5874
<table><thead><tr><th width="249">Dynamic GGUFs</th><th>Dynamic 4-bit + FP8</th><th>16-bit Instruct</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/granite-4.0-h-350m-GGUF">H-350M</a></li><li><a href="https:/ - Network accessline 5876
You can also view our [Granite-4.0 collection](https://huggingface.co/collections/unsloth/granite-40-68ddf64b4a8717dc22a9322d) for all uploads including Dynamic Float8 quants etc. - Network accessline 5908
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 5925
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 5927
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 5927
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 5937
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5938
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 5939
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 5965
[Credential-related source omitted] - Access to secretsline 5966
[Credential-related source omitted] - Network accessline 6074
[Credential-related source omitted] - Network accessline 6101
* **LoRA:** 16-bit fine-tuning. It's slightly faster and slightly more accurate, but consumes significantly more VRAM (4× more than QLoRA). Recommended for 16-bit environments and scenarios where maximum accuracy is required. * **QLoRA:** 4 - Network accessline 6103
:sloth: *70B LLaMA fits in <48GB VRAM with QLoRA in Unsloth -* [*more details here*](https://unsloth.ai/blog/llama3-3)*.* - Network accessline 6147
[Read our blog post](https://unsloth.ai/blog/gradient) for more details. - Network accessline 6151
[Credential-related source omitted] - Network accessline 6155
[Credential-related source omitted] - Network accessline 6161
[Credential-related source omitted] - Network accessline 6169
A regularization technique that helps [prevent overfitting](#overfitting-poor-generalization-too-specialized) by randomly setting a fraction of the LoRA activations to zero during each training step. [Recent research suggests](https://arxiv - Network accessline 6174
Options are `True`, `False`, and `"unsloth"`. \ 🦥 *We recommend* `"unsloth"` *as it reduces memory usage by an extra 30% and supports extremely long context fine-tunes. You can read more on* [*our blog post about long context training*]( - Network accessline 6175
🦥 *We recommend* `"unsloth"` *as it reduces memory usage by an extra 30% and supports extremely long context fine-tunes. You can read more on* [*our blog post about long context training*](https://unsloth.ai/blog/long-context)*.*\\ - Network accessline 6179
An advanced feature that implements [**Rank-Stabilized LoRA**](https://arxiv.org/abs/2312.03732). If set to `True`, the effective scaling becomes `lora_alpha / sqrt(r)` instead of the standard `lora_alpha / r`. This can sometimes improve st - Network accessline 6181
An advanced technique, as proposed in [**LoftQ**](https://arxiv.org/abs/2310.08659), initializes LoRA matrices with the top 'r' singular vectors from the pretrained weights. This can improve accuracy but may cause a significant memory spike - Network accessline 6185
When validating that **LoRA** adapter weights have been updated after fine-tuning, avoid using **np.allclose()** for comparison. This method can miss subtle but meaningful changes, particularly in **LoRA A**, which is initialized with small - Network accessline 6206
[Credential-related source omitted] - Network accessline 6216
According to the [rsLoRA (rank stabilized lora) paper](https://arxiv.org/abs/2312.03732), we should instead scale alpha by the sqrt of the rank. Other options exist, but theoretically this is the optimum. The left plot shows other ranks and - Network accessline 6233
According to empirical experiments and research papers like the original [QLoRA paper](https://arxiv.org/pdf/2305.14314), it's best to apply LoRA to both attention and MLP layers. - Network accessline 6238
[Credential-related source omitted] - Network accessline 6257
The [QLoRA paper](https://arxiv.org/pdf/2305.14314) shows that masking out inputs and **training only on completions** (outputs or assistant messages) can further **increase accuracy** by a few percentage points (*1%*). Below demonstrates h - Network accessline 6278
The QLoRA paper states that **training on completions only** increases accuracy by quite a bit, especially for multi-turn conversational finetunes! We do this in our [conversational notebooks here](https://colab.research.google.com/github/u - Network accessline 6280
[Credential-related source omitted] - Network accessline 6327
***Acknowledgements:** A huge thank you to* [*Eyera*](https://huggingface.co/Orenguteng) *for contributing to this guide!* - Network accessline 6374
{% hint style="success" %} For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 6375
For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 6383
This article covers everything (from beginner to advanced) you need to know about GRPO, Reinforcement Learning (RL) and reward functions, along with tips, and the basics of using GRPO with [Unsloth](https://github.com/unslothai/unsloth). If - Network accessline 6404
[Credential-related source omitted] - Network accessline 6411
[Credential-related source omitted] - Network accessline 6430
[Credential-related source omitted] - Network accessline 6433
{% column %} OpenAI popularized the concept of [RLHF](https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback) (Reinforcement Learning from Human Feedback), where we train an <mark style="background-color:red;">**"agent"**< - Network accessline 6434
OpenAI popularized the concept of [RLHF](https://en.wikipedia.org/wiki/Reinforcement_learning_from_human_feedback) (Reinforcement Learning from Human Feedback), where we train an <mark style="background-color:red;">**"agent"**</mark> to pro - Network accessline 6443
[Credential-related source omitted] - Network accessline 6445
[Credential-related source omitted] - Network accessline 6450
{% column %} In order to do RLHF, [<mark style="background-color:red;">**PPO**</mark>](https://en.wikipedia.org/wiki/Proximal_policy_optimization) (Proximal policy optimization) was developed. The <mark style="background-color:blue;">**agen - Network accessline 6451
In order to do RLHF, [<mark style="background-color:red;">**PPO**</mark>](https://en.wikipedia.org/wiki/Proximal_policy_optimization) (Proximal policy optimization) was developed. The <mark style="background-color:blue;">**agent**</mark> is - Network accessline 6459
The formula for PPO looks quite complicated because it was designed to be stable. Visit our [AI Engineer talk](https://docs.unsloth.ai/ai-engineers-2025) we gave in 2025 about RL for more in depth maths derivations about PPO. - Network accessline 6466
[Credential-related source omitted] - Network accessline 6469
{% column %} DeepSeek developed [<mark style="background-color:red;">**GRPO**</mark>](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. The key differences to PPO are: - Network accessline 6470
DeepSeek developed [<mark style="background-color:red;">**GRPO**</mark>](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. The key differences to PPO are: - Network accessline 6482
2. Code output can be verified as having executed correctly or not. 3. Designing verifiable reward functions can be tough, and so most examples are math or code. 4. Use-cases for GRPO isn’t just for code or math—its reasoning process can en - Network accessline 6484
4. Use-cases for GRPO isn’t just for code or math—its reasoning process can enhance tasks like email automation, database retrieval, law, and medicine, greatly improving accuracy based on your dataset and reward function - the trick is to d - Network accessline 6494
[Credential-related source omitted] - Network accessline 6505
[Credential-related source omitted] - Network accessline 6530
[Credential-related source omitted] - Network accessline 6544
* With 15GB VRAM, Unsloth allows you to transform any model up to 17B parameters like Llama 3.1 (8B), Phi-4 (14B), Mistral (7B) or Qwen2.5 (7B) into a reasoning model * **Unsloth now supports** [**RL for Vision/multimodal**](https://docs.un - Network accessline 6545
* **Unsloth now supports** [**RL for Vision/multimodal**](https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl) **models!** - Network accessline 6548
{% content-ref url="reinforcement-learning-rl-guide/tutorial-train-your-own-reasoning-model-with-grpo" %} [tutorial-train-your-own-reasoning-model-with-grpo](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/tutorial-train - Network accessline 6549
[tutorial-train-your-own-reasoning-model-with-grpo](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/tutorial-train-your-own-reasoning-model-with-grpo) - Network accessline 6552
| [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) **GSPO -** new | [**Qwen3-VL-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_ - Network accessline 6553
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- - Network accessline 6554
| [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) - Advanced | [**DeepSeek-R1-0528-Qwen3-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/mai - Network accessline 6555
| [Gemma 3 (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(1B\)-GRPO.ipynb) | [Phi-4 (14B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4_\(14B\) - Network accessline 6556
| [Mistral v0.3 (7B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-GRPO.ipynb) | [Llama 3.1 (8B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.1_\ - Network accessline 6558
{% hint style="success" %} **NEW!** We now support [**GSPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/gspo-reinforcement-learning) and most other new GRPO techniques. You can play with the following arguments in - Network accessline 6559
**NEW!** We now support [**GSPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/gspo-reinforcement-learning) and most other new GRPO techniques. You can play with the following arguments in GRPOConfig to enable: - Network accessline 6591
{% hint style="success" %} [**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, - Network accessline 6592
[**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#new-saving-to-gguf-vllm-after-gpt-oss-training)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF etc. - Network accessline 6594
We also introduced [Unsloth Flex Attention](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support) which enables **>8× longer context lengths**, **>50% less VRAM usage** and **>1.5× faster t - Network accessline 6597
> [**Fine-tune**](#fine-tuning-gpt-oss-with-unsloth) **gpt-oss-20b for free with our** [**Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) - Network accessline 6599
Trained with [RL](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide), **gpt-oss-120b** rivals o4-mini and **gpt-oss-20b** rivals o3-mini. Both excel at function calling and CoT reasoning, surpassing o1 and GPT-4o. - Network accessline 6607
* 20B: [gpt-oss-**20B**](https://huggingface.co/unsloth/gpt-oss-20b-GGUF) - Network accessline 6608
* 120B: [gpt-oss-**120B**](https://huggingface.co/unsloth/gpt-oss-120b-GGUF) - Network accessline 6612
OpenAI released a standalone parsing and tokenization library called [Harmony](https://github.com/openai/harmony) which allows one to tokenize conversations to OpenAI's preferred format for gpt-oss. The official OpenAI [cookbook article](ht - Network accessline 6616
[Credential-related source omitted] - Network accessline 6637
[Credential-related source omitted] - Network accessline 6643
We made a [MXFP4 inference notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\)-Inference.ipynb) as well in Tesla T4 Colab! - Network accessline 6645
{% hint style="info" %} [Software emulation](https://triton-lang.org/main/python-api/generated/triton.language.dot_scaled.html) enables targeting hardware architectures without native microscaling operation support. Right now for such case, - Network accessline 6646
[Software emulation](https://triton-lang.org/main/python-api/generated/triton.language.dot_scaled.html) enables targeting hardware architectures without native microscaling operation support. Right now for such case, microscaled lhs/rhs are - Network accessline 6683
[Credential-related source omitted] - Network accessline 6685
To achieve inference speeds of 6+ tokens per second for our Dynamic 4-bit quant, have at least **14GB of unified memory** (combined VRAM and RAM) or **14GB of system RAM** alone. As a rule of thumb, your available memory should match or exc - Network accessline 6695
> **You can run gpt-oss-20b for free with our** [**Google Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/GPT_OSS_MXFP4_\(20B\)-Inference.ipynb) - Network accessline 6703
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6823
**Magistral-Small-2509** is a reasoning LLM developed by Mistral AI. It excels at coding and mathematics and supports multiple languages. Magistral supports a 128k token context window and was finetuned from [**Mistral-Small-3.2**](https:/ - Network accessline 6835
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized Mistral LLMs with minimal accuracy loss. - Network accessline 6839
<table><thead><tr><th width="255.64999389648438">Dynamic 2.0 GGUF (to run)</th><th width="305.25">Dynamic 4-bit (to finetune/deploy)</th><th>Dynamic Float8</th></tr></thead><tbody><tr><td><ul><li><a href="https://huggingface.co/unsloth/Magi - Network accessline 6880
2. Run the model with our dynamic quant. We did not set the context length automatically, so it will just use Ollama's default set context length.\ Note you can call `ollama serve &`in another terminal if it fails! We include all suggest - Network accessline 6881
Note you can call `ollama serve &`in another terminal if it fails! We include all suggested parameters (temperature etc) in `params` in our Hugging Face upload! 3. Also Magistral supports 40K context lengths, so best to enable [**KV cache q - Network accessline 6882
3. Also Magistral supports 40K context lengths, so best to enable [**KV cache quantization**](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-set-the-quantization-type-for-the-kv-cache). We use 8bit quantization which saves - Network accessline 6883
4. **Ollama also sets the default context length to 4096**, as [mentioned here](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size). Use `OLLAMA_CONTEXT_LENGTH=8192` to change it to 8192. Magist - Network accessline 6887
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 6942
## From https://mlabonne.github.io/blog/posts/Quantize_Llama_2_models_using_ggml.html - Network accessline 6944
**URL:** llms-txt#from-https://mlabonne.github.io/blog/posts/quantize_llama_2_models_using_ggml.html - Network accessline 6981
bash apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6982
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y git clone https://github.com/ggerganov/llama.cpp - Network accessline 6983
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6984
git clone https://github.com/ggerganov/llama.cpp - Network accessline 6993
bash apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6994
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y git clone https://github.com/ggerganov/llama.cpp - Network accessline 6995
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 6996
git clone https://github.com/ggerganov/llama.cpp - Network accessline 7024
Or follow the steps at <https://rentry.org/llama-cpp-conversions#merging-loras-into-a-model> using the model name "merged\_model" to merge to GGUF. - Network accessline 7034
* It might also be because your inference engine adds an unnecessary "start of sequence" token (or the lack of thereof on the contrary) so ensure you check both hypotheses! * <mark style="background-color:green;">**Use our conversational no - Network accessline 7035
* <mark style="background-color:green;">**Use our conversational notebooks to force the chat template - this will fix most issues.**</mark> * Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/ - Network accessline 7036
* Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) - Network accessline 7037
* Gemma-3 4B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) - Network accessline 7038
* Llama-3.2 3B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 7039
* Phi-4 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb) - Network accessline 7040
* Mistral v0.3 7B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 7041
* **More notebooks in our** [**notebooks docs**](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 7074
Microsoft's new Phi-4 reasoning models are now supported in Unsloth. The 'plus' variant performs on par with OpenAI's o1-mini, o3-mini and Sonnet 3.7. The 'plus' and standard reasoning models are 14B parameters while the 'mini' has 4B param - Network accessline 7076
All Phi-4 reasoning uploads use our [Unsloth Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) methodology. - Network accessline 7080
| Dynamic 2.0 GGUF (to run) - Network accessline 7082
| <ul><li><a href="https://huggingface.co/unsloth/Phi-4-reasoning-plus-GGUF/">Reasoning-plus</a> (14B)</li></ul><ul><li><a href="https://huggingface.co/unsloth/Phi-4-reasoning-GGUF">Reasoning</a> (14B)</li></ul><ul><li><a href="https://hugg - Network accessline 7121
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7139
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 7141
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7141
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7161
Fine-tuning vision models enables model to excel at certain tasks normal LLMs won't be as good as such as object/movement detection. **You can also train** [**VLMs with RL**](https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl) - Network accessline 7163
* **NEW: Qwen3-VL (8B) Vision:** [**Notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_VL_\(8B\)-Vision.ipynb) - Network accessline 7164
* **Gemma 3 (4B) Vision:** [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - Network accessline 7165
* **Llama 3.2 Vision** fine-tuning for radiography: [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb)\ - Network accessline 7166
How can we assist medical professionals in analyzing Xrays, CT Scans & ultrasounds faster. * **Qwen2.5 VL** fine-tuning for converting handwriting to LaTeX: [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/n - Network accessline 7167
* **Qwen2.5 VL** fine-tuning for converting handwriting to LaTeX: [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2.5_VL_\(7B\)-Vision.ipynb)\ - Network accessline 7168
This allows complex math formulas to be easily transcribed as LaTeX without manually writing it. * **Pixtral 12B 2409** vision fine-tuning for general Q\&A: [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/n - Network accessline 7169
* **Pixtral 12B 2409** vision fine-tuning for general Q\&A: [Notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Pixtral_\(12B\)-Vision.ipynb)\ - Network accessline 7180
The dataset for fine-tuning a vision or multimodal model is similar to standard question & answer pair [datasets ](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide), but this time, they also includes image inputs. F - Network accessline 7182
We'll be using a sampled version of the ROCO radiography dataset. You can access the dataset [here](https://www.google.com/url?q=https%3A%2F%2Fhuggingface.co%2Fdatasets%2Funsloth%2FRadiology_mini). The dataset includes X-rays, CT scans and - Network accessline 7186
| Image - Network accessline 7188
[Credential-related source omitted] - Network accessline 7202
For more details, view our dataset section in the [notebook here](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(11B\)-Vision.ipynb#scrollTo=vITh0KVJ10qX). - Network accessline 7307
[Reward Functions/Verifiers](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#reward-functions-verifier) lets us know if the model is doing well or not according to the dataset you have provided. Each generation run wi - Network accessline 7309
You can input your generations into an LLM like ChatGPT 4o or Llama 3.1 (8B) and design a reward function and verifier to evaluate it. For example, feed your generations into a LLM of your choice and set a rule: "If the answer sounds too ro - Network accessline 7322
[Credential-related source omitted] - Network accessline 7329
We have pre-selected hyperparameters for the most optimal results however you could change them. Read all about [parameters here](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide). For **advanced GRPO** - Network accessline 7331
[Credential-related source omitted] - Network accessline 7364
LLMs often struggle with tasks that involve complex environments. However, by applying [reinforcement learning](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) (RL) and designing a custom [reward function](https://docs. - Network accessline 7366
RL can be adapted for tasks such as auto kernel or strategy creation. This tutorial shows how to train **gpt-oss** with [**GRPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#from-rlhf-ppo-to-grpo-and-rlvr) and Unslo - Network accessline 7368
| [2048 notebook](https://colab.research.google.com/github/openai/gpt-oss/blob/main/examples/reinforcement-fine-tuning.ipynb) (Official OpenAI example) | [Kernel generation notebook](https://colab.research.google.com/github/unslothai/notebo - Network accessline 7392
Load the 20B model in 4‑bit QLoRA for memory efficiency, then wrap it with a LoRA adapter. You can also train it in 16-bit LoRA but it will use 4x more memory. For more settings view our [configuration guide](https://docs.unsloth.ai/get-sta - Network accessline 7601
!uv pip install -qqq \ "torch>=2.8.0" "triton>=3.4.0" {get_numpy} torchvision bitsandbytes "transformers==4.56.2" \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 7602
"torch>=2.8.0" "triton>=3.4.0" {get_numpy} torchvision bitsandbytes "transformers==4.56.2" \ "unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ "unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 7603
"unsloth_zoo[base] @ git+https://github.com/unslothai/unsloth-zoo" \ - Network accessline 7604
"unsloth[base] @ git+https://github.com/unslothai/unsloth" \ - Network accessline 7605
git+https://github.com/triton-lang/triton.git@05b2c186c1b6c9a08375389d5efe9cb4c401c075#subdirectory=python/triton_kernels - Network accessline 7674
DeepSeek’s V3.1 and **Terminus** update introduces hybrid reasoning inference, combining 'think' and 'non-think' into one model. The full 671B parameter model requires 715GB of disk space. The quantized dynamic 2-bit version uses 245GB (-75 - Network accessline 7676
{% hint style="success" %} **NEW:** DeepSeek-V3.1-Terminus out now: [DeepSeek-V3.1-Terminus-GGUF](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF)\ - Network accessline 7677
**NEW:** DeepSeek-V3.1-Terminus out now: [DeepSeek-V3.1-Terminus-GGUF](https://huggingface.co/unsloth/DeepSeek-V3.1-Terminus-GGUF)\ - Network accessline 7679
[**Sept 10, 2025 update:**](https://docs.unsloth.ai/new/unsloth-dynamic-ggufs-on-aider-polyglot) You asked for tougher benchmarks, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF scores **75.6%**, surpassing - Network accessline 7684
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized DeepSeek LLMs with minimal accuracy loss. - Network accessline 7708
1. DeepSeek V3.1 is a hybrid reasoning model, meaning you can change the chat template to enable reasoning. The chat template introduced `thinking = True` , but other models use `enable_thinking = True` . We added the option to use `enable_ - Network accessline 7709
2. llama.cpp's jinja renderer via [minja](https://github.com/google/minja) does not allow the use of extra arguments in the `.split()` command, so using `.split(text, 1)` works in Python, but not in minja. We had to change this to make llam - Network accessline 7716
According to [DeepSeek](https://huggingface.co/deepseek-ai/DeepSeek-V3.1), these are the recommended settings for V3.1 inference: - Network accessline 7774
{% step %} Open WebUI also made a [step-by-step tutorial](https://docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/) on how to run R1 and for V3.1, you will just need to replace R1 with the new V3.1 quant. - Network accessline 7775
Open WebUI also made a [step-by-step tutorial](https://docs.openwebui.com/tutorials/integrations/deepseekr1-dynamic/) on how to run R1 and for V3.1, you will just need to replace R1 with the new V3.1 quant. - Network accessline 7781
{% stepper %} {% step %} Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or jus - Network accessline 7783
Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 7812
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 7814
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7814
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 7837
url = "https://huggingface.co/datasets/laion/OIG/resolve/main/unified_chip2.jsonl" - Access to secretsline 7935
[Credential-related source omitted] - Access to secretsline 7940
[Credential-related source omitted] - Access to secretsline 7941
[Credential-related source omitted] - Network accessline 7963
year = {2025}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF}} - Network accessline 7964
publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF}} } - Network accessline 7965
howpublished = {\url{https://huggingface.co/unsloth/Qwen3-30B-A3B-GGUF}} - Network accessline 7971
year = {2025}, publisher = {Github}, howpublished = {\url{https://github.com/unslothai/unsloth}} - Network accessline 7972
publisher = {Github}, howpublished = {\url{https://github.com/unslothai/unsloth}} } - Network accessline 7973
howpublished = {\url{https://github.com/unslothai/unsloth}} - Network accessline 8028
* For more detailed benchmarks, read our [Llama 3.3 Blog](https://unsloth.ai/blog/llama3-3).  - Network accessline 8029
* Benchmarking of Unsloth was also conducted by [🤗Hugging Face](https://huggingface.co/blog/unsloth-trl). - Network accessline 8031
Tested on H100 and [Blackwell](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) GPUs. We tested using the Alpaca Dataset, a batch size of 2, gradient accumulation steps of 4, rank = 32, and applied Q - Network accessline 8037
{% hint style="info" %} The more data you have, the less VRAM Unsloth uses due to our [gradient checkpointing](https://unsloth.ai/blog/long-context) algorithm + Apple's CCE algorithm! - Network accessline 8038
The more data you have, the less VRAM Unsloth uses due to our [gradient checkpointing](https://unsloth.ai/blog/long-context) algorithm + Apple's CCE algorithm! - Network accessline 8077
As shown at [OpenAI DevDay](https://x.com/UnslothAI/status/1976284209842118714), gpt-oss-20b was trained with RL and Unsloth on DGX Spark to auto-win 2048. You can train using Unsloth in a Docker container or virtual environment on DGX Spar - Network accessline 8079
[Credential-related source omitted] - Network accessline 8085
[Credential-related source omitted] - Network accessline 8094
First, build the Docker image using the DGX Spark Dockerfile which can be [found here](https://raw.githubusercontent.com/unslothai/notebooks/main/Dockerfile_DGX_Spark). You can also run the below in a Terminal in the DGX Spark: - Network accessline 8098
[Credential-related source omitted] - Dangerous shell operationline 8109
sudo apt update && sudo apt install -y wget - Network accessline 8109
sudo apt update && sudo apt install -y wget wget -O Dockerfile "https://raw.githubusercontent.com/unslothai/notebooks/main/Dockerfile_DGX_Spark" - Network accessline 8110
wget -O Dockerfile "https://raw.githubusercontent.com/unslothai/notebooks/main/Dockerfile_DGX_Spark" - Network accessline 8135
You can fine-tune DeepSeek-OCR to enhance its vision or language performance. In our Unsloth [**free fine-tuning notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb), we demonstrat - Network accessline 8139
> **Our model upload that enables fine-tuning + more inference support:** [**DeepSeek-OCR**](https://huggingface.co/unsloth/DeepSeek-OCR) - Network accessline 8184
{% hint style="success" %} [**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF - Network accessline 8185
[**Aug 28 update**](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support)**:** You can now export/save your QLoRA fine-tuned gpt-oss model to llama.cpp, vLLM, HF etc. - Network accessline 8187
We also introduced [Unsloth Flex Attention](https://docs.unsloth.ai/models/long-context-gpt-oss-training#introducing-unsloth-flex-attention-support) which enables **>8× longer context lengths**, **>50% less VRAM usage** and **>1.5× faster t - Network accessline 8190
> **Quickstart:** Fine-tune gpt-oss-20b for free with our: [Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-Fine-tuning.ipynb) - Network accessline 8201
This section covers fine-tuning gpt-oss using our Google Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). You can also save and use the gpt-oss notebook into your favorite code editor and follow our [local gpt-oss g - Network accessline 8210
[Credential-related source omitted] - Network accessline 8212
[Credential-related source omitted] - Network accessline 8217
We’ll load **`gpt-oss-20b`** using Unsloth's [linearized version](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#making-efficient-gpt-oss-fine-tuning-work) (as no other version will work).  - Network accessline 8226
[Credential-related source omitted] - Network accessline 8230
[Credential-related source omitted] - Network accessline 8235
Now it's time to adjust your training hyperparameters. For a deeper dive into how, when, and what to tune, check out our [detailed hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 8237
{% hint style="info" %} To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high. - Network accessline 8238
To avoid [overfitting](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide#avoiding-overfitting-and-underfitting), monitor your training loss and avoid setting these values too high.  - Network accessline 8243
[Credential-related source omitted] - Network accessline 8248
[Credential-related source omitted] - Network accessline 8251
For this example, we will use the [`HuggingFaceH4/Multilingual-Thinking`](https://huggingface.co/datasets/HuggingFaceH4/Multilingual-Thinking). This dataset contains chain-of-thought reasoning examples derived from user questions translated - Network accessline 8257
[Credential-related source omitted] - Network accessline 8265
[Credential-related source omitted] - Network accessline 8267
One unique feature of gpt-oss is its use of the [**OpenAI Harmony format**](https://github.com/openai/harmony)**,** which supports structured conversations, reasoning output, and tool calling. This format includes tags such as `<|start|>` , - Network accessline 8269
{% hint style="info" %} 🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 8270
🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 8273
Feel free to adapt the prompt and structure to suit your own dataset or use-case. For more guidance, refer to our [dataset guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide). - Network accessline 8276
We've pre-selected training hyperparameters for optimal results. However, you can modify them based on your specific use case. Refer to our [hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparamet - Network accessline 8280
[Credential-related source omitted] - Network accessline 8284
[Credential-related source omitted] - Network accessline 8293
[Credential-related source omitted] - Network accessline 8297
[Credential-related source omitted] - Network accessline 8316
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 8322
[Credential-related source omitted] - Network accessline 8330
{% hint style="info" %} We recommend downloading or incorporating elements from our Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) into your local setup for easier use. - Network accessline 8331
We recommend downloading or incorporating elements from our Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) into your local setup for easier use. - Network accessline 8339
Ensure your device is [Unsloth compatible](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) and you can read our detailed [installation guide](https://docs.unsloth.ai/get-started/install-and-update). - Network accessline 8364
[Credential-related source omitted] - Network accessline 8366
One unique feature of gpt-oss is its use of the [**OpenAI Harmony format**](https://github.com/openai/harmony)**,** which supports structured conversations, reasoning output, and tool calling. This format includes tags such as `<|start|>` , - Network accessline 8368
{% hint style="info" %} 🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 8369
🦥 Unsloth fixes the chat template to ensure it is correct. See this [tweet](https://x.com/danielhanchen/status/1953901104150065544) for technical details on our template fix. - Network accessline 8372
Feel free to adapt the prompt and structure to suit your own dataset or use-case. For more guidance, refer to our [dataset guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide). - Network accessline 8379
We've pre-selected training hyperparameters for optimal results. However, you can modify them based on your specific use case. Refer to our [hyperparameters guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparamet - Network accessline 8383
[Credential-related source omitted] - Network accessline 8387
[Credential-related source omitted] - Network accessline 8398
[Credential-related source omitted] - Network accessline 8402
[Credential-related source omitted] - Network accessline 8471
This can zero out all `completion_mask` entries when many completions are truncated, making `n_mask_per_reward = 0` and causing KL to become NaN. [See](https://github.com/unslothai/unsloth-zoo/blob/e705f7cb50aa3470a0b6e36052c61b7486a39133/u - Network accessline 8632
In our GitHub, we have a list of every chat template Unsloth uses including for Llama, Mistral, Phi-4 etc. So if you need any pointers on the formatting or use case, you can view them here: [github.com/unslothai/unsloth/blob/main/unsloth/ch - Network accessline 8636
* [Conversational](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 8637
* [ChatML](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) - Network accessline 8638
* [Ollama](https://colab.research.google.com/drive/1WZDi7APtQ9VsvOrQSSC5DDtxq159j8iZ?usp=sharing) - Network accessline 8639
* [Text Classification](https://github.com/timothelaborie/text_classification_scripts/blob/main/unsloth_classification.ipynb) by Timotheeee - Network accessline 8640
* [Multiple Datasets](https://colab.research.google.com/drive/1njCCbE1YVal9xC83hjdo2hiGItpY_D6t?usp=sharing) by Flail - Network accessline 8646
[Credential-related source omitted] - Network accessline 8650
[Credential-related source omitted] - Network accessline 8656
[Credential-related source omitted] - Network accessline 8662
[Credential-related source omitted] - Network accessline 8666
[Credential-related source omitted] - Network accessline 8670
[Credential-related source omitted] - Network accessline 8674
[Credential-related source omitted] - Network accessline 8678
[Credential-related source omitted] - Network accessline 8680
Or in the Titanic prediction task where you had to predict if a passenger died or survived in this Colab notebook which includes CSV and Excel uploading: <https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharin - Network accessline 8682
[Credential-related source omitted] - Network accessline 8762
We’re excited to share that Unsloth Dynamic GGUFs shows how it's possible to quantize LLMs like [DeepSeek-V3.1](https://docs.unsloth.ai/models/deepseek-v3.1-how-to-run-locally) (671B) down to just **1-bit** or **3-bit**, and still be able t - Network accessline 8764
Previously, [we demonstrated](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) how Unsloth Dynamic GGUFs outperform other quantization methods on 5-shot MMLU and KL Divergence. Now, we’re showcasing their performance on independent - Network accessline 8766
[Credential-related source omitted] - Network accessline 8774
**Why the** [**Aider Polyglot**](https://aider.chat/docs/leaderboards/) **benchmark?** Aider is one of the most comprehensive measures of how well LLMs can write, code, follow instructions, and apply changes without human intervention, maki - Network accessline 8776
{% hint style="success" %} The **key advantage** of using the Unsloth package and models is our active role in ***fixing critical bugs*** in major models. We've collaborated directly with teams behind [Qwen3](https://www.reddit.com/r/LocalL - Network accessline 8777
The **key advantage** of using the Unsloth package and models is our active role in ***fixing critical bugs*** in major models. We've collaborated directly with teams behind [Qwen3](https://www.reddit.com/r/LocalLLaMA/comments/1kaodxu/qwen3 - Network accessline 8786
In Nov 2024, our [4-bit Dynamic](https://unsloth.ai/blog/dynamic-4bit) Quants showcased how you could largely restore QLoRA fine-tuning & model accuracy by just <mark style="background-color:green;">**selectively quantizing layers**</mark>. - Network accessline 8788
Our Dynamic GGUFs are even more effective when paired with our [imatrix calibration dataset](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs#whats-new-in-dynamic-v2.0), designed for chat and coding performance. All of this enabled - Network accessline 8795
[Credential-related source omitted] - Network accessline 8800
[Credential-related source omitted] - Network accessline 8804
We also showed dynamic benchmarks in <https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs> for Gemma 3 and Llama 4 Scout, showing how effective our methodology is: - Network accessline 8809
[Credential-related source omitted] - Network accessline 8812
[Credential-related source omitted] - Network accessline 8824
Benchmark experiments were mainly conducted by [David Sluys](https://www.linkedin.com/in/david-sluys-231348208/) (neolithic5452 on [Aider Discord](https://discord.com/channels/1131200896827654144/1408293692074360914)), a trusted community c - Network accessline 8863
[Credential-related source omitted] - Network accessline 8874
[Credential-related source omitted] - Network accessline 8890
[Credential-related source omitted] - Network accessline 8896
See [here](https://huggingface.co/unsloth/DeepSeek-V3.1-GGUF?chat_template=default\&format=true) for our fixed chat template or [here](https://huggingface.co/unsloth/DeepSeek-V3.1/raw/main/chat_template.jinja) for a raw jinja file. - Network accessline 8902
[Credential-related source omitted] - Network accessline 8906
Head over to our [DeepSeek V3.1 guide](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/deepseek-r1-how-to-run-locally/deepseek-r1-dynamic-1.58-bit) or to quickly get the dynamic 2bit version, do: - Network accessline 8925
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8926
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 8927
git clone https://github.com/ggml-org/llama.cpp - Possible obfuscationline 9050
* <U+200B>**DeepSeek-R1-Distill-Llama-8B** is a fine-tuned version of Llama-3.1-8B. DeepSeek utilized data generated by DeepSeek-R1, to fine-tune Llama-3.1-8B. This process, known as distillation (a subcategory of fine-tuning), injects the data in - Network accessline 9052
With [Unsloth](https://github.com/unslothai/unsloth), you can fine-tune for free on Colab, Kaggle, or locally with just 3GB VRAM by using our [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). By fine-tuning a pre-trained m - Network accessline 9068
You may have heard that fine-tuning does not make a model learn new knowledge or RAG performs better than fine-tuning. That is **false**. Read more FAQ + misconceptions [here](https://docs.unsloth.ai/beginner-start-here/faq-+-is-fine-tuning - Network accessline 9070
{% content-ref url="beginner-start-here/faq-+-is-fine-tuning-right-for-me" %} [faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 9071
[faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 9081
[Credential-related source omitted] - Network accessline 9085
We recommend starting with **Instruct models**, as they allow direct fine-tuning using conversational chat templates (ChatML, ShareGPT etc.) and require less data compared to **Base models** (which uses Alpaca, Vicuna etc). Learn more about - Network accessline 9087
* Model names ending in **`unsloth-bnb-4bit`** indicate they are [**Unsloth dynamic 4-bit**](https://unsloth.ai/blog/dynamic-4bit) **quants**. These models consume slightly more VRAM than standard BitsAndBytes 4-bit models but offer signifi - Network accessline 9099
We recommend starting with QLoRA, as it is one of the most accessible and effective methods for training models. Our [dynamic 4-bit](https://unsloth.ai/blog/dynamic-4bit) quants, the accuracy loss for QLoRA compared to LoRA is now largely r - Network accessline 9101
You can also do [Text-to-speech (TTS)](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning), [reasoning (GRPO)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide), [vision](https://docs.unsloth.ai/basics/vision-f - Network accessline 9105
{% content-ref url="fine-tuning-llms-guide/what-model-should-i-use" %} [what-model-should-i-use](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/what-model-should-i-use) - Network accessline 9106
[what-model-should-i-use](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/what-model-should-i-use) - Network accessline 9111
* You will need to create a dataset usually with 2 columns - question and answer. The quality and amount will largely reflect the end result of your fine-tune so it's imperative to get this part right. * You can [synthetically generate data - Network accessline 9112
* You can [synthetically generate data](https://docs.unsloth.ai/get-started/datasets-guide#synthetic-data-generation) and structure your dataset (into QA pairs) using ChatGPT or local LLMs. - Network accessline 9113
* You can also use our new Synthetic Dataset notebook which automatically parses documents (PDFs, videos etc.), generates QA pairs and auto cleans data using local models like Llama 3.2. [Access the notebook here.](https://colab.research.go - Network accessline 9119
{% content-ref url="fine-tuning-llms-guide/datasets-guide" %} [datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 9120
[datasets-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/datasets-guide) - Network accessline 9123
For most of our notebook examples, we utilize the [Alpaca dataset](https://docs.unsloth.ai/basics/tutorial-how-to-finetune-llama-3-and-use-in-ollama#id-6.-alpaca-dataset) however other notebooks like Vision will use different datasets which - Network accessline 9127
Learn how to choose the right [hyperparameters](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) using best practices from research and real-world experiments - and understand how each one affects your - Network accessline 9131
{% content-ref url="fine-tuning-llms-guide/lora-hyperparameters-guide" %} [lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 9132
[lora-hyperparameters-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/lora-hyperparameters-guide) - Network accessline 9137
We would recommend beginners to utilise our pre-made [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) first as it's the easiest way to get started with guided steps. However, if installing locally is a must, you can instal - Network accessline 9139
{% content-ref url="beginner-start-here/unsloth-requirements" %} [unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 9140
[unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 9145
{% content-ref url="install-and-update" %} [install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 9146
[install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 9155
[Credential-related source omitted] - Network accessline 9166
For testing, you can also take 20% of your training data and use that for testing. If you already used all of the training data, then you have to manually evaluate it. You can also use automatic eval tools like EleutherAI’s [lm-evaluation- - Network accessline 9170
[Credential-related source omitted] - Network accessline 9174
[Credential-related source omitted] - Network accessline 9180
{% content-ref url="../basics/running-and-saving-models" %} [running-and-saving-models](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 9181
[running-and-saving-models](https://docs.unsloth.ai/basics/running-and-saving-models) - Network accessline 9184
We can now save the finetuned model as a small 100MB file called a LoRA adapter like below. You can instead push to the Hugging Face hub as well if you want to upload your model! Remember to get a Hugging Face token via: <https://huggingfac - Network accessline 9186
[Credential-related source omitted] - Network accessline 9190
[Credential-related source omitted] - Network accessline 9194
To learn more about fine-tuning tips and tricks, head over to our blogs which provide tremendous and educational value: <https://unsloth.ai/blog/> - Network accessline 9196
If you need any help on fine-tuning, you can also join our Discord server [here](https://discord.gg/unsloth) or [Reddit r/unsloth](https://www.reddit.com/r/unsloth/). Thanks for reading and hopefully this was helpful! - Network accessline 9198
[Credential-related source omitted] - Network accessline 9245
# Fix up addCriterion issues # See https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl#qwen-2.5-vl-vision-rl-issues-and-quirks - Network accessline 9246
# See https://docs.unsloth.ai/new/vision-reinforcement-learning-vlm-rl#qwen-2.5-vl-vision-rl-issues-and-quirks - Network accessline 9292
[reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide "mention") - Network accessline 9294
***Authors:** A huge thank you to* [*Keith*](https://www.linkedin.com/in/keith-truongcao-7bb84a23b/) *and* [*Datta*](https://www.linkedin.com/in/datta0/) *for contributing to this article!* - Network accessline 9311
This was [reported](https://github.com/QwenLM/Qwen2.5-VL/issues/759) as well in Qwen2.5-VL-7B-Instruct output unexpected results "addCriterion". In fact we see this as well! We tried both non Unsloth, bfloat16 and float16 machines and other - Network accessline 9320
[Credential-related source omitted] - Network accessline 9324
[Credential-related source omitted] - Network accessline 9339
This update in addition adds GSPO ([Group Sequence Policy Optimization](https://arxiv.org/abs/2507.18071)) which is a variant of GRPO made by the Qwen team at Alibaba. They noticed that GRPO implicitly results in importance weights for each - Network accessline 9343
[Credential-related source omitted] - Network accessline 9345
[Credential-related source omitted] - Network accessline 9349
[Credential-related source omitted] - Network accessline 9353
[Credential-related source omitted] - Network accessline 9371
See our guide below for the complete process on how to save to [Ollama](https://github.com/ollama/ollama): - Network accessline 9373
{% content-ref url="../../get-started/fine-tuning-llms-guide/tutorial-how-to-finetune-llama-3-and-use-in-ollama" %} [tutorial-how-to-finetune-llama-3-and-use-in-ollama](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/tutorial-how - Network accessline 9374
[tutorial-how-to-finetune-llama-3-and-use-in-ollama](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide/tutorial-how-to-finetune-llama-3-and-use-in-ollama) - Network accessline 9379
You can save the finetuned model as a small 100MB file called a LoRA adapter like below. You can instead push to the Hugging Face hub as well if you want to upload your model! Remember to get a Hugging Face token via: <https://huggingface.c - Network accessline 9381
[Credential-related source omitted] - Network accessline 9385
[Credential-related source omitted] - Network accessline 9391
[Credential-related source omitted] - Network accessline 9395
[Credential-related source omitted] - Network accessline 9399
Head over to <https://github.com/ggerganov/llama.cpp> to learn more about GGUF. We also have some manual instructions of how to export to GGUF if you want here: <https://github.com/unslothai/unsloth/wiki#manually-saving-to-gguf> - Network accessline 9403
[Credential-related source omitted] - Network accessline 9407
[Credential-related source omitted] - Network accessline 9411
[Credential-related source omitted] - Network accessline 9417
[Credential-related source omitted] - Network accessline 9421
[Credential-related source omitted] - Network accessline 9425
[Credential-related source omitted] - Network accessline 9433
* It might also be because your inference engine adds an unnecessary "start of sequence" token (or the lack of thereof on the contrary) so ensure you check both hypotheses! * <mark style="background-color:green;">**Use our conversational no - Network accessline 9434
* <mark style="background-color:green;">**Use our conversational notebooks to force the chat template - this will fix most issues.**</mark> * Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/ - Network accessline 9435
* Qwen-3 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(14B\)-Reasoning-Conversational.ipynb) - Network accessline 9436
* Gemma-3 4B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\).ipynb) - Network accessline 9437
* Llama-3.2 3B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3.2_\(1B_and_3B\)-Conversational.ipynb) - Network accessline 9438
* Phi-4 14B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Phi_4-Conversational.ipynb) - Network accessline 9439
* Mistral v0.3 7B Conversational notebook [**Open in Colab**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Mistral_v0.3_\(7B\)-Conversational.ipynb) - Network accessline 9440
* **More notebooks in our** [**notebooks docs**](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 9463
{% hint style="success" %} [**Sept 10, 2025 update:**](https://docs.unsloth.ai/new/unsloth-dynamic-ggufs-on-aider-polyglot) You asked for tougher benchmarks, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF s - Network accessline 9464
[**Sept 10, 2025 update:**](https://docs.unsloth.ai/new/unsloth-dynamic-ggufs-on-aider-polyglot) You asked for tougher benchmarks, so we’re showcasing Aider Polyglot results! Our Dynamic 3-bit DeepSeek V3.1 GGUF scores **75.6%**, surpassing - Network accessline 9466
The **key advantage** of using the Unsloth package and models is our active role in ***fixing critical bugs*** in major models. We've collaborated directly with teams behind [Qwen3](https://www.reddit.com/r/LocalLLaMA/comments/1kaodxu/qwen3 - Network accessline 9471
[Credential-related source omitted] - Network accessline 9485
| **Qwen3:** [0.6B](https://huggingface.co/unsloth/Qwen3-0.6B-GGUF) • [1.7B](https://huggingface.co/unsloth/Qwen3-1.7B-GGUF) • [4B](https://huggingface.co/unsloth/Qwen3-4B-GGUF) • [8B](https://huggingface.co/unsloth/Qwen3-8B-GGUF) • [14B](h - Network accessline 9486
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- - Network accessline 9487
| **DeepSeek:** [R1-0528](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/deepseek-r1-0528-how-to-run-locally#model-uploads) • [V3-0324](https://huggingface.co/unsloth/DeepSeek-V3-0324-GGUF-UD) • [R1-Distill-Llama](ht - Network accessline 9488
| **Gemma 3:** [4B](https://huggingface.co/unsloth/gemma-3-4b-it-GGUF) • [12B](https://huggingface.co/unsloth/gemma-3-12b-it-GGUF) • [27B](https://huggingface.co/unsloth/gemma-3-27b-it-GGUF) • [QAT](https://huggingface.co/unsloth/gemma-3-12 - Network accessline 9494
[Accuracy is Not All You Need](https://arxiv.org/pdf/2407.09141) showcases how pruning layers, even by selecting unnecessary ones still yields vast differences in terms of "flips". A "flip" is defined as answers changing from incorrect to c - Network accessline 9496
[Credential-related source omitted] - Network accessline 9506
Most frameworks report perplexity and KL Divergence using a test set of Wikipedia articles. However, we noticed using the calibration dataset which is also Wikipedia related causes quants to overfit, and attain lower perplexity scores. We u - Network accessline 9514
[Credential-related source omitted] - Network accessline 9516
* Llama 3.1 (8B) Instruct has a MMLU 5 shot accuracy of 67.8% using a naive MMLU implementation. We find however Llama **tokenizes "A" and "\_A" (A with a space in front) as different token ids**. If we consider both spaced and non spaced t - Network accessline 9517
* Interestingly Llama 3 as per Eleuther AI's [LLM Harness](https://github.com/EleutherAI/lm-evaluation-harness/blob/main/lm_eval/tasks/llama3/instruct/mmlu/_continuation_template_yaml) also appends <mark style="background-color:purple;">**" - Network accessline 9518
* There are many other subtle issues, and so to benchmark everything in a controlled environment, we designed our own MMLU implementation from scratch by investigating [github.com/hendrycks/test](https://github.com/hendrycks/test) directly, - Network accessline 9524
1. Q4\_0 GGUF - Quantizes all layers to Q4\_0 via the formula `w = q * block_scale` with each block having 32 weights. See [llama.cpp wiki ](https://github.com/ggml-org/llama.cpp/wiki/Tensor-Encoding-Schemes)for more details. - Network accessline 9525
2. int4 version - presumably [TorchAO int4 style](https://github.com/pytorch/ao/blob/main/torchao/quantization/README.md)? - Network accessline 9555
[Credential-related source omitted] - Network accessline 9596
* Llama 4 Scout changed the RoPE Scaling configuration in their official repo. We helped resolve issues in llama.cpp to enable this [change here](https://github.com/ggml-org/llama.cpp/pull/12889) - Network accessline 9598
[Credential-related source omitted] - Network accessline 9599
* Llama 4's QK Norm's epsilon for both Scout and Maverick should be from the config file - this means using 1e-05 and not 1e-06. We helped resolve these in [llama.cpp](https://github.com/ggml-org/llama.cpp/pull/12889) and [transformers](htt - Network accessline 9600
* The Llama 4 team and vLLM also independently fixed an issue with QK Norm being shared across all heads (should not be so) [here](https://github.com/vllm-project/vllm/pull/16311). MMLU Pro increased from 68.58% to 71.53% accuracy. - Network accessline 9601
* [Wolfram Ravenwolf](https://x.com/WolframRvnwlf/status/1909735579564331016) showcased how our GGUFs via llama.cpp attain much higher accuracy than third party inference providers - this was most likely a combination of the issues explaine - Network accessline 9603
[Credential-related source omitted] - Network accessline 9617
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9618
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 9619
git clone https://github.com/ggml-org/llama.cpp - Network accessline 9652
[Credential-related source omitted] - Network accessline 9658
A huge thank you to Rohan Pandey for his [Flex Attention implementation](https://x.com/khoomeik/status/1955693558914310608), which directly inspired the development of Unsloth's Flex Attention implementation. - Network accessline 9664
OpenAI leveraged **Attention Sinks** from the Efficient Streaming Language Models with Attention Sinks [paper](https://arxiv.org/abs/2309.17453) which shows that you can use a small sliding window, except you must add a global attention on - Network accessline 9666
[Credential-related source omitted] - Network accessline 9672
[Credential-related source omitted] - Network accessline 9674
The paper also shows that the [Attention Is Off By One method](https://www.evanmiller.org/attention-is-off-by-one.html) does partially work, except one must also add a few extra sink tokens to get lower perplexities. **The paper shows that - Network accessline 9676
[Credential-related source omitted] - Network accessline 9680
Flex Attention <https://pytorch.org/blog/flexattention/> is extremely powerful as it provides the practitioner 2 customization routes for the attention mechanism - a **score modifier (f)** and a **masking function (M)**. - Network accessline 9692
By using some visualization utilities from [Flex Attention's Github repo](https://github.com/meta-pytorch/attention-gym), we can visualize this. Assume the sequence length was 16, and a sliding window of 5. On the left is the last sink colu - Network accessline 9698
[Credential-related source omitted] - Network accessline 9704
[Credential-related source omitted] - Network accessline 9708
**Interesting finding**: The official Flex Attention sliding window implementations considers the window size as the number of last tokens **PLUS ONE** as it includes the current token. The HuggingFace and GPT OSS implementations strictly o - Network accessline 9716
[Credential-related source omitted] - Network accessline 9722
[Credential-related source omitted] - Network accessline 9726
We also confirmed through OpenAI's official GPT-OSS implementation on whether we attend to the last N or N+1 tokens here: <https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py> - Network accessline 9728
[Credential-related source omitted] - Network accessline 9736
[Credential-related source omitted] - Network accessline 9770
To run inference on the merged model, you can use vLLM and Llama.cpp among others. OpenAI recommends these [inference settings](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/..#recommended-settings) for both models: `tempe - Network accessline 9774
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 9794
We [recently collaborated with Hugging Face](https://github.com/huggingface/transformers/pull/40197) to resolve inference issues by using OpenAI’s kernels and ensuring that `swiglu_limit = 7.0` is correctly applied during MXFP4 inference. - Network accessline 9800
[Credential-related source omitted] - Network accessline 9812
[Credential-related source omitted] - Network accessline 9816
OpenAI's sink token implementation is [provided here](https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py). We provide it below: - Network accessline 9820
The HuggingFace transformers implementation is [provided here](https://github.com/huggingface/transformers/blob/main/src/transformers/models/gpt_oss/modeling_gpt_oss.py). We also provide it below: - Access to secretsline 9868
[Credential-related source omitted] - Access to secretsline 9876
[Credential-related source omitted] - Dangerous shell operationline 9887
* Use `USER_PASSWORD` for sudo operations inside container - Network accessline 9949
{% columns %} {% column %} With Unsloth and TorchAO’s QAT support, you can also fine-tune a model in Unsloth and seamlessly export it to [ExecuTorch](https://github.com/pytorch/executorch) (PyTorch’s solution for on-device inference) and de - Network accessline 9951
With Unsloth and TorchAO’s QAT support, you can also fine-tune a model in Unsloth and seamlessly export it to [ExecuTorch](https://github.com/pytorch/executorch) (PyTorch’s solution for on-device inference) and deploy it directly on mobile. - Network accessline 9958
[Credential-related source omitted] - Network accessline 9966
Then **try QAT with our free** [**Qwen3 (4B) notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)_Instruct-QAT.ipynb) - Network accessline 9986
DeepSeek developed [GRPO](https://unsloth.ai/blog/grpo) (Group Relative Policy Optimization) to train their R1 reasoning models. - Network accessline 9988
These instructions are for our pre-made Google Colab [notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks). If you are installing Unsloth locally, you can also copy our notebooks inside your favorite code editor. We'll be using - Network accessline 9990
| [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) **-** GSPO | [**Qwen2.5-VL**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen2_5_7B_VL_ - Network accessline 9992
| [**Qwen3 (4B)**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Qwen3_\(4B\)-GRPO.ipynb) - Advanced | [**DeepSeek-R1-0528-Qwen3-8B**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb - Network accessline 9997
If you're using our Colab notebook, click **Runtime > Run all**. We'd highly recommend you checking out our [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) before getting started. - Network accessline 9999
If installing locally, ensure you have the correct [requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) and use `pip install unsloth` on Linux or follow our [Windows install ](https://docs.unsloth.ai/ - Network accessline 10001
[Credential-related source omitted] - Network accessline 10006
Before we get started, it is recommended to learn more about GRPO, reward functions and how they work. Read more about them including [tips & tricks](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#basics-tips)[ here] - Network accessline 10013
We have pre-selected optimal settings for the best results for you already and you can change the model to whichever you want listed in our [supported models](https://docs.unsloth.ai/get-started/all-our-models). Would not recommend changing - Network accessline 10015
{% hint style="success" %} For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 10016
For **advanced GRPO** documentation on batching, generation and training parameters, [read our guide!](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/advanced-rl-documentation) - Network accessline 10019
[Credential-related source omitted] - Network accessline 10022
We have pre-selected OpenAI's [GSM8K](https://huggingface.co/datasets/openai/gsm8k) dataset which contains grade school math problems but you could change it to your own or any public one on Hugging Face. You can read more about [datasets h - Network accessline 10026
[Credential-related source omitted] - Network accessline 10047
{% hint style="success" %} **NEW!** Qwen3 got an update in July 2025. Run & fine-tune the latest model: [**Qwen-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) - Network accessline 10048
**NEW!** Qwen3 got an update in July 2025. Run & fine-tune the latest model: [**Qwen-2507**](https://docs.unsloth.ai/models/qwen3-how-to-run-and-fine-tune/qwen3-2507) - Network accessline 10051
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run & fine-tune quantized Qwen LLMs with minimal accuracy loss. - Network accessline 10055
[Unsloth](https://github.com/unslothai/unsloth) also now supports fine-tuning and [Reinforcement Learning (RL)](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) of Qwen3 and Qwen3 MOE models — 2x faster, with 70% less VR - Network accessline 10061
| Dynamic 2.0 GGUF (to run) - Network accessline 10063
| <ul><li><a href="https://huggingface.co/unsloth/Qwen3-0.6B-GGUF">0.6B</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-1.7B-GGUF">1.7B</a></li><li><a href="https://huggingface.co/unsloth/Qwen3-4B-GGUF">4B</a></li><li><a href="htt - Network accessline 10098
Qwen3 models come with built-in "thinking mode" to boost reasoning and improve response quality - similar to how [QwQ-32B](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms/qwq-32b-how-to-run-effectively) worked. Instru - Network accessline 10136
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 10183
## Go to https://docs.unsloth.ai for advanced tips like - Network accessline 10185
**URL:** llms-txt#go-to-https://docs.unsloth.ai-for-advanced-tips-like - Network accessline 10195
We're introducing GSPO which is a variant of [GRPO](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide/..#from-rlhf-ppo-to-grpo-and-rlvr) made by the Qwen team at Alibaba. They noticed the observation that when GRPO takes i - Network accessline 10197
* Use our free GSPO notebooks for: [**gpt-oss-20b**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) and [**Qwen2.5-VL**](https://colab.research.google.com/github/unslothai/notebooks/blo - Network accessline 10201
[Credential-related source omitted] - Network accessline 10203
[Credential-related source omitted] - Network accessline 10207
[Credential-related source omitted] - Network accessline 10211
[Credential-related source omitted] - Network accessline 10266
With [Unsloth](https://github.com/unslothai/unsloth), you can fine-tune TTS models 1.5x faster with 50% less memory than other implementations with Flash Attention 2. This support includes Sesame CSM, Orpheus, and models supported by transf - Network accessline 10272
We've uploaded TTS models (original and quantized variants) to our [Hugging Face page](https://huggingface.co/collections/unsloth/text-to-speech-tts-models-68007ab12522e96be1e02155). - Network accessline 10276
| [Sesame-CSM (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Sesame_CSM_\(1B\)-TTS.ipynb) | [Orpheus-TTS (3B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Orpheus_\(3B\)-TTS.ipy - Network accessline 10278
| [Spark-TTS (0.5B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Spark_TTS_\(0_5B\).ipynb) | [Llasa-TTS (1B)](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llasa_TTS_\(1B\).ipynb) - Network accessline 10312
At minimum, a TTS fine-tuning dataset consists of **audio clips and their corresponding transcripts** (text). Let’s use the [*Elise* dataset](https://huggingface.co/datasets/MrDragonFox/Elise) which is \~3 hour single-speaker English speech - Network accessline 10314
* [`MrDragonFox/Elise`](https://huggingface.co/datasets/MrDragonFox/Elise) – an augmented version with **emotion tags** (e.g. \<sigh>, \<laughs>) embedded in the transcripts. These tags in angle brackets indicate expressions (laughter, sigh - Network accessline 10315
* [`Jinsaryko/Elise`](https://huggingface.co/datasets/Jinsaryko/Elise) – base version with transcripts without special tags. - Network accessline 10361
You can now run **Grok 2** (aka Grok 2.5), the 270B parameter model by xAI. Full precision requires **539GB**, while the Unsloth Dynamic 3-bit version shrinks size down to just **118GB** (a 75% reduction). GGUF: [Grok-2-GGUF](https://huggin - Network accessline 10363
The **3-bit Q3\_K\_XL** model runs on a single **128GB Mac** or **24GB VRAM + 128GB RAM**, achieving **5+ tokens/s** inference. Thanks to the llama.cpp team and community for [supporting Grok 2](https://github.com/ggml-org/llama.cpp/pull/15 - Network accessline 10365
All uploads use Unsloth [Dynamic 2.0](https://docs.unsloth.ai/basics/unsloth-dynamic-2.0-ggufs) for SOTA 5-shot MMLU and KL Divergence performance, meaning you can run quantized Grok LLMs with minimal accuracy loss. - Network accessline 10399
{% stepper %} {% step %} Install the specific `llama.cpp` PR for Grok 2 on [GitHub here](https://github.com/ggml-org/llama.cpp/pull/15539). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if - Network accessline 10401
Install the specific `llama.cpp` PR for Grok 2 on [GitHub here](https://github.com/ggml-org/llama.cpp/pull/15539). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or - Network accessline 10425
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10426
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10427
git clone https://github.com/ggml-org/llama.cpp cd llama.cpp && git fetch origin pull/15539/head:MASTER && git checkout MASTER && cd .. cmake llama.cpp -B llama.cpp/build \ - Network accessline 10481
See <https://docs.sglang.ai/get_started/install.html> for more details - Network accessline 10546
<table data-full-width="false"><thead><tr><th>MoE Bits</th><th>Type</th><th>Disk Size</th><th>Link</th><th>Details</th></tr></thead><tbody><tr><td>1.78bit</td><td>IQ1_S</td><td>33.8GB</td><td><a href="https://huggingface.co/unsloth/Llama-4- - Network accessline 10554
| MoE Bits | Type | Disk Size | HF Link | | -------- | --------- | --------- | ---------------------------------------------------------------- - Network accessline 10555
| -------- | --------- | --------- | --------------------------------------------------------------------------------------------------- | | 1.78bit | IQ1\_S | 122GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E- - Network accessline 10556
| 1.78bit | IQ1\_S | 122GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ1_S) | - Network accessline 10557
| 1.93bit | IQ1\_M | 128GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ1_M) | - Network accessline 10558
| 2.42-bit | IQ2\_XXS | 140GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-IQ2_XXS) | - Network accessline 10559
| 2.71-bit | Q2\_K\_XL | 151B | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q2_K_XL) | - Network accessline 10560
| 3.5-bit | Q3\_K\_XL | 193GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q3_K_XL) | - Network accessline 10561
| 4.5-bit | Q4\_K\_XL | 243GB | [Link](https://huggingface.co/unsloth/Llama-4-Maverick-17B-128E-Instruct-GGUF/tree/main/UD-Q4_K_XL) | - Network accessline 10574
* A BOS token of `<|begin_of_text|>` is auto added during tokenization (do NOT add it manually!)  * According to <https://www.llama.com/docs/model-cards-and-prompt-formats/llama4_omni/>, there is an <mark style="background-color:yellow - Network accessline 10575
* According to <https://www.llama.com/docs/model-cards-and-prompt-formats/llama4_omni/>, there is an <mark style="background-color:yellow;">**suggested optional system prompt**</mark>, which is listed below: - Network accessline 10579
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 10581
2. Download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose Q4\_K\_M, or other quantized versions (like BF16 full precision). More versions at: <https://huggingface.co/unsloth/Llama-4-Scout-17B-16 - Network accessline 10607
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10608
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 10609
git clone https://github.com/ggml-org/llama.cpp - Access to secretsline 10634
[Credential-related source omitted] - Network accessline 10741
[Credential-related source omitted] - Network accessline 10763
Unsloth supports fine-tuning of DeepSeek-OCR. Since the default model isn’t fine-tunable, we added changes from the [Stranger Vision HF](https://huggingface.co/strangervisionhf) team, to then enable fine-tuning. As usual, Unsloth trains Dee - Network accessline 10767
* DeepSeek-OCR: [Fine-tuning only notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\).ipynb) - Network accessline 10768
* DeepSeek-OCR: [Fine-tuning + Evaluation notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Deepseek_OCR_\(3B\)-Eval.ipynb) (A100) - Network accessline 10800
You can now train OpenAI [gpt-oss](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune) with RL and GRPO via [Unsloth](https://github.com/unslothai/unsloth). Unsloth now offers the <mark style="background-color:$success;">**fast - Network accessline 10802
Since reinforcement learning (RL) on gpt-oss isn't yet vLLM compatible, we had to rewrite the inference code from Transformers code to deliver 3x faster inference for gpt-oss at \~21 tokens/s. For BF16, Unsloth also achieves the fastest inf - Network accessline 10804
* **Free notebook:** [**gpt-oss-20b GRPO Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb)\ - Network accessline 10807
[Credential-related source omitted] - Network accessline 10811
Unsloth is the only framework to support 4-bit RL for gpt-oss. All performance gains are due to Unsloth's unique [weight sharing](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#what-unsloth-offers-for-rl), [Flex Attenti - Network accessline 10813
{% hint style="warning" %} Reminder: <mark style="background-color:$info;">**Flash Attention 3 (FA3) is**</mark> [<mark style="background-color:$info;">**unsuitable for gpt-oss**</mark>](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and - Network accessline 10814
Reminder: <mark style="background-color:$info;">**Flash Attention 3 (FA3) is**</mark> [<mark style="background-color:$info;">**unsuitable for gpt-oss**</mark>](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/long-context-gpt - Network accessline 10821
[Credential-related source omitted] - Network accessline 10823
Inference is crucial in RL training, since we need it to generate candidate solutions before maximizing some reward function ([see here](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) for a more detailed explanation). - Network accessline 10825
vLLM does not support RL for gpt-oss since it lacks BF16 training and LoRA support for gpt-oss. Without Unsloth, only training via full precision BF16 works, making <mark style="background-color:$warning;">memory use</mark> <mark style="bac - Network accessline 10833
We had to change our implementation for attention sinks as [described here](https://docs.unsloth.ai/models/gpt-oss-how-to-run-and-fine-tune/long-context-gpt-oss-training) to allow generation to work with left padding. We had to get the logs - Network accessline 10855
The harder part is batch generation. Sequences differ in length, so padding complicates mask creation. Flex Attention had a lot of [challenges](https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665) and dynamic mas - Network accessline 10857
> *Quote from* [*https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665*](https://github.com/meta-pytorch/attention-gym/issues/15#issuecomment-2284148665) - Network accessline 10871
[Credential-related source omitted] - Network accessline 10886
It's the reason models learn to modify unit tests to pass coding challenges, and these are critical blockers for real world deployment. Some other good examples are from [Wikipedia](https://en.wikipedia.org/wiki/Reward_hacking). - Network accessline 10888
<div align="center"><figure><img src="https://i.pinimg.com/originals/55/e0/1b/55e01b94a9c5546b61b59ae300811c83.gif" alt="" width="188"><figcaption></figcaption></figure></div> - Network accessline 10890
In our [free gpt-oss RL notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) we explore how to counter reward hacking in a code generation setting and showcase tangible solutions to - Network accessline 10908
LLMs often struggle with tasks that involve complex environments. However, by applying [reinforcement learning](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) (RL) and designing a custom [reward function](https://docs. - Network accessline 10910
RL can be adapted for tasks such as auto kernel or strategy creation. This tutorial shows how to train **gpt-oss** with [**GRPO**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide#from-rlhf-ppo-to-grpo-and-rlvr) and Unslo - Network accessline 10914
| [2048 notebook](https://colab.research.google.com/github/openai/gpt-oss/blob/main/examples/reinforcement-fine-tuning.ipynb) (Official OpenAI example) | [Kernel generation notebook](https://colab.research.google.com/github/unslothai/notebo - Network accessline 10974
Unsloth now supports NVIDIA’s Blackwell architecture GPUs, including RTX 50-series GPUs (5060–5090), RTX PRO 6000, and GPUS such as B200, B40, GB100, GB102 and more! You can read the official [NVIDIA blogpost here](https://developer.nvidia. - Network accessline 10976
Unsloth is now compatible with every NVIDIA GPU from 2018+ including the [DGX Spark](https://docs.unsloth.ai/basics/fine-tuning-llms-with-nvidia-dgx-spark-and-unsloth). - Network accessline 10978
> **Our new** [**Docker image**](#docker) **supports Blackwell. Run the Docker image and start training!** [**Guide**](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) - Network accessline 11024
By the end of this tutorial, you will create a custom chatbot by **finetuning Llama-3** with [**Unsloth**](https://github.com/unslothai/unsloth) for free. It can run locally via [**Ollama**](https://github.com/ollama/ollama) on your PC, or - Network accessline 11026
[Credential-related source omitted] - Network accessline 11028
**Unsloth** makes finetuning much easier, and can automatically export the finetuned model to **Ollama** with integrated automatic `Modelfile` creation! If you need help, you can join our Discord server: <https://discord.com/invite/unsloth> - Network accessline 11030
{% hint style="warning" %} **If you’d like to copy or save the code, everything is available in our** [**Ollama Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb)**. You c - Network accessline 11031
**If you’d like to copy or save the code, everything is available in our** [**Ollama Colab notebook**](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb)**. You can use it directly there or - Network accessline 11036
[Unsloth](https://github.com/unslothai/unsloth) makes finetuning LLMs like Llama-3, Mistral, Phi-3 and Gemma 2x faster, use 70% less memory, and with no degradation in accuracy! We will be using Google Colab which provides a free GPU during - Network accessline 11038
* [Ollama Llama-3 Alpaca](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Llama3_\(8B\)-Ollama.ipynb) (notebook which we will be using) - Network accessline 11039
* [CSV/Excel Ollama Guide](https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharing) - Network accessline 11043
[Credential-related source omitted] - Network accessline 11047
[Ollama ](https://github.com/ollama/ollama)allows you to run language models from your own computer in a quick and simple way! It quietly launches a program which can run a language model like Llama-3 in the background. If you suddenly want - Network accessline 11049
[Credential-related source omitted] - Network accessline 11053
[Credential-related source omitted] - Network accessline 11063
[Credential-related source omitted] - Network accessline 11071
[Credential-related source omitted] - Network accessline 11083
[Credential-related source omitted] - Network accessline 11089
[Credential-related source omitted] - Network accessline 11110
Options include `True`, `False` and `"unsloth"`. We suggest `"unsloth"` since we reduce memory usage by an extra 30% and support extremely long context finetunes.You can read up here: <https://unsloth.ai/blog/long-context> for more details. - Network accessline 11121
[Credential-related source omitted] - Network accessline 11125
You can access the GPT4 version of the Alpaca dataset here: <https://huggingface.co/datasets/vicgalle/alpaca-gpt4>. An older first version of the dataset is here: <https://github.com/tatsu-lab/stanford_alpaca>. Below shows some examples of - Network accessline 11127
[Credential-related source omitted] - Network accessline 11131
[Credential-related source omitted] - Network accessline 11137
[Credential-related source omitted] - Network accessline 11143
[Credential-related source omitted] - Network accessline 11147
[Credential-related source omitted] - Network accessline 11151
To access the Titanic finetuning notebook or if you want to upload a CSV or Excel file, go here: <https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharing> - Network accessline 11153
[Credential-related source omitted] - Network accessline 11163
[Credential-related source omitted] - Network accessline 11189
[Credential-related source omitted] - Network accessline 11193
[Credential-related source omitted] - Network accessline 11199
[Credential-related source omitted] - Network accessline 11205
[Credential-related source omitted] - Network accessline 11209
[Credential-related source omitted] - Network accessline 11213
[Credential-related source omitted] - Network accessline 11217
[Credential-related source omitted] - Network accessline 11221
[Credential-related source omitted] - Network accessline 11223
Or in the Titanic prediction task where you had to predict if a passenger died or survived in this Colab notebook which includes CSV and Excel uploading: <https://colab.research.google.com/drive/1VYkncZMfGFkeCEgN2IzbZIKEDkyQuJAS?usp=sharin - Network accessline 11225
[Credential-related source omitted] - Network accessline 11231
[Credential-related source omitted] - Network accessline 11246
[Credential-related source omitted] - Network accessline 11252
[Credential-related source omitted] - Network accessline 11256
[Credential-related source omitted] - Network accessline 11262
We can now save the finetuned model as a small 100MB file called a LoRA adapter like below. You can instead push to the Hugging Face hub as well if you want to upload your model! Remember to get a Hugging Face token via <https://huggingface - Network accessline 11264
[Credential-related source omitted] - Network accessline 11268
[Credential-related source omitted] - Network accessline 11274
[Credential-related source omitted] - Network accessline 11278
[Credential-related source omitted] - Network accessline 11282
Head over to <https://github.com/ggerganov/llama.cpp> to learn more about GGUF. We also have some manual instructions of how to export to GGUF if you want here: <https://github.com/unslothai/unsloth/wiki#manually-saving-to-gguf> - Network accessline 11286
[Credential-related source omitted] - Network accessline 11290
[Credential-related source omitted] - Network accessline 11294
[Credential-related source omitted] - Network accessline 11300
[Credential-related source omitted] - Network accessline 11304
[Credential-related source omitted] - Network accessline 11310
[Credential-related source omitted] - Network accessline 11314
[Credential-related source omitted] - Network accessline 11316
[Credential-related source omitted] - Network accessline 11320
[Credential-related source omitted] - Network accessline 11324
[Credential-related source omitted] - Network accessline 11328
If you want to learn how to do reward modelling, do continued pretraining, export to vLLM or GGUF, do text completion, or learn more about finetuning tips and tricks, head over to our [Github](https://github.com/unslothai/unsloth#-finetune- - Network accessline 11330
If you need any help on finetuning, you can also join our Discord server [here](https://discord.gg/unsloth). If you want help with Ollama, you can also join their server [here](https://discord.gg/ollama). - Network accessline 11334
To access our Alpaca dataset example click [here](https://colab.research.google.com/drive/1WZDi7APtQ9VsvOrQSSC5DDtxq159j8iZ?usp=sharing), and our CSV / Excel finetuning guide is [here](https://colab.research.google.com/drive/1VYkncZMfGFkeCE - Network accessline 11369
## https://github.com/ggerganov/llama.cpp/blob/master/examples/quantize/quantize.cpp#L19 - Network accessline 11371
**URL:** llms-txt#https://github.com/ggerganov/llama.cpp/blob/master/examples/quantize/quantize.cpp#l19 - Network accessline 11396
Google releases Gemma 3 with a new 270M model and the previous 1B, 4B, 12B, and 27B sizes. The 270M and 1B are text-only, while larger models handle both text and vision. We provide GGUFs, and a guide of how to run it effectively, and how t - Network accessline 11398
{% hint style="success" %} **NEW Aug 14, 2025 Update:** Try our fine-tuning [Gemma 3 (270M) notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(270M\).ipynb) and [GGUFs to run](https://huggingface.co - Network accessline 11399
**NEW Aug 14, 2025 Update:** Try our fine-tuning [Gemma 3 (270M) notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(270M\).ipynb) and [GGUFs to run](https://huggingface.co/collections/unsloth/gemma- - Network accessline 11401
Also see our [Gemma 3n Guide](https://docs.unsloth.ai/models/gemma-3-how-to-run-and-fine-tune/gemma-3n-how-to-run-and-fine-tune). - Network accessline 11408
* Fine-tune Gemma 3 (4B) with vision support using our [free Colab notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/Gemma3_\(4B\)-Vision.ipynb) - Network accessline 11417
| GGUF - Network accessline 11419
| <ul><li><a href="https://huggingface.co/unsloth/gemma-3-270m-it-GGUF">270M</a> - new</li><li><a href="https://huggingface.co/unsloth/gemma-3-1b-it-GGUF">1B</a></li><li><a href="https://huggingface.co/unsloth/gemma-3-4b-it-GGUF">4B</a></li - Network accessline 11444
To run the models on your phone, we recommend using any mobile app that can run GGUFs locally on edge devices like phones. After fine-tuning you can export it to GGUF then run it locally on your phone. Ensure your phone has enough RAM/power - Network accessline 11458
1. Obtain the latest `llama.cpp` on [GitHub here](https://github.com/ggml-org/llama.cpp). You can follow the build instructions below as well. Change `-DGGML_CUDA=ON` to `-DGGML_CUDA=OFF` if you don't have a GPU or just want CPU inference. - Network accessline 11462
3. **OR** download the model via (after installing `pip install huggingface_hub hf_transfer` ). You can choose Q4\_K\_M, or other quantized versions (like BF16 full precision). More versions at: <https://huggingface.co/unsloth/gemma-3-27b-i - Network accessline 11479
apt-get update apt-get install pciutils -y curl -fsSL https://ollama.com/install.sh | sh - Dangerous shell operationline 11481
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 11481
curl -fsSL https://ollama.com/install.sh | sh - Network accessline 11491
apt-get update apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11492
apt-get install pciutils build-essential cmake curl libcurl4-openssl-dev -y - Network accessline 11493
git clone https://github.com/ggerganov/llama.cpp - Network accessline 11514
At [Unsloth](https://app.gitbook.com/o/HpyELzcNe0topgVLGCZY/s/xhOjnexMCB3dmuQFQ2Zq/), our mission is to make AI as accurate and accessible as possible. Train, run, evaluate and save gpt-oss, Llama, DeepSeek, TTS, Qwen, Mistral, Gemma LLMs 2 - Network accessline 11518
<a href="beginner-start-here" class="button primary">Get started</a> <a href="https://github.com/unslothai/unsloth" class="button secondary">Our GitHub</a> - Network accessline 11520
[Credential-related source omitted] - Network accessline 11523
{% column %} {% content-ref url="fine-tuning-llms-guide" %} [fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 11524
{% content-ref url="fine-tuning-llms-guide" %} [fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) {% endcontent-ref %} - Network accessline 11525
[fine-tuning-llms-guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) - Network accessline 11528
{% content-ref url="unsloth-notebooks" %} [unsloth-notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 11529
[unsloth-notebooks](https://docs.unsloth.ai/get-started/unsloth-notebooks) - Network accessline 11532
{% column %} {% content-ref url="all-our-models" %} [all-our-models](https://docs.unsloth.ai/get-started/all-our-models) - Network accessline 11533
{% content-ref url="all-our-models" %} [all-our-models](https://docs.unsloth.ai/get-started/all-our-models) {% endcontent-ref %} - Network accessline 11534
[all-our-models](https://docs.unsloth.ai/get-started/all-our-models) - Network accessline 11537
{% content-ref url="../models/tutorials-how-to-fine-tune-and-run-llms" %} [tutorials-how-to-fine-tune-and-run-llms](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms) - Network accessline 11538
[tutorials-how-to-fine-tune-and-run-llms](https://docs.unsloth.ai/models/tutorials-how-to-fine-tune-and-run-llms) - Network accessline 11543
[Credential-related source omitted] - Network accessline 11545
* Unsloth streamlines model training locally and on Colab/Kaggle, covering loading, quantization, training, evaluation, saving, exporting, and integration with inference engines like Ollama, llama.cpp, and vLLM. * We directly collaborate wi - Network accessline 11546
* We directly collaborate with teams behind [gpt-oss](https://docs.unsloth.ai/new/gpt-oss-how-to-run-and-fine-tune#unsloth-fixes-for-gpt-oss), [Qwen3](https://www.reddit.com/r/LocalLLaMA/comments/1kaodxu/qwen3_unsloth_dynamic_ggufs_128k_con - Network accessline 11547
* Unsloth is the only training framework to support all model types: [vision](https://docs.unsloth.ai/basics/vision-fine-tuning), [text-to-speech (TTS)](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning), BERT, [reinforcement l - Network accessline 11549
* Supports **full-finetuning**, pretraining, 4-bit, 16-bit and **8-bit** training. * The most efficient RL library, using 80% less VRAM. Supports GRPO, GSPO etc. * Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speec - Network accessline 11550
* The most efficient RL library, using 80% less VRAM. Supports GRPO, GSPO etc. * Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning) multimodal, [BERT](https://docs.unsloth.ai/get-started/unsloth-n - Network accessline 11551
* Supports **all models**: [TTS,](https://docs.unsloth.ai/basics/text-to-speech-tts-fine-tuning) multimodal, [BERT](https://docs.unsloth.ai/get-started/unsloth-notebooks#other-important-notebooks) and more. Any model that works in transform - Network accessline 11552
* **0% loss in accuracy** - no approximation methods - all exact. * [MultiGPU](https://docs.unsloth.ai/basics/multi-gpu-training-with-unsloth) works already but a much better version is coming! * Unsloth supports Linux, Windows, Colab, Kagg - Network accessline 11553
* [MultiGPU](https://docs.unsloth.ai/basics/multi-gpu-training-with-unsloth) works already but a much better version is coming! - Network accessline 11554
* Unsloth supports Linux, Windows, Colab, Kaggle, **NVIDIA** and [**AMD**](https://docs.unsloth.ai/new/fine-tuning-llms-on-amd-gpus-with-unsloth) & **Intel**. See: - Network accessline 11556
{% content-ref url="beginner-start-here/unsloth-requirements" %} [unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 11557
[unsloth-requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements) - Network accessline 11562
Use our official **Docker image**: `unsloth/unsloth`. Read our [**Docker guide**](https://docs.unsloth.ai/get-started/install-and-update/docker)**.** - Network accessline 11564
For Windows install instructions, see [here](https://docs.unsloth.ai/get-started/install-and-update/windows-installation). - Network accessline 11566
{% content-ref url="install-and-update" %} [install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 11567
[install-and-update](https://docs.unsloth.ai/get-started/install-and-update) - Network accessline 11572
[**Fine-tuning** an LLM](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide) customizes its behavior, enhances domain knowledge, and optimizes performance for specific tasks. By fine-tuning a pre-trained model (e.g. Llama-3.1-8B) on - Network accessline 11578
[**Reinforcement Learning (RL)**](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) is where an "agent" learns to make decisions by interacting with an environment and receiving **feedback** in the form of **rewards** or - Network accessline 11592
{% content-ref url="beginner-start-here/faq-+-is-fine-tuning-right-for-me" %} [faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 11593
[faq-+-is-fine-tuning-right-for-me](https://docs.unsloth.ai/get-started/beginner-start-here/faq-+-is-fine-tuning-right-for-me) - Network accessline 11596
{% content-ref url="reinforcement-learning-rl-guide" %} [reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) - Network accessline 11597
[reinforcement-learning-rl-guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) - Network accessline 11600
[Credential-related source omitted] - Network accessline 11706
Local training can be complex due to dependency hell or breaking environments. Unsloth’s [Docker image](https://hub.docker.com/r/unsloth/unsloth) can bypass these issues. No setup is needed: pull and run the image and start training. - Network accessline 11708
* **Unsloth official Docker image:** [**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) - Network accessline 11712
Unsloth’s Docker image is stable, up-to-date and works in [supported setups](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements#system-requirements) like Windows. - Network accessline 11728
Install Docker via [Linux](https://docs.docker.com/engine/install/) or [Desktop](https://docs.docker.com/desktop/) (other).\ - Network accessline 11729
Then install [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#installation): - Dangerous shell operationline 11732
</strong>sudo apt-get update && sudo apt-get install -y \ - Network accessline 11739
[Credential-related source omitted] - Network accessline 11744
[**`unsloth/unsloth`**](https://hub.docker.com/r/unsloth/unsloth) is Unsloth's only Docker image. For [Blackwell](https://docs.unsloth.ai/basics/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth) and 50-series GPUs, use this same im - Network accessline 11746
[Credential-related source omitted] - Network accessline 11751
Go to [http://localhost:8888](http://localhost:8888/) and open Unsloth. - Network accessline 11753
[Credential-related source omitted] - Network accessline 11757
[Credential-related source omitted] - Network accessline 11762
If you're new, follow our step-by-step [Fine-tuning Guide](https://docs.unsloth.ai/get-started/fine-tuning-llms-guide), [RL Guide](https://docs.unsloth.ai/get-started/reinforcement-learning-rl-guide) or just save/copy any of our premade [no - Network accessline 11764
[Credential-related source omitted] - Access to secretsline 11791
[Credential-related source omitted] - Access to secretsline 11793
[Credential-related source omitted] - Network accessline 11812
[Credential-related source omitted] - Network accessline 11822
[Credential-related source omitted] - Network accessline 11848
It's the reason models learn to modify unit tests to pass coding challenges, and these are critical blockers for real world deployment. Some other good examples are from [Wikipedia](https://en.wikipedia.org/wiki/Reward_hacking). - Network accessline 11850
<div align="center"><figure><img src="https://i.pinimg.com/originals/55/e0/1b/55e01b94a9c5546b61b59ae300811c83.gif" alt="" width="188"><figcaption></figcaption></figure></div> - Network accessline 11852
**Can you counter reward hacking? Yes!** In our [free gpt-oss RL notebook](https://colab.research.google.com/github/unslothai/notebooks/blob/main/nb/gpt-oss-\(20B\)-GRPO.ipynb) we explore how to counter reward hacking in a code generation s - Network accessline 11876
Unsloth works on Linux, Windows, NVIDIA, AMD, Google Colab and more. See our [system requirements](https://docs.unsloth.ai/get-started/beginner-start-here/unsloth-requirements). - Network accessline 11918
See <https://docs.vllm.ai/en/stable/getting_started/installation> for more details - Access to secretsline 11960
[Credential-related source omitted] - Network accessline 12004
{% hint style="warning" %} Do **NOT** use this if you have [Conda](https://docs.unsloth.ai/get-started/install-and-update/conda-install). - Network accessline 12005
Do **NOT** use this if you have [Conda](https://docs.unsloth.ai/get-started/install-and-update/conda-install). - Network accessline 12029
pip uninstall unsloth unsloth_zoo -y && pip install --no-deps git+https://github.com/unslothai/unsloth_zoo.git && pip install --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 12034
pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git - Network accessline 12035
pip install --upgrade --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth-zoo.git - Network accessline 12040
pip install --upgrade pip pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git" - Network accessline 12041
pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git"
How the signals fit together
Facts from a static read of the files at the pinned commit. They describe what the code does, not why.
Some files could not be read; the facts below still hold.
No combined signals at this commit.
Works with
| Agent | Status | Evidence | Install to |
|---|---|---|---|
| Claude Code | Native | Path .claude/commands/analysis.md | .claude/skills/<skill-name>/ |
| Codex | Native | Manifest AGENTS.md | .agents/skills/<skill-name>/ |
| Cursor | Compatible | Standard SKILL.md skills/nanoresearch-experiment/SKILL.md | .cursor/skills/<skill-name>/ |
| Gemini CLI | Compatible | Standard SKILL.md skills/nanoresearch-experiment/SKILL.md | .gemini/skills/<skill-name>/ |
| GitHub Copilot | Compatible | Standard SKILL.md skills/nanoresearch-experiment/SKILL.md | .github/skills/<skill-name>/ |
| OpenCode | Compatible | Standard SKILL.md skills/nanoresearch-experiment/SKILL.md | .opencode/skills/<skill-name>/ |
- Native The repository ships a manifest, folder or frontmatter field for this agent.
- Compatible A standard SKILL.md that this agent can read.
- Unknown No evidence either way.
Derived automatically from paths, manifests and frontmatter. Not tested on each agent.
Explore alternatives and comparisons
Add this badge to your README
It updates every night and links to this page.
[](https://hotskills.dev/skill/openraiser-nanoresearch/)