> 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/jp/meru/install/mac.md).

# MacOSにUnslothをインストール

Apple macOS デバイスに Unsloth をローカルでインストールするには、以下の手順に従ってください:

### Unsloth をインストール

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

同じコマンドを使って **更新する**.

### 起動

Unsloth を再度起動したいときは毎回:

```bash
unsloth studio -H 0.0.0.0 -p 8888
```

Unsloth Studio の詳細なインストール手順と要件については、 [ガイドをご覧ください](/docs/jp/xin-zhe/studio/install.md).

### アンインストール

Unsloth Studio を完全に削除する推奨方法は、お使いの OS 用のアンインストールスクリプトです。実行中のサーバーを停止し、アプリ、CLI コマンド、ランチャーデータ、ショートカット、およびプラットフォーム固有の項目 (macOS `.app` バンドル + Launch Services; Windows のスタートメニュー + レジストリ + PATH):

```shellscript
curl -fsSL https://raw.githubusercontent.com/unslothai/unsloth/main/scripts/uninstall.sh | sh
```

#### 手動アンインストール

特定の部分だけを削除したい場合:

**1. アプリのみ削除** (履歴、チャット、チェックポイント、エクスポートはそのまま保持):

* `rm -rf ~/.unsloth/studio/unsloth_studio`

**2. Unsloth を完全に削除** (他の Unsloth ツールはそのまま保持):

* &#x20;`rm -rf ~/.unsloth/studio`

**3. Unsloth 関連をすべて削除:**

* `rm -rf ~/.unsloth`

{% hint style="warning" %}
注意: 手順 3 では、履歴、チャット、モデルのチェックポイント、エクスポート内のすべてが削除されます。これは元に戻せません。
{% endhint %}

**4. ショートカットとシンボリックリンクを削除:**

```shellscript
rm -rf ~/Applications/Unsloth\ Studio.app ~/Desktop/Unsloth\ Studio
```

**5. CLI コマンドを削除:**

* `rm -f ~/.local/bin/unsloth`

{% hint style="info" %}
注意: 手順 1〜5 では、ダウンロード済みの HF モデルファイルは削除されません。空き容量を回復したい場合は、下の「キャッシュされた HF モデルファイルの削除」を参照してください。
{% endhint %}

### **モデルファイルの削除**

古いモデルファイルは、モデル検索のゴミ箱アイコンから削除するか、Hugging Face のキャッシュディレクトリから該当するキャッシュ済みモデルフォルダを削除して消せます。

デフォルトのキャッシュ場所は次のとおりです:

```bash
~/.cache/huggingface/hub/
```

もし `HF_HUB_CACHE` または `HF_HOME` が設定されている場合は、代わりにその場所を使用してください。次のコマンドで確認できます:

```bash
echo ${HF_HUB_CACHE:-${HF_HOME:-${XDG_CACHE_HOME:-$HOME/.cache}/huggingface}/hub}
```

特定のモデルを削除するには、そのフォルダを削除します（例: `models--unsloth--Llama-3.1-8B-bnb-4bit`）をキャッシュディレクトリから削除します。すべてのキャッシュ済みモデルを消去するには:

```bash
rm -rf ~/.cache/huggingface/hub/
```


---

# 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 dynamically by asking a question.

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

```
GET https://unsloth.ai/docs/jp/meru/install/mac.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
