tensorflow / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
6.13k stars 2.19k forks source link

Apple M1 support #1816

Open SaschaHeyer opened 3 years ago

SaschaHeyer commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 2 years ago

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 commented 2 years ago

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

jzamalloa1 commented 2 years ago

Bumping along with TFX support for M1

sdchc66 commented 2 years ago

Any updates or ETA on this?

MarioNavarrete commented 2 years ago

Any updates on this one?

GautamSinghania commented 2 years ago

Any updates on this one?

fabienric commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

Thanks for the update @gaikwadrahul8

glynjackson commented 1 year ago

Any update on this?

glynjackson commented 1 year ago

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 commented 11 months ago

Hey any update on this? Thanks!

sdchc66 commented 9 months ago

Any update on this ?

gcuder commented 7 months ago

Any updates on this?

datduonguva commented 4 months ago

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

ConfuzedCoder commented 2 months ago

Is there any ETA for this?

sd3ntato commented 1 month ago

shoot it's two years now!