> For the complete documentation index, see [llms.txt](https://unsloth.ai/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://unsloth.ai/docs/zh/xin/studio.md). Agents can also search and read this documentation through its [MCP server](https://unsloth.ai/docs/~gitbook/mcp).

# Unsloth 简介

使用 Unsloth 在本地运行和训练 AI 模型。

我们正式推出 **Unsloth** （测试版）：一款开源、无需编写代码的 Web UI，可在统一的 **本地** 界面中训练、运行和导出开放模型。

<a href="https://unsloth.ai/docs/zh/xin/studio.md#quickstart" class="button primary" data-icon="bolt">快速入门</a><a href="https://unsloth.ai/docs/zh/xin/studio.md#features" class="button secondary" data-icon="star">功能</a><a href="https://github.com/unslothai/unsloth" class="button secondary" data-icon="github">GitHub</a>

* **运行 GGUF**, **MLX** 以及扩散图像/视频模型，均可在本地 **Mac**、Windows 和 Linux 上运行。
* 训练 500 多种模型，速度提升 2 倍，显存占用减少 70%（准确率不受影响）
* 运行和训练文本、扩散视觉、TTS 音频及嵌入模型

{% hint style="success" icon="sparkles" %}
**全新：** 我们推出了全新的 [**Unsloth Desktop**](https://unsloth.ai/docs/zh/desktop.md) 应用！下载适用于 [Mac](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/mac.md), [Windows](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/windows-installation.md) 和 [Linux](https://unsloth.ai/docs/zh/kuai-su-kai-shi/install/linux.md).
{% endhint %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">封面图片</th></tr></thead><tbody><tr><td><h5>精准的工具调用</h5></td><td>工具调用准确率提升 50%，具备自我修复能力，并支持沙箱化代码执行</td><td><a href="https://unsloth.ai/docs/zh/xin/studio/chat.md">Chat with models</a></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FLL8RSnAuc7XdutjAVD4n%2Fcode%20exec.png?alt=media&amp;token=566a7385-69e0-46db-a022-bef8e2cad677">code exec.png</a></td></tr><tr><td><h5>扩散图像/视频</h5></td><td>运行和训练 MiniMax H3 等图像/视频扩散模型，推理速度提升 2 倍。</td><td><a href="https://unsloth.ai/docs/zh/ji-chu-zhi-shi/diffusion-image.md">Generate Images Diffusion</a></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FHD8yIrQN6pS7qCNYMVxp%2Ffklrfklf.gif?alt=media&amp;token=9e7daea2-c9cc-404c-af53-325833224c94">fklrfklf.gif</a></td></tr><tr><td><h5>让智能体在本地运行</h5></td><td>将本地 LLM 连接到 Claude Code 和 Codex 等智能体工具，并可切换模型</td><td><a href="https://unsloth.ai/docs/zh/ji-cheng/unsloth-start.md">Unsloth Start</a></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FaXmr0nHDKoSkhX6ESjLz%2Fclaude%20code%20image.png?alt=media&amp;token=67e609e9-b329-4c19-9e4d-2aed0fe34f9c">claude code image.png</a></td></tr><tr><td><h5>无限制网页搜索</h5></td><td>享受无限制、私密且安全的网页搜索和深度研究</td><td><a href="https://unsloth.ai/docs/zh/xin/studio.md#web-search-upgraded">Unsloth Studio</a></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F6hy8X5V7FVW0NSWJfQAj%2Fwebsearch%20nice.png?alt=media&amp;token=8a02b6ac-3c85-484f-9bc7-f7d3eee24cd9">websearch nice.png</a></td></tr><tr><td><h5>运行最新模型</h5></td><td>发现、管理并训练最新的 <a href="https://unsloth.ai/docs/zh/mo-xing/qwen4.md">Qwen4</a>、Muse Glimmer、MiniMax-H3、Kimi K3 和 Qwen3.8 模型。</td><td><a href="https://unsloth.ai/docs/zh/mo-xing/tutorials.md">Complete LLM Directory</a></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FTSjv63MOktgx6PbgHAi2%2Fmodel%20hub%20models.png?alt=media&amp;token=b884e283-ff8b-4d4c-b4cb-7864d4335aa0">model hub models.png</a></td></tr><tr><td><h5><strong>随处部署</strong></h5></td><td>安全地远程部署模型，并通过 Cloudflare HTTPS 随时随地访问 Unsloth</td><td></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FJDIIEQ8fFZy2g5snC2kp%2Fcloudflare%20url.png?alt=media&amp;token=aadb42b5-16f0-42d1-8059-c2611e7cd931">cloudflare url.png</a></td></tr><tr><td><h4>自动执行浏览器任务</h4></td><td>使用本地模型浏览网站、填写表单，以及编辑 HTML 或 Markdown 文件。</td><td></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FYiG0Egpwm8NMyjZT7Z7e%2FUNITY.png?alt=media&amp;token=82da006d-393a-4767-9ebe-3484a67b32ee">UNITY.png</a></td></tr><tr><td><h4>在沙箱中运行代码</h4></td><td>控制模型运行 Python 或 shell 命令时可以访问哪些文件。</td><td></td><td><a href="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F0fxHVUBvcd2kfUM0iRAd%2Fpermissiosn.png?alt=media&amp;token=883f5a04-3c25-436c-8144-0653df3a6e02">permissiosn.png</a></td></tr></tbody></table>

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FCR1T6AgkGxhHvgQIgRGf%2Funsloth-desktop-qwen4-promo-2304x1440.png?alt=media&amp;token=67f3ab24-bb19-46e5-a5f2-6d7c5ef219cf" alt=""><figcaption></figcaption></figure>

* **macOS：** 训练、MLX 和 GGUF 推理均可在 Unsloth 中运行。
* 无需数据集。 [**自动创建数据集**](https://unsloth.ai/docs/zh/xin/studio/data-recipe.md) 根据 **PDF、CSV、JSON、DOCX、TXT** 文件创建。
* 将本地模型连接到任意智能体，包括 [Claude Code](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/claude-code.md), [Codex](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/codex.md), [Hermes](https://unsloth.ai/docs/zh/ji-cheng/hermes-agent.md) 等。
* [导出或保存](https://unsloth.ai/docs/zh/xin/studio/export.md) 模型为 GGUF、16 位 safetensor 等格式。
* [**自修复工具调用**](https://unsloth.ai/docs/zh/xin/studio/chat.md#auto-healing-tool-calling)  / 高级 [**网页搜索**](https://unsloth.ai/docs/zh/xin/studio/chat.md#advanced-web-search) + [**代码执行**](https://unsloth.ai/docs/zh/xin/studio/chat.md#code-execution)
* [自动推理设置](https://unsloth.ai/docs/zh/xin/studio/chat.md#auto-parameter-tuning)、编辑聊天模板、将 Unsloth 用作 [**API 端点**](#unsloth-as-an-api-endpoint).

{% hint style="success" %}
**所有最新更新，请参阅** [**新版更新日志页面**](https://unsloth.ai/docs/zh/xin/changelog.md)**!** ✨
{% endhint %}

### ⭐ 功能

{% columns %}
{% column %}

#### 执行代码并修复工具调用

在 [沙箱](https://unsloth.ai/docs/new/studio/sandboxing-in-unsloth) 中运行 Bash 和 Python，以测试代码、生成文件和检查计算结果。选择 **高** ，让操作系统强制执行文件访问限制。

例如，Unsloth 创建沙箱，让 GLM-5.2 执行代码，并在画布中显示 HTML 预览。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FLL8RSnAuc7XdutjAVD4n%2Fcode%20exec.png?alt=media&amp;token=566a7385-69e0-46db-a022-bef8e2cad677" alt=""><figcaption><p>通过沙箱化代码执行实现准确的工具调用</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 浏览网页和编辑文件

使用 [内置浏览器](https://unsloth.ai/docs/basics/browser-use) 在 Unsloth Desktop 中浏览网站、填写表单和阅读 PDF。模型还可以编辑代码和 Markdown 文件，或通过点击操作测试 HTML 和 React 页面。

启用 **浏览器使用** （位于聊天中的 **+** 菜单），即可查看模型在你身边工作。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FQXmNUrzvl9pRbNBbbEWI%2FUI%20pack%20adventure.gif?alt=media&amp;token=76426c04-5aeb-4c4b-a158-bdccc26fc5b3" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 网页搜索升级

Unsloth 的网页搜索私密、安全且不限量，它会直接访问页面收集相关信息和数据，而不只是扫描网站摘要。这让输出的信息和上下文更加准确、深入。

例如，Qwen3.5-4B 搜索了 20 多个网站并引用了来源，网页搜索过程发生在其思考轨迹中。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FY3nfB43TEk7k11zcE4wm%2Fthe%20big%20one.gif?alt=media&amp;token=335be087-7375-4f89-9039-71195ee44ab8" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 将 Unsloth 用作 API 端点

现在，你可以将 [Claude Code](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/claude-code.md) 和 [Codex](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/codex.md) 等工具连接到 [Unsloth 的 API 端点](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/api.md)，以使用本地大语言模型。这意味着你可以在这些工具中直接通过 Unsloth 推理运行 Qwen 和 Gemma 模型，并使用自修复工具调用、网页搜索等功能。

你还可以 [连接服务提供商](https://unsloth.ai/docs/zh/ji-cheng/connections.md) ，如 OpenAI、Anthropic 或 vLLM，到 Unsloth。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F1s98Id9xclzwMfxjXw2O%2Funsloth%20api%20cropped.png?alt=media&amp;token=64fac263-ca5b-4447-a740-41f58ec94904" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### **无代码训练**

[上传 PDF、CSV、JSON](#data-recipes) 文档或 YAML 配置，即可在 NVIDIA 上立即开始训练。Unsloth 的内核针对 500 多个文本、视觉、TTS/音频和嵌入模型优化了 LoRA、FP8、FFT 和 PT。

微调最新的 LLM，例如 [Qwen3.5](https://unsloth.ai/docs/zh/mo-xing/qwen3.5/fine-tune.md) 和 NVIDIA [Nemotron 3](https://unsloth.ai/docs/zh/mo-xing/nemotron-3.md). [多 GPU](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/multi-gpu-training-with-unsloth.md) 可自动运行，新版本即将推出。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FRjAfHShyL7MfHfq6BStl%2Fonboarding%20updated.png?alt=media&amp;token=7cdde1a0-8f8c-4d25-9414-e28f35f211cd" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### **在本地运行模型**

[搜索并运行 GGUF](https://unsloth.ai/docs/zh/xin/studio/chat.md) 和 safetensor 模型，并支持自我修复 [工具调用](#execute-code--heal-tool-calling)、高级 [网络搜索](https://unsloth.ai/docs/zh/xin/studio/chat.md#advanced-web-search), [自动推理](https://unsloth.ai/docs/zh/xin/studio/chat.md#auto-parameter-tuning) 设置、 [**代码执行**](https://unsloth.ai/docs/zh/xin/studio/chat.md#code-execution) （Bash + Python）、 [API](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/api.md)。可上传图像、文档、音频和代码。

[并排对比模型](https://unsloth.ai/docs/new/studio/chat#model-arena)。由 llama.cpp + Hugging Face 提供支持，Unsloth 支持 **多 GPU 推理、** 自动卸载与适配，以及大多数模型。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FNOhWqx2nFNOSjiQlv3Bz%2Finklin.gif?alt=media&amp;token=2fdae9e3-e78b-4cd3-af07-a9c4989a937f" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### Data Recipes

[**数据配方**](https://unsloth.ai/docs/zh/xin/studio/data-recipe.md) 通过图节点工作流，将文档转换为可用数据集或合成数据集。上传 PDF、CSV 和 JSON 等非结构化或结构化文件。Unsloth Data Recipes 由 NVIDIA Nemo 提供支持 [Data Designer](https://github.com/NVIDIA-NeMo/DataDesigner)，可自动将文档转换为所需格式。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2Fcc9T0V8WsyjcuOE2sIVV%2Fdata%20recipes%20longer.png?alt=media&amp;token=5ae33e8d-09b1-45e0-8f5c-40dca8bbcf0c" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 可观测性

全面 [掌握](https://unsloth.ai/docs/zh/xin/studio/start.md#training-progress) 训练运行的情况并进行控制。实时跟踪训练损失、梯度范数和 GPU 利用率，并按需自定义。

你甚至可以在手机等其他设备上查看训练进度。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FCIrWHN1JzfaFNOoavmZS%2Fobserve%20new.png?alt=media&amp;token=21fdbc5b-a073-437a-b487-b5bdff4716f6" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 导出 / 保存模型

[**导出任意模型**](https://unsloth.ai/docs/zh/xin/studio/export.md)，包括微调后的模型，可导出为 safetensors 或 GGUF，以便用于 llama.cpp、vLLM、Ollama、LM Studio 等。

保存训练历史记录，让你可以重新查看训练运行、再次导出并进行实验。
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F8UHzGTHF9q6LWrJy8Y4r%2FScreenshot%202026-03-15%20at%203.02.02%E2%80%AFAM.png?alt=media&amp;token=cb5e78f8-481a-4c9f-9361-db53e6e0ec37" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% columns %}
{% column %}

#### 隐私优先 + 安全可靠

Unsloth 可在完全离线的状态下于本地电脑上使用。基于令牌的身份验证（包括加密密码以及 JWT 访问 / 刷新流程）可确保数据安全。

你可以使用之前从 HF 等平台下载的现有 / 旧模型或 GGUF。请阅读 [此处的说明](https://unsloth.ai/docs/zh/xin/studio/chat.md#using-old-existing-gguf-models).
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2F15gRLbMDX1ReKdHBBl1G%2FScreenshot%202026-03-15%20at%203.54.51%E2%80%AFAM.png?alt=media&amp;token=ca096807-54c2-4d8c-bdc1-c1bb0055469b" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

### ⚡ 快速入门

#### **使用 Unsloth Desktop 安装**

最简单的入门方式是使用 Unsloth Desktop。下载适用于你操作系统的版本：

* <i class="fa-apple">:apple:</i> [下载 macOS 版](https://unsloth.ai/download/mac)
* <i class="fa-windows">:windows:</i> [下载 Windows 版](https://unsloth.ai/download/windows)
* <i class="fa-linux">:linux:</i> [下载 Linux 版](https://unsloth.ai/download/linux)

如需手动安装 Unsloth，请使用以下命令：

{% tabs %}
{% tab title="MacOS、Linux、WSL" %}
**安装 Unsloth：**

```bash
curl -fsSL https://unsloth.ai/install.sh | sh
```

使用相同的命令进行更新。
{% endtab %}

{% tab title="Windows" %}
**安装 Unsloth：**

```powershell
irm https://unsloth.ai/install.ps1 | iex
```

使用相同的命令进行更新。
{% endtab %}

{% tab title="Docker" %}
此 [Unsloth Docker 镜像](https://hub.docker.com/r/unsloth/unsloth) `unsloth/unsloth` 可在 Docker 上获取。 [阅读指南。](https://unsloth.ai/docs/get-started/install/docker)
{% endtab %}

{% tab title="Homebrew" %}
**安装 Unsloth：**

```bash
brew install --cask unsloth
```

更新 Unsloth：

```bash
brew upgrade --cask unsloth
```

{% endtab %}

{% tab title="WinGet" %}
**安装 Unsloth：**

```powershell
winget install --id UnslothAI.Unsloth -e
```

更新 Unsloth：

<pre class="language-powershell"><code class="lang-powershell"><strong>winget upgrade --id UnslothAI.Unsloth -e
</strong></code></pre>

{% endtab %}
{% endtabs %}

##### 启动 Unsloth

{% columns %}
{% column %}
标准本地启动方式：

```bash
unsloth studio
```

有关安装和卸载的更多详情，请参阅 [Unsloth 安装](https://unsloth.ai/docs/zh/xin/studio/install.md) 部分。
{% endcolumn %}

{% column %}
通过 HTTPS 安全地启动 Unsloth：

```bash
unsloth studio --secure
```

使用 [免费的 Cloudflare](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/ru-he-zai-ren-he-di-fang-ti-gong-ben-di-llm-fu-wu-shi-yong-cloudflare-he-unsloth-shi-xian-an-quan-yu.md) 隧道，适用于 Windows、Mac 或 Linux。
{% endcolumn %}
{% endcolumns %}

{% content-ref url="/pages/ef666f465ed5ec55124d17ba90cfb169b4efa95f" %}
[Installation](https://unsloth.ai/docs/zh/xin/studio/install.md)
{% endcontent-ref %}

##### <i class="fa-google">:google:</i> Google Colab 笔记本

我们创建了一个 [免费的 Google Colab 笔记本](https://colab.research.google.com/github/unslothai/unsloth/blob/main/studio/Unsloth_Studio_Colab.ipynb) 让你可以在 Colab 的 T4 GPU 上体验 Unsloth 的所有功能。你可以训练和运行参数量最高达 22B 的大多数模型，也可以切换到更大的 GPU 来处理更大的模型。只需点击“全部运行”，安装完成后，界面就会弹出。

{% columns %}
{% column %}
{% embed url="<https://colab.research.google.com/github/unslothai/unsloth/blob/main/studio/Unsloth_Studio_Colab.ipynb>" %}

安装完成后，使用笔记本中的启动控件打开 Unsloth：

**继续向下滚动即可查看实际界面。**
{% endcolumn %}

{% column %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FkYitMrK55Ic6eIGqiKEJ%2FScreenshot%202026-03-16%20at%2011.21.16%E2%80%AFPM.png?alt=media&amp;token=4388c309-a598-41f3-9301-e434c334ac1c" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="warning" %}
有时 Unsloth 链接可能会报错。这可能是因为你停用了 Cookie，或正在使用广告拦截器或 Mozilla。你仍然可以向下滚动到按钮下方来访问界面。
{% endhint %}

#### 👾 Unsloth 启动

{% columns %}
{% column width="58.333333333333336%" %}
[Unsloth 启动](https://unsloth.ai/docs/zh/ji-cheng/unsloth-start.md) 可让你将 [Claude Code](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/claude-code.md), [Codex](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/codex.md) 及其他智能体连接到本地模型，使用 `unsloth start` 命令。

启动 Unsloth，加载模型，打开项目文件夹，然后运行：

```bash
unsloth start claude
```

将 `claude` 替换为下方任一智能体：
{% endcolumn %}

{% column width="41.666666666666664%" %}

<figure><img src="https://2657992854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FpXE6kCHjh8qOEaggf94M%2FScreenshot_20260718_122426.png?alt=media&amp;token=a59e4c8c-efdb-451b-b1f8-621955564f6d" alt="" width="563"><figcaption><p>Claude Code 在本地运行 Qwen3.5。</p></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

| 智能体                                                                | 命令                       |
| ------------------------------------------------------------------ | ------------------------ |
| <i class="fa-claude">:claude:</i> Claude Code                      | `unsloth start claude`   |
| <i class="fa-openai">:openai:</i> OpenAI Codex                     | `unsloth start codex`    |
| <i class="fa-caduceus">:caduceus:</i> Hermes Agent                 | `unsloth start hermes`   |
| <i class="fa-lobster">:lobster:</i> OpenClaw                       | `unsloth start openclaw` |
| <i class="fa-rectangle-vertical">:rectangle-vertical:</i> OpenCode | `unsloth start opencode` |

### <i class="fa-seedling">:seedling:</i> 工作流程

以下是使用 Unsloth 的常见工作流程，助你快速上手：

1. 按照 [安装说明](https://unsloth.ai/docs/zh/xin/studio/install.md).
2. 从本地文件或受支持的集成中加载模型。
3. 从 PDF、CSV 或 JSONL 文件导入训练数据，或从头开始构建数据集。
4. 使用 [数据配方](https://unsloth.ai/docs/zh/xin/studio/data-recipe.md).
5. 使用推荐的预设开始训练，或自行自定义配置。
6. 与训练后的模型对话，并将其输出与基础模型进行比较。
7. [将模型保存或导出](https://unsloth.ai/docs/zh/xin/studio.md#export-save-models) 到本地，供你现有的技术栈使用。

你可以阅读我们对 Unsloth 各个部分的详细介绍：

{% columns %}
{% column width="50%" %}
{% content-ref url="/pages/12f6b822ad28322267b74accad74f665b341f5a4" %}
[Get Started](https://unsloth.ai/docs/zh/xin/studio/start.md)
{% endcontent-ref %}

{% content-ref url="/pages/f7c3389bdba9af3050e66a941596d827cdb11e0b" %}
[Model Export](https://unsloth.ai/docs/zh/xin/studio/export.md)
{% endcontent-ref %}
{% endcolumn %}

{% column width="50%" %}
{% content-ref url="/pages/7223afcfd2df87e1fe32a963c0b5ef0e45f563c5" %}
[Data Recipes](https://unsloth.ai/docs/zh/xin/studio/data-recipe.md)
{% endcontent-ref %}

{% content-ref url="/pages/5c2325084ff65c0303d8ec102b689868935855d3" %}
[Chat with models](https://unsloth.ai/docs/zh/xin/studio/chat.md)
{% endcontent-ref %}
{% endcolumn %}
{% endcolumns %}

### <i class="fa-comments-question">:comments-question:</i> 常见问题

**Unsloth 会收集或存储数据吗？**\
Unsloth 不会收集使用遥测数据。它只会收集兼容性所需的最少硬件信息，例如 GPU 类型和设备（如 Mac）。Unsloth 完全离线运行于本地。

**如何使用以前从 Hugging Face 下载的旧模型或已有模型？**\
可以，你可以使用以前从 Hugging Face 等平台下载的现有模型、旧模型或 GGUF 文件。Unsloth 现在应该会自动检测到它们；如果没有，请阅读我们的 [相关说明](https://unsloth.ai/docs/zh/xin/studio/chat.md#using-old-existing-gguf-models).

**为什么 Unsloth 中的推理有时会更慢？**\
与其他本地推理应用一样，Unsloth 由 llama.cpp 驱动，因此速度应该大致相同。有时，Unsloth 的推理速度变慢，可能是因为你开启了网页搜索、代码执行或自我修复式工具调用。这些功能都可能降低推理速度。如果关闭所有功能后速度仍然较慢，请在 GitHub 上提交问题！

**Unsloth 支持与 OpenAI 兼容的 API 吗？**\
支持，请参阅我们的 [API 端点指南](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/api.md).

**Unsloth 现在采用 AGPL-3.0 许可证了吗？**\
Unsloth 采用 Apache 2.0 和 AGPL-3.0 双重许可模式。Unsloth 核心软件包仍采用 [**Apache 2.0**](https://github.com/unslothai/unsloth?tab=Apache-2.0-1-ov-file)许可证，而 Unsloth UI 等某些可选组件则采用 [**AGPL-3.0**](https://github.com/unslothai/unsloth?tab=AGPL-3.0-2-ov-file).

这种结构有助于支持 Unsloth 的持续开发，同时保持项目开源，并推动更广泛的生态系统不断发展。

**Unsloth 只支持 LLM 吗？**\
不。Unsloth 支持多种兼容 `transformers` 的模型系列，包括文本、多模态模型、 [文本转语音](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/text-to-speech-tts-fine-tuning.md)、音频、 [嵌入](https://unsloth.ai/docs/zh/ji-chu-zhi-shi/embedding-finetuning.md)以及 BERT 风格的模型。

**我可以使用自己的训练配置吗？**\
可以。导入 YAML 配置后，Unsloth 会自动填入相关设置。

**使用此界面需要训练模型吗？**\
不需要，你可以直接下载任意 GGUF 或模型，无需对任何模型进行微调。

##### 致谢

衷心感谢 NVIDIA 和 Hugging Face 参与我们的发布。也感谢所有早期参与 Unsloth 测试的用户，我们由衷感谢你们投入的时间和提供的反馈。此外，我们还要感谢 llama.cpp、PyTorch 和开源模型实验室提供基础设施，让 Unsloth 成为可能。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/zh/xin/studio.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
