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

Is MAC M1 supported for CTranslate2 installation ? #724

Closed
harishankar-gopalan opened this issue Mar 5, 2022 · 6 comments · Fixed by #769
Closed

Is MAC M1 supported for CTranslate2 installation ? #724

harishankar-gopalan opened this issue Mar 5, 2022 · 6 comments · Fixed by #769
Labels
build Build related issues or changes enhancement New feature or request

Comments

@harishankar-gopalan
Copy link

I tried installing CTranslate2 on MAC M1 but there doesnt seem to be an available package in pip repository. Do I need to recompile from source or is it not supported yet ?

@harishankar-gopalan harishankar-gopalan changed the title Is MAC M1 support for CTranslate2 installation ? Is MAC M1 supported for CTranslate2 installation ? Mar 5, 2022
@guillaumekln guillaumekln added build Build related issues or changes enhancement New feature or request labels Mar 7, 2022
@guillaumekln
Copy link
Collaborator

guillaumekln commented Mar 7, 2022

Currently there are no prebuilt packages for Mac M1. You should compile the library from sources.

However, I have an experimental branch building ARM packages for macOS. Can you help testing? You can go to this build page, download the artifact "python-wheels", and install the appropriate "arm64" wheel.

@harishankar-gopalan
Copy link
Author

Sure will check. I was able to install the CTranslate2 package of manylinux with arm64. But havent tested yet fully.

@guillaumekln
Copy link
Collaborator

@harishankar-gopalan Did you have the time to install one of the macOS ARM64 wheel from the archive?

@harishankar-gopalan
Copy link
Author

Hi @guillaumekln I was able to install the manylinux wheel after renaming it to the supported target name of Mac. I havent tested the above yet. Held up a bit in other priority works. Will surely update this thread once I test it out.

@harishankar-gopalan
Copy link
Author

Hi @guillaumekln I was able to install the macOS ARM64 wheel from the archive you had listed previously in this thread. Also I did do a basic testing of a single batch of translations. It does work fine.
I guess a basic sanity testing is working. Just to note, I havent done a full blown latency/memory consumption kind of testing the macOS support is more of a development time requirement and not a production deployment.

@guillaumekln
Copy link
Collaborator

Thanks for the feedback. If it seems to work fine, we will include these wheels in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build related issues or changes enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants