# 更新 Unsloth

### **更新 Unsloth Studio**

您可以使用相同的安装命令来更新

#### **MacOS、Linux、WSL：**

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

#### **Windows PowerShell：**

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

#### 或者，您也可以使用我们的更新命令：

{% code overflow="wrap" %}

```bash
unsloth studio update 
```

{% endcode %}

### 更新 Unsloth Core：

```bash
pip install --upgrade unsloth unsloth_zoo
```

#### 在不更新依赖项的情况下更新 Unsloth Core：

<pre class="language-bash" data-overflow="wrap"><code class="lang-bash">pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth
<strong>pip install --upgrade --force-reinstall --no-cache-dir --no-deps unsloth_zoo
</strong></code></pre>

#### 要使用旧版本的 Unsloth：

{% code overflow="wrap" %}

```bash
pip install --force-reinstall --no-cache-dir --no-deps unsloth==2025.1.5
```

{% endcode %}

“2025.1.5” 是 Unsloth 之前的旧版本之一。请将其更改为我们上列出的某个特定发布版本， [Github 这里](https://github.com/unslothai/unsloth/releases).


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://unsloth.ai/docs/zh/kai-shi-shi-yong/install/updating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
