You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Install Triton from this Windows fork and follow the instructions: https://github.com/woct0rdho/triton-windows
196
+
- Install Triton from this Windows fork and follow the instructions: https://github.com/woct0rdho/triton-windows (be aware that the Windows fork requires PyTorch >= 2.4 and CUDA 12)
197
197
- In the SFTTrainer, set `dataset_num_proc=1` to avoid a crashing issue:
198
198
```python
199
199
trainer = SFTTrainer(
@@ -202,12 +202,15 @@ trainer = SFTTrainer(
202
202
)
203
203
```
204
204
205
+
### Advanced/Troubleshooting
206
+
205
207
For **advanced installation instructions** or if you see weird errors during installations:
206
208
207
209
1. Install `torch` and `triton`. Go to https://pytorch.org to install it. For example `pip install torch torchvision torchaudio triton`
208
210
2. Confirm if CUDA is installated correctly. Try `nvcc`. If that fails, you need to install `cudatoolkit` or CUDA drivers.
209
211
3. Install `xformers` manually. You can try installing `vllm` and seeing if `vllm` succeeds. Check if `xformers` succeeded with `python -m xformers.info` Go to https://github.com/facebookresearch/xformers. Another option is to install `flash-attn` for Ampere GPUs.
210
-
4. Finally, install `bitsandbytes` and check it with `python -m bitsandbytes`
212
+
4. Double check that your versions of Python, CUDA, CUDNN, `torch`, `triton`, and `xformers` are compatible with one another. The [PyTorch Compatibility Matrix](https://github.com/pytorch/pytorch/blob/main/RELEASE.md#release-compatibility-matrix) may be useful.
213
+
5. Finally, install `bitsandbytes` and check it with `python -m bitsandbytes`
211
214
212
215
## 📜 [Documentation](https://docs.unsloth.ai)
213
216
- Go to our official [Documentation](https://docs.unsloth.ai) for saving to GGUF, checkpointing, evaluation and more!
0 commit comments