Power and Graphics question

For discussing go computing, software announcements, etc.
User avatar
MikeKyle
Lives with ko
Posts: 205
Joined: Wed Jul 26, 2017 2:27 am
Rank: EGF 2k
GD Posts: 0
KGS: MKyle
Has thanked: 49 times
Been thanked: 36 times

Power and Graphics question

Post by MikeKyle »

I hope you don't mind me posting here for a little advice:
I'm going to by a new PC and I'm really hoping that someone can help me to understand to what degree computing power and graphics are essential in computer go.

I'm really interested in experimenting with Leela zero, AQ, and whatever incredible strength AI is soon to be available for modest home computer. What kind of performance can I expect with what kind of spec? is this likely to change? is there a minimum spec that will deliver good performance that you recommend i should hit?

As an example I'm looking at:
an ASUS, i7-7500U, 8GB RAM, Nvidia GTX940MX
(£690 amazon.co.uk/dp/B073WH686H)

Would this graphics card offer a significant increase in the speed and performance of go programs over just a good processor? do I need to go for something more in the area of a gaming laptop to get good quick AI performance?
Gomoto
Gosei
Posts: 1733
Joined: Sun Nov 06, 2016 6:56 am
GD Posts: 0
Location: Earth
Has thanked: 621 times
Been thanked: 310 times

Re: Power and Graphics question

Post by Gomoto »

If you are serious about Go AI go for a desktop pc.
User avatar
MikeKyle
Lives with ko
Posts: 205
Joined: Wed Jul 26, 2017 2:27 am
Rank: EGF 2k
GD Posts: 0
KGS: MKyle
Has thanked: 49 times
Been thanked: 36 times

Re: Power and Graphics question

Post by MikeKyle »

Thanks very much for your input.

Unfortunately I'm very short on space so a desktop would be tricky. Would you say that I just can't get into decent strength go programs with a laptop set up?
nasdaq
Dies in gote
Posts: 53
Joined: Thu Jan 05, 2017 4:34 pm
Rank: 1k
GD Posts: 0
Has thanked: 3 times
Been thanked: 9 times

Re: Power and Graphics question

Post by nasdaq »

Its all about the gpu cores/speed. A fast cpu will only do a few playouts per second. A modest gpu will be 10x the speed of the cpu doing the playouts.

You probably dont need an intel i7 processor, and i5 would do just fine.

This one is cheaper and may be comparable gpu
https://www.amazon.co.uk/dp/B0765CBZYN/

its got a gtx 1050 gpu which is a pretty decent gaming gpu.

myself i'd probably buy second hand but thats a pretty big discount and good price for the asus laptops at amazon.
Tryss
Lives in gote
Posts: 502
Joined: Tue May 24, 2011 1:07 pm
Rank: KGS 2k
GD Posts: 100
KGS: Tryss
Has thanked: 1 time
Been thanked: 153 times

Re: Power and Graphics question

Post by Tryss »

Would you say that I just can't get into decent strength go programs with a laptop set up?
What do you consider a "decent strength go program" ?
nasdaq
Dies in gote
Posts: 53
Joined: Thu Jan 05, 2017 4:34 pm
Rank: 1k
GD Posts: 0
Has thanked: 3 times
Been thanked: 9 times

Re: Power and Graphics question

Post by nasdaq »

the gtx 1050 im guessing would give something like 10000 playouts in 10 seconds.

i dont have one but its somewhere in that ball park.

For the current leela zero this would be at pro level. mybe not very high pro. i'm really not sure.
User avatar
MikeKyle
Lives with ko
Posts: 205
Joined: Wed Jul 26, 2017 2:27 am
Rank: EGF 2k
GD Posts: 0
KGS: MKyle
Has thanked: 49 times
Been thanked: 36 times

Re: Power and Graphics question

Post by MikeKyle »

Tryss wrote:
Would you say that I just can't get into decent strength go programs with a laptop set up?
What do you consider a "decent strength go program" ?
Thanks Tryss, that's a valid point - I'm not really qualifying what I'm looking for very clearly!

I suppose I'd really like to be able to do things like:
-review games at at a fast pace, but have some confidence that the Ai is really recommending well read out, high quality variations
-play faster games against a very strong Ai. I'm only 4k European, so pro strength is not necessary at all, but I'd like to be able to give the bot less thinking time and still be playing a strong Ai
-maybe have a play with some basic scripts and the APIs for these bots - see if I can do some automated game analysis
User avatar
MikeKyle
Lives with ko
Posts: 205
Joined: Wed Jul 26, 2017 2:27 am
Rank: EGF 2k
GD Posts: 0
KGS: MKyle
Has thanked: 49 times
Been thanked: 36 times

Re: Power and Graphics question

Post by MikeKyle »

Thanks nasdaq.

You're insights on gtx 1050 vs i7 processor was exactly the kind of tip I was hoping for.

I will probably go for something with the 1050 as there seem to be a few options. The one you pointed out does look like a good pick.
nasdaq
Dies in gote
Posts: 53
Joined: Thu Jan 05, 2017 4:34 pm
Rank: 1k
GD Posts: 0
Has thanked: 3 times
Been thanked: 9 times

Re: Power and Graphics question

Post by nasdaq »

Hi Mike,

if you dont know already, Go Review partner is good for automated reviewing.

homepage:
http://ns1297.imingo.net/

sabaki also has a leela zero addon to add variations to the sgf file.
Gomoto
Gosei
Posts: 1733
Joined: Sun Nov 06, 2016 6:56 am
GD Posts: 0
Location: Earth
Has thanked: 621 times
Been thanked: 310 times

Re: Power and Graphics question

Post by Gomoto »

