> 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. Studioを完全に削除** （他の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.
