serving icon indicating copy to clipboard operation
serving copied to clipboard

Apple M1 support

Open SaschaHeyer opened this issue 4 years ago • 22 comments


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

SaschaHeyer avatar Feb 17 '21 14:02 SaschaHeyer

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.

netfs avatar May 06 '21 22:05 netfs

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)

1vn avatar May 31 '21 12:05 1vn

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?

coreation avatar Mar 02 '22 10:03 coreation

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

lzuwei avatar Apr 28 '22 09:04 lzuwei

Bumping along with TFX support for M1

jzamalloa1 avatar May 01 '22 17:05 jzamalloa1

Any updates or ETA on this?

sdchc66 avatar May 20 '22 02:05 sdchc66

Any updates on this one?

MarioNavarrete avatar Jun 21 '22 03:06 MarioNavarrete

Any updates on this one?

GautamSinghania avatar Jun 30 '22 10:06 GautamSinghania

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)

fabienric avatar Jul 04 '22 15:07 fabienric

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

magedhelmy1 avatar Jul 05 '22 16:07 magedhelmy1

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!

gaikwadrahul8 avatar Nov 10 '22 22:11 gaikwadrahul8

Thanks for the update @gaikwadrahul8

coreation avatar Nov 11 '22 08:11 coreation

Any update on this?

glynjackson avatar May 02 '23 13:05 glynjackson

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

glynjackson avatar May 04 '23 09:05 glynjackson

Hey any update on this? Thanks!

benzitohhh avatar Jul 24 '23 15:07 benzitohhh

Any update on this ?

sdchc66 avatar Oct 07 '23 17:10 sdchc66

Any updates on this?

gcuder avatar Nov 26 '23 20:11 gcuder

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

datduonguva avatar Mar 13 '24 20:03 datduonguva

Is there any ETA for this?

ConfuzedCoder avatar May 08 '24 12:05 ConfuzedCoder