# Unsloth Studioでモデルをエクスポートする

使用 [Unsloth Studio](/docs/jp/xin-zhe/studio.md) を使って、モデルを GGUF、Safetensors、または LoRA にエクスポート、保存、変換し、Unsloth、llama.cpp、Ollama、vLLM などでのデプロイ、共有、ローカル推論に利用できます。学習済みチェックポイントをエクスポートするか、既存の任意のモデルを変換できます。

<div data-with-frame="true"><figure><img src="/files/071df4d7ccfb914388b3b68951f429aef026c82f" alt="" width="563"><figcaption></figcaption></figure></div>

{% stepper %}
{% step %}

### 学習実行を選択

まず、エクスポート元の学習実行を選択します。各実行は完全な学習セッションを表し、複数のチェックポイントを含む場合があります。

実行を選択した後、エクスポートするチェックポイントを選択します。チェックポイントは、学習中に作成されたモデルの保存版です。

<div data-with-frame="true"><figure><img src="/files/62721dc9edf61a132c3f88d85de6e68224ec802b" alt="" width="563"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### チェックポイントを選択

後のチェックポイントは通常、最終的に学習されたモデルを表しますが、必要に応じて任意のチェックポイントをエクスポートできます。

<div data-with-frame="true"><figure><img src="/files/370abda5f6f89e26b4b737c43dea2a5b25008503" alt="" width="560"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### エクスポート方法

ワークフローに応じて、マージ済みモデル、LoRA アダプターの重み、またはローカル推論用の GGUF モデルをエクスポートできます。

<div data-with-frame="true"><figure><img src="/files/0e9d54c4cbf1a7e6933365bb86ff291afa8f5498" alt=""><figcaption></figcaption></figure></div>

各エクスポート方法は、実行または共有の方法に応じて異なるバージョンのモデルを生成します。下の表では、各オプションが何をエクスポートするかを説明しています。

| エクスポート種類         | 説明                                                                      |
| ---------------- | ----------------------------------------------------------------------- |
| マージ済みモデル         | **16ビットモデル** に LoRA アダプターをベースの重みにマージしたもの。                               |
| LoRA のみ          | エクスポート **アダプターの重みのみ**をエクスポートします。元のベースモデルが必要です。                          |
| GGUF / llama.cpp | モデルを変換 **GGUF 形式** へ、Unsloth / llama.cpp **/** Ollama / LM Studio 推論用に。 |
| {% endstep %}    |                                                                         |

{% step %}

### エクスポート / ローカル保存

モデルをエクスポートするとき、生成されたファイルの保存先を選択できます。モデルは自分のマシンに直接ダウンロードすることも、ホスティングや共有のために Hugging Face Hub にプッシュすることもできます。

エクスポートされたモデルファイルを自分のマシンに直接保存します。このオプションは、モデルをローカルで実行したり、ファイルを手動で配布したり、ローカル推論ツールと統合したりする場合に便利です。

<div data-with-frame="true"><figure><img src="/files/a6bce52ba2e4c038e281666b13a49400d929bfb6" alt="" width="325"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}

### Hub にプッシュ

エクスポートしたモデルを Hugging Face Hub にアップロードします。これにより、中央リポジトリからモデルをホスト、共有、デプロイできます。

モデルを公開するには、Hugging Face の書き込みトークンが必要です。

<div data-with-frame="true"><figure><img src="/files/e27cdfe575af9101db6ea7d4a522079232e472ec" alt="" width="325"><figcaption></figcaption></figure></div>

{% hint style="success" %}
すでに Hugging Face CLI で認証済みの場合は、書き込みトークンを空欄のままにできます。
{% endhint %}
{% endstep %}
{% endstepper %}


---

# 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/jp/xin-zhe/studio/export.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.
