Windows に Unsloth をインストール
Windows に Unsloth をインストールしてローカルで LLM をファインチューニングする方法を確認してください。
方法 #1 - Conda 経由の Windows:
1


Invoke-WebRequest -Uri "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -OutFile ".\miniconda.exe"
Start-Process -FilePath ".\miniconda.exe" -ArgumentList "/S" -Wait
del .\miniconda.exe



2
conda create --name unsloth_env python==3.12 -y
conda activate unsloth_env
3

4
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu130
import torch
print(torch.cuda.is_available())
A = torch.ones((10, 10), device = "cuda")
B = torch.ones((10, 10), device = "cuda")
A @ B
5
pip install unsloth6
🦥 Unsloth: あなたのコンピュータをパッチして、2x 高速の無料ファインチューニングを可能にします。
🦥 Unsloth Zoo はトレーニングを高速化するためにすべてをパッチします!
==((====))== Unsloth 2026.1.4: Fast Gemma3 patching. Transformers: 4.57.6.
\\ /| NVIDIA GeForce RTX 3060。GPU 数 = 1。最大メモリ: 12.0 GB。プラットフォーム: Windows.
O^O/ \_/ \ Torch: 2.10.0+cu130。CUDA: 8.6。CUDA Toolkit: 13.0。Triton: 3.6.0
\ / Bfloat16 = TRUE。FA [Xformers = 0.0.34。FA2 = False]
"-____-" フリーライセンス: http://github.com/unslothai/unsloth
Unsloth: 高速ダウンロードが有効です - 赤いダウンロードバーは無視してください!
Unsloth: Gemma3 は SDPA をサポートしていないため、速い eager に切り替えています。
Unsloth: `model.base_model.model.model` を勾配計算可能にしています
Unsloth: Tokenizing ["text"] (num_proc=1): 0%| | 0/210289 [00:00<?, ? examples/s]� Unsloth: あなたのコンピュータをパッチして 2x 高速の無料ファインチューニングを可能にします。
🦥 Unsloth: あなたのコンピュータをパッチして、2x 高速の無料ファインチューニングを可能にします。
方法 #2 - Docker:
1
export NVIDIA_CONTAINER_TOOLKIT_VERSION=1.17.8-1
sudo apt-get update && sudo apt-get install -y \
nvidia-container-toolkit=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
nvidia-container-toolkit-base=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
libnvidia-container-tools=${NVIDIA_CONTAINER_TOOLKIT_VERSION} \
libnvidia-container1=${NVIDIA_CONTAINER_TOOLKIT_VERSION}2
docker run -d -e JUPYTER_PASSWORD="mypassword" \
-p 8888:8888 -p 2222:22 \
-v $(pwd)/work:/workspace/work \
--gpus all \
unsloth/unsloth3
4
5
WSL を試してみてください(方法 #3 参照):
1
コマンドプロンプトまたはターミナルを開き、Ubuntu をインストールします。パスワードを求められたら設定してください。
wsl.exe --install Ubuntu-24.042
、コマンドプロンプトで次を入力して WSL に入ります3
Python をインストールする
sudo apt update4
sudo apt install python3 python3-full python3-pip python3-venv -y5
Unsloth と Jupyter Notebook をインストールする6
Jupyter Notebook で Unsloth を起動するトラブルシューティング / 上級
最終更新
役に立ちましたか?


