tensorflow / text

Making text a first-class citizen in TensorFlow.
https://www.tensorflow.org/beta/tutorials/tensorflow_text/intro
Apache License 2.0
1.23k stars 344 forks source link

crossplatform build procedure or prebuild wheel for armv7l arch #267

Open GianpieroSportelli opened 4 years ago

GianpieroSportelli commented 4 years ago

I start develop a project for raspberry pi 3, Raspian 9 with tensorflow 2.2.0rc2 and tensorflow-text 2.0.0rc2.

Tensorflow-text is not distributed for armv7l architecture.

To build from scratch I need to build and install bazel 2.0.0, than I need to build tensorflow 2.2 and only after that I can build tensorflow-text.

For Tensorflow 2.2 exists an official,dedicate prebuild wheel https://storage.googleapis.com/tensorflow/raspberrypi/tensorflow-2.2.0rc2-cp35-none-linux_armv7l.whl ( from https://www.tensorflow.org/install/pip)

For Tensorflow 2.2 exists a dedicated crossplatform build procedure to build from scratch on a dedicated machine. (https://www.tensorflow.org/install/source_rpi)

But for Tensorfow-text I have to build all the dependencies on Raspberry pi, this operation is complicated for two factors:

  1. The different building's procedure of Tensorflow and tensorflow-text from source (Tensorflow use a docker container)
  2. the limited resources of a raspberry pi So, I would ask you: Is it possible to have a prebuild wheel or an indication for crossbuild procedure?

Thank you very much

gregbillock commented 4 years ago

Thanks for the report! We typically release tf.text with new official TF base releases. Are you using pieces of TF that you need 2.2 for?

GianpieroSportelli commented 4 years ago

I will use in my project universal sentence encoder https://tfhub.dev/google/universal-sentence-encoder-multilingual-qa/3 the requirements for this model are:

I run pip3 install tensorflow_text>=2.0.0rc0 on a x86_64 system. this is the output of pipdeptree after the installation tensorflow-text==2.1.1

this is the output on armvl7 system:

pip3 install tensorflow_text>=2.0.0rc0 ERROR: Could not find a version that satisfies the requirement tensorflow_text (from versions: none) ERROR: No matching distribution found for tensorflow_text

broken commented 4 years ago

Apologies, but you are correct we do not currently support Raspberry Pi. This is the first request we've had for it, and I think it would be great if we added it. I'll see about adding this on the roadmap.

info2000 commented 4 years ago

Some update about the arm support? I want to use on jetson nano devices who use arm cpu thanks

broken commented 4 years ago

Unfortunately, this is not a priority for us and will not be looked at this year. We will gladly accept contributions for this effort, but there are so few users requesting this, I do not know when or if the demand will be high enough to replace other items on our roadmap.

dr-alberto commented 4 years ago

I'm having the same issue. When I try: python -m pip install tensorflow-text Outputs this: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none) ERROR: No matching distribution found for tensorflow-text I'm using Python 3.7.3

ceefour commented 3 years ago

I hope this will get looked more as Apple released M1 MacBooks, Mac Mini, and iMac, and also AWS Graviton2.

sualko commented 3 years ago

But for Tensorfow-text I have to build all the dependencies on Raspberry pi

@GianpieroSportelli Can you provide a description, how you did it? For me it always fails with a undescriptive error message.

greg1232 commented 2 years ago

+1 helpful for M1 MacBooks

broken commented 2 years ago

With PR https://github.com/tensorflow/text/pull/756, you should be able to compile it yourself for the M1.

AIWintermuteAI commented 1 year ago

I hope this will get looked more as Apple released M1 MacBooks, Mac Mini, and iMac, and also AWS Graviton2.

[narrator voice] It didn't.

krishnarajk commented 5 months ago

@broken hello, does tensorflow-text support the rasberrypi now?

broken commented 5 months ago

@krishnarajk AFAIK, no.

FYI, I am no longer leading or involved with this project as of a year ago. That said, I did have a chat with the team that owns it recently and there was no indication of this support being on the roadmap.