Wie man LLMs unter Windows mit Unsloth feinabstimmt (Schritt-für-Schritt-Anleitung)
Sieh dir an, wie man Unsloth unter Windows installiert, um mit dem lokalen Fine-Tuning von LLMs zu beginnen.
Unsloth Studio
irm https://unsloth.ai/install.ps1 | iex& .\unsloth_studio\Scripts\unsloth.exe studio -H 0.0.0.0 -p 8888Methode #1 - Windows über Conda:
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: Wir werden Ihren Computer patchen, um 2x schnelleres kostenloses Feintuning zu ermöglichen.
🦥 Unsloth Zoo wird jetzt alles patchen, um das Training schneller zu machen!
==((====))== Unsloth 2026.1.4: Schnelles Gemma3-Patching. Transformers: 4.57.6.
\\ /| NVIDIA GeForce RTX 3060. Anzahl GPUs = 1. Maximaler Speicher: 12,0 GB. Plattform: 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]
"-____-" Kostenlose Lizenz: http://github.com/unslothai/unsloth
Unsloth: Schnelles Herunterladen ist aktiviert – ignorieren Sie Download-Balken, die rot gefärbt sind!
Unsloth: Gemma3 unterstützt SDPA nicht – Umschalten auf schnelles eager.
Unsloth: `model.base_model.model.model` auf Gradientenpflicht setzen
Unsloth: Tokenizing ["text"] (num_proc=1): 0%| | 0/210289 [00:00<?, ? examples/s]� Unsloth: Wir werden Ihren Computer patchen, um 2x schnelleres kostenloses Feintuning zu ermöglichen.
🦥 Unsloth: Wir werden Ihren Computer patchen, um 2x schnelleres kostenloses Feintuning zu ermöglichen.
Methode #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
Methode #3 - WSL:
1
2
3
4
5
6
Fehlerbehebung / Erweitert
Zuletzt aktualisiert
War das hilfreich?


