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 M1 support #1816

Open
SaschaHeyer opened this issue Feb 17, 2021 · 23 comments
Open

Apple M1 support #1816

SaschaHeyer opened this issue Feb 17, 2021 · 23 comments

Comments

@SaschaHeyer
Copy link

SaschaHeyer commented Feb 17, 2021


Feature Request

Describe the problem the feature is intended to solve

TensorFlow is promoting Apples M1 Macs, would be great to have TFServing running on M1 Macs as well
https://blog.tensorflow.org/2020/11/accelerating-tensorflow-performance-on-mac.html

@netfs
Copy link
Collaborator

netfs commented May 6, 2021

Once M1 is officially supported by TF, we can try and provide (docker/m1) builds for TF Serving.

Presently M1 builds in TF is driven by community supported builds.

@1vn
Copy link

1vn commented May 31, 2021

This would be much appreciated. I almost got TF Serving running on m1 in minikube (using this image https://github.com/emacski/tensorflow-serving-arm) but hit this error on start:

2021-05-31 12:46:35.956430: F tensorflow/core/lib/monitoring/sampler.cc:42] Check failed: bucket_limits_[i] > bucket_limits_[i - 1] (0 vs. 10)

@coreation
Copy link

Once M1 is officially supported by TF, we can try and provide (docker/m1) builds for TF Serving.

Presently M1 builds in TF is driven by community supported builds.

Hi @netfs do you happen to know where a tensorflow serving community build can be found?

@lzuwei
Copy link

lzuwei commented Apr 28, 2022

Is there an ETA for this to become available? This is blocking M1 Mac users from running tfs on docker for development.

@jzamalloa1
Copy link

Bumping along with TFX support for M1

@sdchc66
Copy link

sdchc66 commented May 20, 2022

Any updates or ETA on this?

@MarioNavarrete
Copy link

Any updates on this one?

1 similar comment
@GautamSinghania
Copy link

Any updates on this one?

@fabienric
Copy link

Hi there,

I'm able to run Tensorflow Serving on my M1 by using this custom build: https://github.com/emacski/tensorflow-serving-arm

docker pull emacski/tensorflow-serving:latest-linux_arm64

docker run -t --rm -p 8501:8501 --mount type=bind,source=/tmp/model_name/,target=/models/model_name/ -e MODEL_NAME=model_name emacski/tensorflow-serving:latest-linux_arm64

(replace /tmp/model_name by your model's directory)

@magedhelmy1
Copy link

magedhelmy1 commented Jul 5, 2022

For those who are stuck, check out

Solution 1:

FROM emacski/tensorflow-serving:2.5.1
....your logic here...

Alternative (if you want to install TensorFlow in docker):

FROM --platform=linux/x86_64 python:3.9
RUN python -m pip install --upgrade pip
RUN pip install tensorflow==2.6.2

@gaikwadrahul8
Copy link

We are currently working on this issue, and will have an update in the fairly near future. In the meantime, some users have reported success with Rosetta. Other options include using a VM. We understand that neither of those is ideal.

At the moment we don't have ETA but you can check update about Mac M1 support on Tensorflow Forum here

Thank you!

@coreation
Copy link

Thanks for the update @gaikwadrahul8

@glynjackson
Copy link

Any update on this?

@glynjackson
Copy link

glynjackson commented May 4, 2023

I want to thank you for this comment! I managed to get this working with the above on my M2 Mac for local development.

@benzitohhh
Copy link

Hey any update on this? Thanks!

@sdchc66
Copy link

sdchc66 commented Oct 7, 2023

Any update on this ?

@gcuder
Copy link

gcuder commented Nov 26, 2023

Any updates on this?

@datduonguva
Copy link

more than 3 years and TF serving is still not working. Google, please do better!

@ConfuzedCoder
Copy link

Is there any ETA for this?

@sd3ntato
Copy link

shoot it's two years now!

@robtare
Copy link

robtare commented Oct 15, 2024

I was trying to find a solution for this and randomly stumbled on this report... does this really not work? (M3s are out now)

@axeltidemann
Copy link

Bitnami provides ARM64 images for TensorFlow Serving. I have been using them for some time for Apple M1 Macs, they work well. Unfortunately, there are some minor differences in the run arguments compared to the official TensorFlow Serving image, so it is not a direct drop-in replacement, but it is not hard to figure out.

@gcuder
Copy link

gcuder commented Oct 29, 2024

Update on this topic. The newest Docker release 4.35.0 (172550) for Mac introduces Docker VMM Beta, a replacement for the Apple Virtualisation Framework using Rosetta. Good news is that I can run the native TF Serving image now on my M2 Pro Macbook

See https://docs.docker.com/desktop/release-notes/#4350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests