-
Notifications
You must be signed in to change notification settings - Fork 74.7k
TPU support is incomplete #24412
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
Comments
Hello @martinwicke, Thanks for set up this thread for the main tracking issue for TPU support with TF 2.0. Do we have any plan of ETA now? |
@jhseu Any timeline you can share? |
It works right now at master, but we don't have a matching Cloud TPU release. We'll release an official Cloud TPU version alongside TF 2.0 final. |
@jhseu Thanks for letting me know that the master had already worked! Do we have any code example to show how it works in TF 2.0 with TPU? A demo with serval lines of core API calls will be enough, thanks! |
@huan Yeah, there's an example here: You would use TPUStrategy instead of MirroredStrategy. |
@jhseu Hi, Is it work on Colab TPU ? I got this error "InvalidArgumentError: /job:tpu_worker/replica:0/task:1/device:CPU:0 unknown device." |
@jhseu @ttaee Same problem here. It seems that there is an issue with the job_name parameter in TPUClusterResolver. I have submitted a bug report at #27992 , but it would be super helful to get a working notebook using TF 2.0 and TPUStrategy on Colab. |
The following code generates an exception on Colab with Tensorflow version 2.0.0-dev20190421 when instatiating a basic Keras model with the scope of a TPUStrategy. ValueError: variable object with name 'cd2c89b7-88b7-44c8-ad83-06c2a9158347' already created. Use get_variable() if reuse is desired.
|
It would be good to have one working example with TF2.0.
Keras support is now deprecated in support of TPU Strategy. Please follow the distribution strategy guide on tensorflow.org to migrate to the 2.0 supported version.
|
Given that TF 2.0 beta is now out, is there an update with regard to this issue (about either the status or the timeline of TPU support)? |
@lukemelas +1 A roadmap or ETA would be very helpful for the cloud TPU fans! |
With reference to #29550, TPUStrategy in Tensorflow 2.0 Beta has not been working for me. |
Is there any progress for the TPU usability for TF 2.0 RC? Would love to hear from the TF team about the TPU support plan because I still can not find any news after did a hard search on the internet. |
Yeah, the gist is that we intend to announce support for TPUStrategy alongside TensorFlow 2.1. TensorFlow 2.0 will work under limited use-cases but has many improvements (bug fixes, performance improvements) that we're including in TensorFlow 2.1, so we don't consider it ready yet. We have some examples of usage here: |
@jhseu Thank you very much for the update information and the examples, it is great to know that we will officially announce support for TPUStrategy with TF 2.1! I had just explored the examples you provided, it's great, and it will be greater if we could have a Colab to demonstrate those codes in notebook online because the Colab will be easy to get started. Do we have any Colab Notebook to demo the TF 2.0 with TPU right now? |
Hey everyone, I can confirm that I was able to train a custom keras model on TPUs, using
I am wondering whether the aforementioned barriers are because of me not understanding fully the documentation of training on TPUs with Tensorflow 2, or because of actual bugs that would be resolved when TF 2.1 will become available. At any case, kudos for your excellent work with TF2 and I truly hope that TPUs training will be supported fully soon. |
Is there any super simple example of using a TPU in Google colab? It seems so hard to get going in comparison to a GPU, I've been using a tonne of code online trying to get a pipeline that works, with no luck. |
@EoinKenny This is not specifically for 2.0 but it's a TPU in colab tutorial. https://colab.research.google.com/github/tensorflow/tpu/blob/master/tools/colab/custom_training.ipynb |
Almost a year has passed. Is there any update about running |
Same question. Was thinking to run TF2.0 on Colab TPU. |
We're targeting this for 2.1.
|
Are you going to update your tutorials |
Hello. I would like to run my model on TPU. As I see here, TPUs from Colab doesn't work with TF2. Can I use for this TPUs from Google Cloud services? |
According to the release notes of v2.1.0:
So i guess this issue is kind of solved? |
Wath is work with tensorfloat in Jupiter Lab? |
I´m work in conda |
Thanks and regards for alll |
Yes, TPUs work with TF2.1 now. The guide can be found here https://www.tensorflow.org/guide/tpu |
TensorFlow version (use command below): 2.0 preview
TPU support is work in progress, and the 2.0 preview does not yet contain a DistributionStrategy for TPU.
This is a tracking issue which will be updated when progress is made on this issue.
The text was updated successfully, but these errors were encountered: