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

Support Mac installation #44

Open
zbloss opened this issue Nov 21, 2023 · 16 comments
Open

Support Mac installation #44

zbloss opened this issue Nov 21, 2023 · 16 comments
Assignees
Labels
enhancement New feature or request non-stale This label can be used to prevent marking issues or PRs as Stale

Comments

@zbloss
Copy link

zbloss commented Nov 21, 2023

It would be great to be able to install pytriton on Macs for ease-of-development. Even with the lack of CUDA support for Macs, being able to develop using only the CPU would be a real time saver.

As a far reaching stretch goal, being able to use mps on Macs would also be great.

As of now pip install nvidia-pytriton throws an error being unable to install cuda-python on my machine.

My Machine:

  • Apple M2 Max
  • 32GB Memory
  • Year - 2023
  • Python - 3.11.6
@sricke
Copy link

sricke commented Nov 22, 2023

As far as I understand, that update should come from triton-inference-server, but since it's supposed to run on an NDVIDIA GPU I don't think it'll happen.

What you can do is run on a docker emulated image running docker image with flag --platform linux/amd64. It will run on CPU and slower but you'll be able to debug.

Hope that helps

@jkosek
Copy link
Collaborator

jkosek commented Nov 22, 2023

The limitation we have is installation on Linux machine as this is how the binary and libraries are prepared. As @sricke mentioned you may run Ubuntu:22.04 system using Docker and install recently published wheel with aarch64 support which you can find here: https://github.com/triton-inference-server/pytriton/releases/download/v0.4.1/nvidia_pytriton-0.4.1-py3-none-manylinux_2_35_aarch64.whl (publishing to pypi is in progress).

@zbloss
Copy link
Author

zbloss commented Nov 22, 2023

Thanks for the quick fix, that's what I'll start with.

Is it possible to decouple pytriton from the cuda-python library?

@jkosek
Copy link
Collaborator

jkosek commented Nov 23, 2023

The cuda-python is required by tritonclient package which is PyTriton dependency. As for now we are not able to remove it, but if you would run installation inside the Docker container with Ubuntu 22.04 there should be no issue despite the CUDA is not available in the system.

@zbloss
Copy link
Author

zbloss commented Nov 27, 2023

Thanks all!

@martin-liu
Copy link

@jkosek It seems cuda-python is optional for tritonclient, is it possible to make it optional in pytriton?

@jkosek
Copy link
Collaborator

jkosek commented Apr 25, 2024

@martin-liu you are correct. We are going to fix dependencies on our side to avoid cuda dependency at the moment. Thanks!

@jkosek jkosek reopened this Apr 25, 2024
@jkosek jkosek added enhancement New feature or request non-stale This label can be used to prevent marking issues or PRs as Stale labels Apr 25, 2024
@jkosek jkosek self-assigned this Apr 25, 2024
@martin-liu
Copy link

@jkosek, fantastic! I'm truly appreciative of your efforts to resolve this issue. This adjustment will significantly enhance local development experience on Mac. Thank you!

@jkosek
Copy link
Collaborator

jkosek commented May 15, 2024

@martin-liu the change has been applied on the main branch and will be available with next wheel release.

@martin-liu
Copy link

@jkosek Great! Thank you very much!

@martin-liu
Copy link

@jkosek may I know what's the ETA for next release?

@jkosek
Copy link
Collaborator

jkosek commented Jun 17, 2024

@martin-liu the change has been just released.

@martin-liu
Copy link

@jkosek Thank you for the update, I'll check out!

@martin-liu
Copy link

@jkosek Seems there are no wheels available that support macOS. Are there any specific issues or blockers preventing the creation of macOS wheels?

@jkosek
Copy link
Collaborator

jkosek commented Jun 18, 2024

Hey @martin-liu . At the moment we are not able to provide a macOS wheel. The PyTriton contains a Triton binaries which are bounded to the Linux OS and specific version of GLibc. In such case the only option we can suggest is to use Docker image, ex. Ubuntu, on macOS.

@martin-liu
Copy link

@jkosek got it, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request non-stale This label can be used to prevent marking issues or PRs as Stale
Projects
None yet
Development

No branches or pull requests

4 participants