Open DaddyCodesAlot opened 2 weeks ago
Interesting, importing unsloth-zoo causes this issue::
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[5], line 1
----> 1 import unsloth_zoo
File /usr/local/lib/python3.10/dist-packages/unsloth_zoo/__init__.py:27
25 import os
26 if not ("UNSLOTH_IS_PRESENT" in os.environ):
---> 27 raise ImportError("Please install Unsloth via `pip install unsloth`!")
28 pass
30 try:
ImportError: Please install Unsloth via `pip install unsloth`!
Despite both packages being installed.
I can confirm that I have successfully recreated the bug. The issue persists even when both 'unsloth' and 'unsloth-zoo' are installed.
Try manually setting if that helps:
os.environ["UNSLOTH_IS_PRESENT"] = "1"
I can confirm that I have successfully recreated the bug. The issue persists even when both 'unsloth' and 'unsloth-zoo' are installed.
Try manually setting if that helps:
os.environ["UNSLOTH_IS_PRESENT"] = "1"
Thank you.
I'll add a fix - apologies on the issue!
I can confirm that I have successfully recreated the bug. The issue persists even when both 'unsloth' and 'unsloth-zoo' are installed.
Try manually setting if that helps:
os.environ["UNSLOTH_IS_PRESENT"] = "1"
Thank you, this fixed it!
Hi, running this code:
from unsloth import FastLanguageModel
I get this error:
Here's how I installed unsloth:
!pip install "unsloth[cu121] @ git+https://github.com/unslothai/unsloth.git@a2f8db3e7341f983af5814a2c56f54fa29ee548d"