import unsloth causes error: pip install unsloth-zoo
envgap__unslothai__unsloth-1252
Original GitHub issue ↗Opened 2024-11-06
01 / FAILURE SIGNATURE
As reported upstream
ERROR: Project file:///workspace has a 'pyproject.toml' and its build backend is missing the 'build_editable' hook. Since it does not have a 'setup.py' nor a 'setup.cfg', it cannot be installed in editable mode. Consider using a build backend that supports PEP 660.
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
requirements.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
unslothai/unsloth #1252 · read the original issue
Hi, running this code:
`from unsloth import FastLanguageModel`
I get this error:
```
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
File /usr/local/lib/python3.10/dist-packages/unsloth/__init__.py:32
31 try:
---> 32 import unsloth_zoo
33 except:
File /usr/local/lib/python3.10/dist-packages/unsloth_zoo/__init__.py:27
26 if not ("UNSLOTH_IS_PRESENT" in os.environ):
---> 27 raise ImportError("Please install Unsloth via `pip install unsloth`!")
28 pass
ImportError: Please install Unsloth via `pip install unsloth`!
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
Cell In[15], line 1
----> 1 from unsloth import FastLanguageModel
2 import torch
3 import gc
File /usr/local/lib/python3.10/dist-packages/unsloth/__init__.py:34
32 import unsloth_zoo
33 except:
---> 34 raise ImportError("Unsloth: Please install unsloth_zoo via `pip install unsloth-zoo`")
35 pass
37 # Unsloth currently does not work on multi GPU setups - sadly we are a 2 brother team so
38 # enabling it will require much more work, so we have to prioritize. Please understand!
39 # We do have a beta version, which you can contact us about!
40 # Thank you for your understanding and we appreciate it immensely!
ImportError: Unsloth: Please install unsloth_zoo via `pip install unsloth-zoo`
```
Here's how I installed unsloth:
`!pip install "unsloth[cu121] @ git+https://github.com/unslothai/unsloth.git@a2f8db3e7341f983af5814a2c56f54fa29ee548d"`
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]
Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy reproduction is generic install-only; match the actual issue failure before admission.