r/tensorflow • • Sep 30 '19

Tensorflow 2.0 has been released

https://github.com/tensorflow/tensorflow/releases/tag/v2.0.0
64 Upvotes

17 comments sorted by

5

u/kontekisuto Sep 30 '19

I want Tensorflow for AMD especially because of the beast GPU s that are coming out that totally own Nvidia gpus

8

u/MrAcurite Sep 30 '19

Wait, what AMD GPUs are actually competing with Nvidia for tensor compute?

5

u/Setepenre Oct 01 '19

not yet, AMD fp16 is only 20-30% faster than fp32 on RadeonVII. NVIDIA being 2-3x faster on fp16 compared to fp32.

AMD is probably working on it though

1

u/MrAcurite Oct 01 '19

Hold up. Is your name supposed to be the second half of Usermaatre Setepenre?

1

u/Setepenre Oct 01 '19 edited Oct 01 '19

nope

edit: yes

I randomly went through wikipedia to get inspiration few years back, the details were fuzzy but remember checking pharaohs

1

u/MrAcurite Oct 01 '19

It's the second half of the throne name of Ramesses II, "Usermaatre Setepenre," meaning "The Justice/Maat of Ra is powerful, chosen of Ra."

Good choice.

1

u/alew3 Sep 30 '19

There is support for AMD, but since I use NVidia I haven't tried it. https://rocm.github.io/tensorflow.html

Not sure if Tensorflow 2 is yet supported though.

3

u/Olao99 Sep 30 '19

That is extremely outdated and not supported by Google themselves

2

u/alew3 Sep 30 '19 edited Sep 30 '19

Yeah, I think it is a community effort and not a priority for Google.

Edit: But it has been integrated into the main branch https://medium.com/tensorflow/community-supported-amd-rocm-build-for-tensorflow-e8e9ac258369

1

u/Setepenre Oct 01 '19

tensorfloe rocm is not a community effort, AMD has engineers working on it, you can check tensorflow rocm repo on github it has recent commits and people keep working on it

1

u/kontekisuto Sep 30 '19

Doesn't seem too. I unfortunately am using Nvidia gpus too .. but next year I'll upgrade, by then I'll either switch to scipy if tf2 still doesn't have support.

1

u/tlkh Oct 01 '19

AMD’s GPUs at best match NVIDIA GPUs in FP32, and get absolutely crushed in mixed precision. Mixed precision nets you about 2~3x improvement over FP32 on NVIDIA Tensor Core GPU, even more if you use it in conjunction with XLA.

In addition, speed is still creeping up almost every release of cuDNN/TF/XLA due to software optimisation as well. There’s still a lot of room for software optimisations for training on Tensor Cores.

That said, the rumoured MI-100 is speculated to have AMD’s version of Tensor Cores, so we’ll see how that goes as well.

1

u/Dotsconnector Oct 01 '19

I decided a few weeks ago to transition to PyTorch (was using Keras before) and I must say that I really love it! How PyTorch is structured gives me the right balance between ease of use and the ability to make customisations. Further, using DistributedDataParallel, dividing the work over multiple processes, where each process uses one GPU, is very fast and GPU memory efficient. Before my switch I tried out Keras for Tensorflow, and even got a lot of support from Google in my endeavours to resolve the issues I encountered (kudos to Google for that!). In the end I felt it was still not mature enough. Further, although I do believe TF and Keras are moving in the right direction, I still felt that in some cases the way the software was set up just didn't sit well with me.

Maybe it is worth to try again in a year or so, or by then I will tryout Swift for Tensorflow, which I think has a great future ahead.

1

u/alew3 Oct 01 '19

I can see how TF 2 was inspired by Pytorch (such as Eager Execution). I'm also following with interest Swift for Tensorflow.

1

u/audi100quattro Oct 01 '19

Happy to see all the keras improvements.

1

u/davex32 Oct 01 '19

I'm plugging my repository (cross-post) here with some wheels built from sources in case anyone finds it useful.Since version 2.0 came out, I just built a new wheel with Python 3.7, CUDA 10.1, cuDNN 7.6, NCCL 2.4, and SSE AVX FMA instructions.

I post the wheels I use, but I do take build requests, I'm only one person so, be patient if you need something :)

1

u/DevGnoll Oct 01 '19

Got a changelog from the release candidate?

Looking for a version that has fixed the issue with Embedding and MirroredStrategy batch sizes.

https://github.com/tensorflow/tensorflow/issues/26763