AI用語辞典

A comprehensive multilingual AI terminology dictionary

Definition

Unslothは、大規模言語モデル(LLM)のファインチューニングとデプロイメントを最適化するために設計された専用ツールです。標準的なPyTorchの…

Summary

Unslothは、最適化されたメモリ管理とカーネル実装により、大規模言語モデル(LLM)のトレーニングと推論を最大2倍高速化するオープンソースライブラリです。

Key Concepts

Use Cases

Code Example

1
2
3
4
5
6
7
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
    model_name="unsloth/Llama-2-7b-bnb-4bit",
    max_seq_length=2048,
    dtype=None,
    load_in_4bit=True
)