-
Notifications
You must be signed in to change notification settings - Fork 310
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
Ctranslate2 4.5.0 not available for x86_64 macOS #1841
Comments
In my case, I'm using an Intel-based MacBook and I have to build from source to use ctranslate2==4.5.0. You can refer to the script python/tools/prepare_build_environement_macos.sh for instruction. |
Thanks for the help. Do you know if this will install the intel MKL package and the OneDNN globally? For OneDNN is doesn't look like, but for MKL I am not sure. And from what wd would I need to execute this script? Is there any statement, if the wheel for Intel Macs was dropped or was it just forgotten? |
If you run the script, error will appear as some ULRs were expired. I manually installed Intel MKL 2023.2.0 and OneDNN by myself.
For OneDNN, I downloaded from their repo and compile it. After that you can compile ctranslate2 by the following command. Make sure -DWITH_DNNL=ON or the quantized model will not work properly:
|
Seems like MKL and OneDNN are available via conda. I'll try that first to make sure none of them set any system wide parameters, since Ia m working on an arm64 machine and only need the x86_64 package to compile an intel binary later in the process. |
Haven't tried my luck yet. I am still trying to figure out a good way without installing MKL globally. Do you happen to know, if I need MKL at all for Ctranslate2 or Dino maybe only need need to compile oneDNN? |
I am trying to install Ctranslate2 4.5.0 for Intel Macs, but I can only install 4.3.1 via
pip
:x86_64 (via Rosetta):
With arm64 everything works as expected:
Is there a reason Ctranslate2 is not provided for Intel Macs and do I have to build from source myself?
EDIT: The docs state support for both macOS architectures (x86_64 and arm64):
I also tried
pip index versions ctranslate2
and it clearly states for x86_64 only version 4.3.1 and older are available. Is there a pip wheel missing?The text was updated successfully, but these errors were encountered: