> 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/ji-chu/unsloth-benchmarks.md). Agents can also search and read this documentation through its [MCP server](https://unsloth.ai/docs/~gitbook/mcp).

# Unsloth ベンチマーク

NVIDIA GPU 上で記録された Unsloth のベンチマークです。

* より詳細なベンチマークについては、こちらをお読みください [Llama 3.3 ブログ](https://unsloth.ai/blog/llama3-3).
* Unsloth のベンチマークは、次の機関によっても実施されました [🤗Hugging Face](https://huggingface.co/blog/unsloth-trl).

{% hint style="warning" %}
最初は速度が遅く見える場合、それはおそらく `torch.compile` 通常、ウォームアップしてコンパイルを完了するまでに約5分（またはそれ以上）かかります。スループットを測定する際は必ず **〜した後** 完全に読み込まれてからにしてください。長時間の実行では、Unsloth のほうがずっと高速になるはずです。
{% endhint %}

H100 と [Blackwell](https://unsloth.ai/docs/jp/burogu/fine-tuning-llms-with-blackwell-rtx-50-series-and-unsloth.md) GPUでテストしました。Alpacaデータセットを使用し、バッチサイズ2、勾配蓄積ステップ4、rank = 32 で、すべての線形層（q, k, v, o, gate, up, down）に QLoRA を適用しました：

<table data-full-width="false"><thead><tr><th>モデル</th><th>VRAM</th><th>🦥Unsloth の速度</th><th>🦥VRAM削減</th><th>🦥より長いコンテキスト</th><th>😊Hugging Face + FA2</th></tr></thead><tbody><tr><td>Llama 3.3（70B）</td><td>80GB</td><td>2倍</td><td>>75%</td><td>13倍長い</td><td>1倍</td></tr><tr><td>Llama 3.1（8B）</td><td>80GB</td><td>2倍</td><td>>70%</td><td>12倍長い</td><td>1倍</td></tr></tbody></table>

## コンテキスト長のベンチマーク

{% hint style="info" %}
データが多いほど、Unsloth が使用する VRAM は少なくなります。これは、私たちの [勾配チェックポイント](https://unsloth.ai/blog/long-context) アルゴリズム + Apple の CCE アルゴリズムのおかげです！
{% endhint %}

### **Llama 3.1（8B）の最大コンテキスト長**

Llama 3.1（8B）Instruct をテストし、バッチサイズ1、rank = 32 で、すべての線形層（Q, K, V, O, gate, up, down）に 4bit QLoRA を適用しました。長いコンテキストでのファインチューニング負荷を模擬するため、すべてのシーケンスを一定の最大シーケンス長までパディングしました。

| GPU VRAM | 🦥Unsloth のコンテキスト長 | Hugging Face + FA2 |
| -------- | ------------------ | ------------------ |
| 8 GB     | 2,972              | OOM                |
| 12 GB    | 21,848             | 932                |
| 16 GB    | 40,724             | 2,551              |
| 24 GB    | 78,475             | 5,789              |
| 40 GB    | 153,977            | 12,264             |
| 48 GB    | 191,728            | 15,502             |
| 80 GB    | 342,733            | 28,454             |

### **Llama 3.3（70B）の最大コンテキスト長**

Llama 3.3（70B）Instruct を 80GB A100 でテストし、バッチサイズ1、rank = 32 で、すべての線形層（Q, K, V, O, gate, up, down）に 4bit QLoRA を適用しました。長いコンテキストでのファインチューニング負荷を模擬するため、すべてのシーケンスを一定の最大シーケンス長までパディングしました。

| GPU VRAM | 🦥Unsloth のコンテキスト長 | Hugging Face + FA2 |
| -------- | ------------------ | ------------------ |
| 48 GB    | 12,106             | OOM                |
| 80 GB    | 89,389             | 6,916              |


---

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://unsloth.ai/docs/jp/ji-chu/unsloth-benchmarks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