Number of visits is not a good indicator for strength. Bigger networks can be stronger at a lower number of visits.

Be careful with the notebook CPUs. I use an I7 notebook and love it for the things it has to do. But performance wise it is no match by far for my 7 year old I5 2500k desktop CPU. It is nice for internet, word processing and viewing some pdf files. I can run Zenith 7 (CPU only AI) on the notebook, but I have to be very very patient (I use it sometimes to analyse games with friends, but it is no fun for everyday AI supported reviewing)

Reviewing in realtime with Lizzie and a 1080Ti class graphics card has to be experienced (You can move through the game and view your mistakes and best alternatives in an instant no waiting at all, not 40 sec per move). Only Zenith offers a similar good user experience at a little bit lower strength. It is a joy to review your games and only takes a few minutes to do so on a capable GPU. (Notebook variants are significantly slower due to temperature throtteling). If you want to improve fast, reviewing every game with Lizzie is a very good way to do so.
User avatar
MikeKyle
Lives with ko
Posts: 205
Joined: Wed Jul 26, 2017 2:27 am
Rank: EGF 2k
GD Posts: 0
KGS: MKyle
Has thanked: 49 times
Been thanked: 36 times

Re: Power and Graphics question

Post by MikeKyle »

Thanks for the tips on tools. I'd heard some of these mentioned around the forum, but never had the spec to make them worth using.

Thanks Marcel, and also thanks for your post about the Zhao Baolong game - very interesting.

Looks like I'll have to compromise a little compered to a good desktop set up, but it looks like a fairly good result still.
Uberdude
Judan
Posts: 6727
Joined: Thu Nov 24, 2011 11:35 am
Rank: UK 4 dan
GD Posts: 0
KGS: Uberdude 4d
OGS: Uberdude 7d
Location: Cambridge, UK
Has thanked: 436 times
Been thanked: 3718 times

Re: Power and Graphics question

Post by Uberdude »

I thought I'd tag onto this post as I'm also thinking about buying a new desktop PC, mainly for running Leela Zero etc. I've been out of the PC hardware game for ages (last bought a Pentium 4 in 2004!), so am acquainting myself with the current lingo. My use case is running LeelaZero, maybe AQ, PhoenixGo, Elf if possible, and maybe maybe doing some neural network development of my own. I don't care about playing PC games, so if a regular desktop without a gaming super duper CPU but with a fat GPU is the way to go that's fine.

- Processor:
1) Intel or AMD? (If Intel probably want i5+?)
2) Any compatibility things to think about?
3) Does it really matter much or is it just GPU power that's important?

- GPU:
4) Nvidia or AMD or is there anything else?
5) any compatibility issues? I think LZ works with both, but didn't Facebook's ELF only work on Nvidia?
6) If I were to play around with neural networks are there any commonly used frameworks which means I should use one or other?
7) Is a general GPU benchmark like "G3D Mark" here a good metric to judge go bot performance or is there some more specific benchmark I should look at which basically scales linearly with the answer to "How many playouts will a 15-block LZ network give me in 1 second?"
7) Could anyone please give some sample numbers e.g. I have a GTX 1050 and get 20k in ~10 seconds.

Other things like RAM don't seem so important and not much difference between boxes, though I might get an SSD for funzies.

Thanks
afar
Beginner
Posts: 19
Joined: Sun Aug 13, 2017 6:10 am
GD Posts: 0
Has thanked: 3 times
Been thanked: 8 times

Re: Power and Graphics question

Post by afar »

Uberdude wrote: 4) Nvidia or AMD or is there anything else?
5) any compatibility issues? I think LZ works with both, but didn't Facebook's ELF only work on Nvidia?
The important thing here is whether the applications use OpenCL or CUDA to run code on the GPU. OpenCL is an open standard that is supported by both AMD and Nvidia, whereas CUDA is Nvidia's own framework that only they support. Unfortunately CUDA is really the dominant option, supported strongly by Nvidia, which is why quite a lot of things are Nvidia-only. Also, although Nvidia's drivers support OpenCL, I think I've heard they tend to be some way behind the latest versions.

Leela Zero uses OpenCL, so it should work anywhere (but I don't know if it's more optimised for some devices).

Edit: Of course, this doesn't help much with actually choosing hardware. I'm quite interested in the answer myself, for exactly the same reasons!
dfan
Gosei
Posts: 1598
Joined: Wed Apr 21, 2010 8:49 am
Rank: AGA 2k Fox 3d
GD Posts: 61
KGS: dfan
Has thanked: 891 times
Been thanked: 534 times
Contact:

Re: Power and Graphics question

Post by dfan »

Uberdude wrote: 7) Could anyone please give some sample numbers e.g. I have a GTX 1050 and get 20k in ~10 seconds.
I have a GTX 1080 and get about 1k LZ visits (192x15 network) a second.
Other things like RAM don't seem so important and not much difference between boxes, though I might get an SSD for funzies.
Especially these days when programs are memory hogs, you will notice it if you don't have enough RAM. I wouldn't skimp on it. Also, having an SSD makes a real qualitative difference, and now that I have one I really wouldn't want to go back.
Amtiskaw
Dies in gote
Posts: 38
Joined: Sun Apr 17, 2016 5:22 am
GD Posts: 0
Has thanked: 4 times
Been thanked: 20 times

Re: Power and Graphics question

Post by Amtiskaw »

Uberdude wrote:5) any compatibility issues? I think LZ works with both, but didn't Facebook's ELF only work on Nvidia?
ELF is a nightmare to get up and running, however the weights were converted to the Leela Zero format, and they run very well on the Leela Zero engine. (This combination is by far the strongest thing you can easily get working. It is outrageously strong.)
Post Reply