python installed: 3.10.6
python -m venv unsloth
unsloth\scripts\activate
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install https://github.com/woct0rdho/triton-windows/releases/download/v3.1.0-windows.post7/triton-3.1.0-cp310-cp310-win_amd64.whl
(You should first download xformers and place it in project dir https://download.pytorch.org/whl/cu124/xformers-0.0.29.post1-cp310-cp310-win_amd64.whl
)
pip install xformers-0.0.29.post1-cp310-cp310-win_amd64.whl
pip install unsloth
pip install --force-reinstall --no-cache-dir --no-deps git+https://github.com/unslothai/unsloth.git
trainer = SFTTrainer(
dataset_num_proc=1,
...
)
set HUGGINGFACE_HUB_CACHE=D:\HF_CACHE
set HF_DATASETS_CACHE=D:\HF_CACHE