-
Notifications
You must be signed in to change notification settings - Fork 460
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
How to install on macOS? #146
Comments
Seems I still got the same error on python ⇒ python --version
Python 3.9.16
⇒ pip install -r requirements.txt
Collecting git+https://github.com/huggingface/transformers (from -r requirements.txt (line 4))
Cloning https://github.com/huggingface/transformers to /private/var/folders/j4/kxtq1cjs1l98xfqncjbsbx1c0000gn/T/pip-req-build-wwj2wmga
Running command git clone --filter=blob:none --quiet https://github.com/huggingface/transformers /private/var/folders/j4/kxtq1cjs1l98xfqncjbsbx1c0000gn/T/pip-req-build-wwj2wmga
Resolved https://github.com/huggingface/transformers to commit 656e869a4523f6a0ce90b3aacbb05cc8fb5794bb
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: safetensors==0.3.0 in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from -r requirements.txt (line 1)) (0.3.0)
Collecting datasets==2.10.1
Using cached datasets-2.10.1-py3-none-any.whl (469 kB)
Requirement already satisfied: sentencepiece in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from -r requirements.txt (line 3)) (0.1.97)
Collecting accelerate==0.17.1
Using cached accelerate-0.17.1-py3-none-any.whl (212 kB)
ERROR: Could not find a version that satisfies the requirement triton==2.0.0 (from versions: none)
ERROR: No matching distribution found for triton==2.0.0 Potentially related:
|
Seems that
That installed version ⇒ git checkout v2.0.0
# ..snip..
⇒ pip install -e .
Obtaining file:///Users/devalias/dev/AI/text-generation-webui/repositories/triton/python
Preparing metadata (setup.py) ... done
Requirement already satisfied: cmake in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from triton==2.0.0) (3.26.1)
Requirement already satisfied: filelock in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from triton==2.0.0) (3.11.0)
Requirement already satisfied: torch in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from triton==2.0.0) (2.0.0)
Collecting lit
Downloading lit-16.0.0.tar.gz (144 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.0/145.0 kB 3.3 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: jinja2 in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from torch->triton==2.0.0) (3.1.2)
Requirement already satisfied: sympy in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from torch->triton==2.0.0) (1.11.1)
Requirement already satisfied: typing-extensions in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from torch->triton==2.0.0) (4.5.0)
Requirement already satisfied: networkx in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from torch->triton==2.0.0) (3.1)
Requirement already satisfied: MarkupSafe>=2.0 in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from jinja2->torch->triton==2.0.0) (2.1.2)
Requirement already satisfied: mpmath>=0.19 in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from sympy->torch->triton==2.0.0) (1.3.0)
Building wheels for collected packages: lit
Building wheel for lit (setup.py) ... done
Created wheel for lit: filename=lit-16.0.0-py3-none-any.whl size=93582 sha256=90c6c50decf1b60e45356b3a993c62d719b6506090f7899d82f6e2f9ef0ff031
Stored in directory: /Users/devalias/Library/Caches/pip/wheels/c7/ee/80/1520ca86c3557f70e5504b802072f7fc3b0e2147f376b133ed
Successfully built lit
Installing collected packages: lit, triton
Attempting uninstall: triton
Found existing installation: triton 2.1.0
Uninstalling triton-2.1.0:
Successfully uninstalled triton-2.1.0
Running setup.py develop for triton
Successfully installed lit-16.0.0 triton-2.0.0 Once I did that, I could go back to this project and |
After a few little hacks (see linked issue comment below) I managed to get the main webUI to start and load the model: But then it fails when it tries to generate any of the prompts it raises
Searching for hardcoded references to cuda: These are the files that seem to be hardcoding the device:
Whereas in the |
macos is not supported. |
@qwopqwop200 Is it not supported because it there are technical limitations that say it can't be, or just not supported because you don't want to have to put in the extra effort/capacity/etc to do so? If the latter then I might look into it more, but if there are technical limitations preventing it, it would be good to know those up front. |
Currently, if you are not an apple silicon, I think you will probably apply. Apple silicon is not supported due to technical limitations. |
Thanks for that :) I have both an Intel 2019 Macbook Pro (which I was using for the above), and an apple silicon M2 MacBook Pro (which I haven't tried to run anything on yet) If you're able to, what are the technical limitations that currently prevent it from running on Apple silicon? |
To be precise, the biggest thing is not to support CUDA, and there are no other limitations. |
So could the references to |
Currently, this code supports only cuda users, and it is thought that the implementation of cpu is possible. But I don't have the ability to implement it. |
Currently an alternative to this is to use llama.cpp. |
Ok, thanks for the info :) |
same issue here, can anyone help about How to install on macOS? |
Originally posted as part of the following issue:
As part of that, I got:
ModuleNotFoundError: No module named 'llama_inference_offload'
Which led me to this repo, where I tried to install the requirements as follows:
But that resulted in the errors:
Looking at pypi there appears to be
2.0.0
version oftriton
, so i'm not sure why it wouldn't be able to install it:Looking at the built files for version
2.0.0
:I'm guessing it might be because there may not be a python
3.10.x
version built?The text was updated successfully, but these errors were encountered: