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

Can't install on Apple Silicon due to triton dependency #2

Open
whicks1 opened this issue Jul 13, 2023 · 8 comments
Open

Can't install on Apple Silicon due to triton dependency #2

whicks1 opened this issue Jul 13, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@whicks1
Copy link

whicks1 commented Jul 13, 2023

Using either the pip installer or poetry fails on mac due to the triton 2.0.0 dependency; Using Python 3.10.x.

@YuanGongND
Copy link
Owner

It should work for Python 3.10, but not tested on mac. Can you install original Whisper openai-whisper? Also could you paste the error message?

@YuanGongND YuanGongND added the bug Something isn't working label Jul 13, 2023
@whicks1
Copy link
Author

whicks1 commented Jul 13, 2023

Yes I have the latest whisper isntalled via pip. and the .ccp variant, both working fine. MacbookPro M2; using pyenv and python 3.10; Here's the terminal input/output

pip install whisper-at
Collecting whisper-at
  Downloading whisper_at-0.2-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 3.7 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of whisper-at to determine which version is compatible with other requirements. This could take a while.
  Downloading whisper_at-0.1-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.4 MB/s eta 0:00:00
ERROR: Cannot install whisper-at==0.1 and whisper-at==0.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    whisper-at 0.2 depends on triton==2.0.0
    whisper-at 0.1 depends on triton==2.0.0

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

@YuanGongND
Copy link
Owner

Thanks so much for reporting this. It seems it is the triton's problem, need to investigate it.

@YuanGongND
Copy link
Owner

YuanGongND commented Jul 13, 2023

temporal workaround:

# install all dependencies except triton, this will break when it tries to install triton
pip install whisper-at  
# install whisper-at without any dependency
pip install --no-deps whisper-at  

I am not familiar with the install process, but I specified triton is not needed for Macs, but it seems it tries to install triton anyways.

requirements = []
if sys.platform.startswith("linux") and platform.machine() == "x86_64":
requirements.append("triton==2.0.0")

Will check how to solve this, but before that the workaround would be fine.

-Yuan

@whicks1
Copy link
Author

whicks1 commented Jul 13, 2023

this works for me. thanks. looking forward to experimenting with this. Great work!

As a side note, can you briefly clarify how/if the whisper model matters for the audio tagging? I ran a couple of quick tests with tiny.en, medium and medium.en, and large-v1 and 2 and the audio_tag list looks similar~ish each run, but with the medium.en model outputting the least correct audio tags.

@YuanGongND
Copy link
Owner

Can you check this: https://github.com/YuanGongND/whisper-at#available-models-and-audio-tagging-performance

In general, the larger the model, the better the audio tagging result. The above are quantitative results. But depend on the class you are interested in and the specific audios, it might differ.

-Yuan

@YuanGongND
Copy link
Owner

mAP is the performance, the higher the better.

@raresv
Copy link

raresv commented Jul 24, 2023

Commenting here just to inform that I had the same issue trying to install on Windows, so it's not only about Apple silicon.
Same error message as whicks1 mentioned.
Used the workaround and was all ok.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants