Windows Installation
To run Unsloth directly on Windows:
Install Triton from this Windows fork and follow the instructions: https://github.com/woct0rdho/triton-windows
In the SFTTrainer, set
dataset_num_proc=1
to avoid a crashing issue:
For advanced installation instructions or if you see weird errors during installations:
Install
torch
andtriton
. Go to https://pytorch.org to install it. For examplepip install torch torchvision torchaudio triton
Confirm if CUDA is installated correctly. Try
nvcc
. If that fails, you need to installcudatoolkit
or CUDA drivers.Install
xformers
manually. You can try installingvllm
and seeing ifvllm
succeeds. Check ifxformers
succeeded withpython -m xformers.info
Go to https://github.com/facebookresearch/xformers. Another option is to installflash-attn
for Ampere GPUs.Finally, install
bitsandbytes
and check it withpython -m bitsandbytes
Last updated