Skip to content
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

Package does not exist on macOS (intel) #1465

Open
vricosti opened this issue Apr 1, 2023 · 8 comments
Open

Package does not exist on macOS (intel) #1465

vricosti opened this issue Apr 1, 2023 · 8 comments

Comments

@vricosti
Copy link

vricosti commented Apr 1, 2023

Hi,

python --version
Python 3.10.10 (brew install python@3.10)
pip --version
pip 23.0.1 from /usr/local/lib/python3.10/site-packages/pip (python 3.10)

pip install triton
ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton

@littlesulley
Copy link

Same on win11. Any solutions here?

@vricosti
Copy link
Author

vricosti commented Apr 3, 2023

Same on win11. Any solutions here?

Solution for me was to clone the repo and enter pip install .

@ptillet
Copy link
Collaborator

ptillet commented Apr 3, 2023

Currently in we only support Linux. Any MacOS or Windows support that people stumble upon is accidental

@0xdevalias
Copy link

From another issue, may be of interest here:

I was able to do the build from source and make it work on Mac. The library loads up. So it's not wrong. It appears to work if we just follow the build instructions.

I appreciate the time you put into this. Thank you!

Originally posted by @RichardKatz in #1057 (comment)

Note that we have long-term plan to have Triton also work on Mac with Apple GPUs, but this will take time to materialize. But when the time comes, MacOS will be added as a supported platform.

Originally posted by @ptillet in #1057 (comment)

@0xdevalias
Copy link

0xdevalias commented Apr 9, 2023

On my MacBook Pro 2019 (intel), I followed the install instructions from here (along with a little extra to setup a conda environment to do it in):

As follows:

⇒ conda create -n textgen_py3_9_16 python=3.9.16
# ..snip..

⇒ conda activate textgen_py3_9_16
# ..snip..

⇒ git clone git@github.com:openai/triton.git
# ..snip..cd triton/python
# ..snip..

⇒ pip install cmake
# ..snip..

⇒ pip install -e .
Obtaining file:///Users/devalias/dev/AI/text-generation-webui/repositories/triton/python
  Preparing metadata (setup.py) ... done
Requirement already satisfied: filelock in /Users/devalias/.pyenv/versions/miniconda3-latest/envs/textgen_py3_9_16/lib/python3.9/site-packages (from triton==2.1.0) (3.11.0)
Installing collected packages: triton
  Running setup.py develop for triton
Successfully installed triton-2.1.0

@kechan
Copy link

kechan commented Apr 24, 2023

Anyone tried install for M2 Max (apple silicon)? I got to know this project through flash attention paper and pytorch 2.0.
I will try it on mine and maybe post something if i run into issues.

@sammcj
Copy link

sammcj commented Mar 19, 2024

Any update on Triton for macOS?

@lucamolteni
Copy link

Any update on Triton for macOS?

Check here #3443

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants