Open MuhammadBilal848 opened 20 hours ago
Hi there! I understand you're running into an import error with unsloth while trying to run a Mistral 22B model on Kaggle. I can help you resolve this.
The error you're encountering is actually a known issue that has been fixed in the latest version of unsloth. From looking at similar reported issues, this is related to library import order and version compatibility.
Here's how to fix it:
First, uninstall the current version of unsloth:
pip uninstall unsloth -y
Then install the latest version with this command:
pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git
This solution comes from one of the unsloth maintainers who confirmed this fixes the symbol loading issue you're experiencing.
The root cause was related to how bitsandbytes was being imported, and this has been addressed in the latest version of the library. The update removes the problematic import check that was causing the conflict.
If you're still experiencing issues after this update, please let me know and I can help troubleshoot further.
References:
Let me know if you need any clarification or run into any other issues!
@MuhammadBilal848 Did you try using this specific installation cell:
%%capture
!pip install pip3-autoremove
!pip-autoremove torch torchvision torchaudio -y
!pip install torch torchvision torchaudio xformers --index-url https://download.pytorch.org/whl/cu121
!pip install unsloth
I am trying to run a mistral 22B model on kaggle but getting this error: