-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
tensorflow-serving docker container doesn't work on Macs with Apple M1 chips. #1948
Comments
As you have mentioned that already a similar issue is still open, Can you close this one and follow up with this issue to track the progress in a single place? Thanks! |
@sanatmpa1 It could very well be that #1816 might be needed because library a used by tensorflow-serving is not working on OSX on M1 chips, while this issue is due to library b used by docker not working on OSX on M1 chips or library C used by tensorflow-serving on linux not working inside docker on M1 chips. |
As per this comment, it was mentioned for docker builld as well and so thought we can track it in same issue. Thank you for the clarification and we can track this as a separate issue. |
This is the same issue as tensorflow/tensorflow#52845. The issue applies to AMD64 Docker images running on ARM64 hosts. The underlying emulation issue in QEMU has been resolved. In order to close this issue, we need one of two things:
|
What was the outcome (if any), on this issue? 2023 and the situation appears to be the same. |
Ping! Can someone from the TensorFlow team please look into adding a prebuilt ARM64 TensorFlow Serving image to Docker Hub? |
Doesn't this simply need a CI/CD job and nothing else at this point? |
Any Updates On this? it's been 2 years already |
Typical response from Google: nothing. AWS is vastly superior to anything Google does. |
Any updates on this? |
Docker Desktop for Mac 4.27.0 with updated QEMU was recently released and this seems to work now - check the related issue: docker/for-mac#6620 |
How did you manage to run it? I was testing it on my M2 Mac using Docker for Mac I run:
and get
My docker environment by
|
@gcuder can you check if the feature flag |
That was the problem. Without Rosetta it works like a charm. Finally, it has been a long time coming. |
I was able to make it run even with Rosetta by using the Bitnami-Image which comes with |
The issue here is that we need a native ARM docker image. |
Well, doesn't count a |
Bug Report
tensorflow-serving docker container doesn't work on Macs with Apple M1 chips.
Do maintainers of tensorflow-serving intend to solve this?
Or do they see this as a problem somewhere upstream (docker for mac? OSX?) that should be fixed there? If so, does someone have a clear understanding as to where in the stack lies the issue?
My team is using tensorflow-serving on linux in production, but many members develop on OSX, so having a running docker container version of tensorflow serving in development is crucial to us.
Now that no new Macbook laptops with Intel CPUs are offered, I imagine a lot of other development teams that use tensorflow-serving are in similar situation, or will be as soon as they will start to replace their computers, so I think this bug will grow to be a serious problem for tensorflow-serving adoption and continuous use.
System information
Describe the problem
tensorflow-serving docker container doesn't work on Macs with Apple M1 chips.
Container crashes when run.
Exact Steps to Reproduce
Run official script on Apple with M1 chip.
In script below we are using
tensorflow/serving:2.6.2
instead oftensorflow/serving
, so it's easier to do version control (at the time of this writing container with latest tag gives the same output though)Last line results in:
Same happens when running docker container with
--platform linux/amd64
option.On a sidenote - I found a few related issues here and there, but none of them address
tensorflow serving x docker container x m1 chip
problem directly, hence I posted a new issue.Here are some of them, including notes on why are they relevant:
The text was updated successfully, but these errors were encountered: