News for hackers. Stuff that matters.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @12:02PM (#15862679)
That's not clear, each (second generation) TPU is 45 FP16ish unspecific TFLOPs. A single board consists of 4 TPUs at 180 TOPs total. This is similar to the Dual P100 NVLINKed Quadro which is an absolutely killer HPC/DL card. I believe they have a similar Volta option, but that kind of HW is above my pay grade these days.

Further, they used 5,000 (first generation) TPUs at 90 INT8 TOPS each, page 4, to run the network during MCTS and 64 (second generation) TPUs to train this thing according to the methods. That's a nice mix of using INT8 for inference and FP16ish for training IMO.

In contrast, I personally own 8 GTX Titan XP class GPUs and 8 more GTX Titan XM GPUs across 4 desktops in my home network. I'd love to experiment with algorithms like this, but I suspect I'd get just about nowhere due to insufficient sampling. These algorithms are insanely inefficient at sampling at the beginning. So I guess I will seed the network with expert training data to see if that speeds things up.

That said, more brilliant work from David Silver's group! But not all of us have 5,000 TPUs/GPUs just sitting around so there's still a lot more work/research to make this more accessible to less sexy problems.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by nojvek on Thursday December 07, 2017 @08:23AM (#15869734)
It's definitely worth a shot reproducing the results.

On the other hand, Google will make a shit load of money when they make TPUs available on gcloud. Papers like this are great marketing for them.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by skybrian on Wednesday December 06, 2017 @01:13PM (#15863399)
I wonder how much the hardware would cost to rent for a researcher not working at Google?
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by varelse on Wednesday December 06, 2017 @01:37PM (#15863624)
So 3 2nd generation TPUs are ~= 1 Volta class GPU ~= $3 per hour on-demand on AWS: https://aws.amazon.com/ec2/pricing/on-demand/ and ~$1 (75 cents at the moment with p3.8xlarge and its 4 GPUs) in spot: https://aws.amazon.com/ec2/spot/pricing/ if you take the time to build a robust framework.

And to make things simple, let's do it all in FP16 because INT8 on Volta ~= 1/2 a first generation TPU, but FP16 ~= 3 first generation TPUs at INT8 (sad, right?), an accident that occurred because P100 didn't support INT8, but consumer variants did.

So, 5,064/3 = 1,688 Volta GPUs ~= $5000 per hour, probably half that reserved, a quarter of that in spot.

Say you need a week to train this, so $200K-$800K...

You can buy DGX-1Vs off-label for about $75K. Say they costs $20K annually to host. Say you use them for 3 years, so total TCO is ~135K, which comes down to $0.64/hour.

Conclusion: p3.8xl spot instances are currently a steal! But I don't have ~$200K burning a hole in my pocket, so I guess I'm out of luck.

Re:Mastering Chess and Shogi by Self-Play with General Reinf... by Chickenosaurus on Friday December 08, 2017 @12:46PM (#15880426)
Google provides 1000 TPUs free of charge to researchers https://www.tensorflow.org/tfrc/
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by allenz on Wednesday December 06, 2017 @06:54PM (#15866280)
I don't think that the specific numbers are relevant for what deepnotderp and I were saying: that Giraffe already demonstrated the potential, and all that was missing was a boatload of compute.
Re:Mastering Chess and Shogi by Self-Play with General Reinf... by EvgeniyZh on Thursday December 07, 2017 @02:15AM (#15868303)
P100 is 20 FP16 TFLOPs, V100 is ~30. So 4 TPU gen 2 is ~9 P100 or 6 V100