> 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/linux.md).

# LinuxにUnslothをインストールする

LinuxにUnsloth Desktop、Unsloth Studio、またはUnsloth Coreをインストールします。

Linux に Unsloth Desktop をインストールするには、以下の手順に従ってください。

{% stepper %}
{% step %}

### ダウンロード

<a href="https://unsloth.ai/download/linux" class="button secondary" data-icon="linux">Linux 用の Unsloth をダウンロード</a>
{% endstep %}

{% step %}

### インストール

1. Unsloth インストーラーを開き（`.deb` ファイル）
2. 「インストール」を選択
3. アプリを起動し、インストールが完了するまで待ちます
   {% endstep %}

{% step %}

### モデルを選択

「モデルを選択」または「Model hub」を開き、モデルと量子化を選択してダウンロードします。完了したら、そのままチャットを始められます。設定は不要です。

<figure><img src="https://735611837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FNCEVgKLJI0goPqjgcg9B%2Fmodel%20hub%20models.png?alt=media&amp;token=533b5e3c-a901-4b33-963e-4a703cc9d5a6" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### これで Unsloth の準備ができました

チャットを開始するには、メッセージを入力して Enter キーを押します。

* **ツールを接続：** [Claude Code](/docs/jp/ji-ben/claude-code.md), [Codex](/docs/jp/ji-ben/codex.md)、Web 検索、 [MCP](/docs/jp/ji-ben/mcp.md) など
* **モデルを学習：** テキスト、拡散、埋め込みなどをファインチューニング
* **メディアを生成：** 画像、動画、TTS をローカルで作成・学習

<figure><img src="https://735611837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxhOjnexMCB3dmuQFQ2Zq%2Fuploads%2FpAGvwjGD0iVMZKBoyu7m%2Fgreeennn.png?alt=media&amp;token=d17a5528-8375-444c-9aff-f9e9f7903bcd" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### 詳細インストール

開発者ビルド、nightly の Unsloth Studio、またはコードベースの Unsloth Core には、これらのオプションを使用します。

#### メインリポジトリから Unsloth Studio をインストール

```bash
git clone https://github.com/unslothai/unsloth
cd unsloth
./install.sh --local
unsloth studio -H 0.0.0.0 -p 8888
```

#### nightly 版の Unsloth Studio をインストール

```bash
git clone https://github.com/unslothai/unsloth
cd unsloth
git checkout nightly
./install.sh --local
unsloth studio -H 0.0.0.0 -p 8888
```

#### uv で Unsloth Core をインストール

```bash
curl -LsSf https://astral.sh/uv/install.sh | sh
uv venv unsloth_env --python 3.13
source unsloth_env/bin/activate
uv pip install unsloth --torch-backend=auto
```

または、最新の pip リリースを直接インストールします：

```bash
pip install unsloth
```

Unsloth とともに vLLM をインストールするには：

```bash
uv pip install unsloth vllm --torch-backend=auto
```

仮想環境、CUDA と Torch 固有のコマンド、詳細な pip オプションについては：

[**詳細な pip インストールガイドを見る**](https://unsloth.ai/docs/get-started/install/pip-install)

### Unsloth Studio を手動でインストール

以下のコマンドでインストールされるのは **Unsloth Studio**、ブラウザベースの Web UI です。ネイティブの Desktop アプリはインストールされません。

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

Unsloth Studio を更新するには、同じコマンドを使用します。

#### Unsloth Studio を起動

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

Unsloth Studio の詳細なインストール手順と要件については、 [Unsloth Studio ガイドを参照してください](https://unsloth.ai/docs/new/studio/install).

### アンインストール

#### Unsloth Desktop

**Ubuntu または Debian（`.deb`)**

1. 実行中の場合は Unsloth を終了してください。
2. パッケージを削除：

```bash
sudo apt remove unsloth
```

**AppImage**

1. 実行中の場合は Unsloth を終了してください。
2. ダウンロードした `.AppImage` ファイルを削除します。

Unsloth Desktop をアンインストールしても、ダウンロードしたモデルやファイルは削除されません。

#### Unsloth Studio（手動インストール）

Linux のアンインストールスクリプトを実行します：

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

これにより、Unsloth Studio、その CLI コマンド、ランチャーデータ、および Linux のデスクトップショートカットが削除されます。ダウンロードした Hugging Face モデルは削除されません。

#### ダウンロードしたモデルファイルを削除

Hugging Face のデフォルトキャッシュは次のとおりです：

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

もし `HF_HUB_CACHE`, `HF_HOME`、または `XDG_CACHE_HOME` が設定されている場合は、代わりにその場所を使用してください。


---

# 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/linux.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.
