-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conda installation detailed instructions #73
Comments
Do you have Maybe try |
Mamba can help solve long solving issues |
No, I have a miniconda/anaconda which was installed via oobabooga.
|
@NasonZ hmmmm another approach is to install it one by one and ignoring pytorch
|
TLDR: These are the steps I took to get my unsloth conda env working
So I tried installing one by one which raised I few issues which I was able to work around.
I verified that my enviornment was working by running the TinyLLama notebook. |
Oh my! Thanks so so much for the detailed instructions - I'll be pinning this if you don't mind :) Glad it finnaly was able to work!! |
No worries, happy to help other get onboard with what looks to be a really useful package :) |
hi there, still getting the following error: Could not solve for environment specs |
I ran into this error: Exception has occurred: RuntimeError
CUDA Setup failed despite GPU being available. Please run the following command to get more information:
python -m bitsandbytes And used this combination of the approaches listed above to get things working:
|
Just a heads up to anyone that is trying to install the package on a miniconda env and getting error in the xformers installation because of conflicts, it turns out nowadays the conda is installing pytorch==2.2.1 that is not compatible with the xformers. You need to set the pytorch version to 2.2.0 in order to make the installation work properly. This is what I used:
|
@felipepenhorate Thanks for the quick fix, just encountered this issue with conda. |
@felipepenhorate Yes thanks so much! I'll update the readme!! |
Also, because of the |
tmp/tmpmemclhbv/main.c: In function ‘list_to_cuuint64_array’: subprocess.CalledProcessError: Command '['/usr/bin/gcc', '/tmp/tmporgwe35u/main.c', '-O3', '-I/miniconda3/envs/LLM/lib/python3.10/site-packages/triton/common/../third_party/cuda/include', '-I/miniconda3/envs/LLM/include/python3.10', '-I/tmp/tmporgwe35u', '-shared', '-fPIC', '-lcuda', '-o', '/tmp/tmporgwe35u/cuda_utils.cpython-310-x86_64-linux-gnu.so', '-L/lib64', '-L/lib', '-L/lib64', '-L/lib']' returned non-zero exit status 1. |
Oh maybe outdated gcc? |
My gcc version is - |
@felipepenhorate Ye I think that's wayyy too old!! |
ModuleNotFoundError: No module named 'triton.common' |
@Lipapaldl Is your Triton version 3.0.0? |
I ran |
I'm planning to write a better guide for conda installs in the near future |
oh my god. I'm trying hard to use unsloth locally but it's a pain. I follow the conda instructions but I've been forced to downgrade xformers, i"ve tried the version printed out in the error as well yours but no way it seems that the conflict which triggered the error is still there. I'm done |
@WasamiKirua |
It works for me (Linux) |
Apologies on Conda issues - I do know sometimes it can be painful - another option is to copy paste our Kaggle install instructions here: https://www.kaggle.com/danielhanchen/kaggle-gemma2-9b-unsloth-notebook which might work |
On Windows this works only on WSL"? |
In my experience, yes. There would be unresolvable dependencies otherwise. |
Thanks @ArrangingFear56 Will try later in WSL. Currently fine tuning in colab. |
I did make the installation somewhat better in https://github.com/unslothai/unsloth?tab=readme-ov-file#-installation-instructions! Hope this makes things better! |
@NasonZ Thanks Thanks Thanks |
@NasonZ Thanks a lot; I downloaded it on RunPod $ conda create --name <your_unsloth_env> python=3.10 $ conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia |
I'm trying to follow the instructions for installing unsloth in a conda environment, the problem is that the conda gets stuck when running the install lines.
I've tried running it twice, both times it got stuck solving the environment and I stopped after 30 minutes.
Additional system info:
The text was updated successfully, but these errors were encountered: