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

Apple and Docker support #13751

Open
arikivandeput opened this issue Feb 12, 2025 · 1 comment
Open

Apple and Docker support #13751

arikivandeput opened this issue Feb 12, 2025 · 1 comment

Comments

@arikivandeput
Copy link

I'm using Spacy 3.8.4 on a MacMin with M4PRO chip and this works great.
When trying to build a Docker container it fails because of blis and thinc compatiblity.
SO i can run it from my virtual environment which works but on our development platform we use a MacBook Pro with M1Max chip and pip install spacy and pip install -U "spacy[apple]" do NOT work.
Questions:

  1. Is there a wheel to download for M1Max
  2. Can you make it useable within Docker
@willi-mueller
Copy link

See: explosion/cython-blis#117

I could build my images by specifying the build platform to be AMD64 architecture, which is emulated by Apple Rosetta and Docker VVM (beta).

For example:
Works:

docker build . -t test-image --platform linux/amd64
DOCKER_DEFAULT_PLATFORM=linux/amd64 docker build . -t test-image

Does not work:

docker build . -t test-image --platform linux/arm64/v8

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

2 participants