It is currently Thu Mar 28, 2024 11:27 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 18 posts ] 
Author Message
Offline
 Post subject: Computer Recommendations for Running Elf or LeelaZero
Post #1 Posted: Wed Oct 10, 2018 6:21 am 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
I am going to buy a new computer. Price range is between 1500 and 3500 USD.

I want something that will let me get lots of playouts/rollouts (?) quickly when replaying a game using Lizzie+Elf. I don't like waiting if I'm quickly reviewing a game, and it takes a minute to get just a couple hundred rollouts/playouts on my current machine.

I slightly prefer a laptop.

I get that more memory, faster CPU, and I guess a good graphics card with a GPU will help. But the best balance to give me good perf for running LeelaZero, etc. is not clear to me.

Any recommendations?

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #2 Posted: Wed Oct 10, 2018 10:32 am 
Dies with sente
User avatar

Posts: 77
Location: Warsaw, PL
Liked others: 165
Was liked: 18
Rank: EGF 3k
Universal go server handle: yakcyll
I'm fairly certain that just for machine learning purposes you want to focus on the GPU power as the main factor influencing performance. This is due to, in simple terms, how GPU cores specialize in mathematical operations and, in that respect, overpower the CPU by orders of magnitude. If you want to pour money into the unit, I heard you can't go wrong with Nvidia's 10x0 series, especially 1080Ti. I'm sure someone will post some direct comparisons soon. Other components are not that important, but I always suggest building machines that last, especially nowadays when there isn't going to be any major breakthroughs in performance of units in the home computer range any time soon (one could argue that Ryzens and Threadrippers were such a breakthrough, but those are best in multiprocessing workloads, which, oddly, people still can't program very well, aside from workstation uses like video editing or numerical computation). With this in mind, I would suggest looking at the aforementioned Ryzen processors (very affordable for the performance they offer), some 16GB of RAM and an SSD.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #3 Posted: Wed Oct 10, 2018 10:50 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
(1080 Ti desktop is about 80% faster than a 1070 mobile.)

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #4 Posted: Wed Oct 10, 2018 1:37 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
If the computer I get has a graphics card with a GPU (eg. gaming laptop), will the GPU automatically be utilized if I run LeelaZero on Windows using Lizzie? Or do I need to configure something?

How about if I run Ubuntu?

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #5 Posted: Wed Oct 10, 2018 2:15 pm 
Lives in gote
User avatar

Posts: 507
Location: Germany
Liked others: 176
Was liked: 46
Rank: terrible
OGS: paK0, paK0666
Universal go server handle: paK0
On windows Lizzie has separate releases for GPU and CPU, so I don't think you need to configure anything.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #6 Posted: Wed Oct 10, 2018 10:34 pm 
Dies with sente
User avatar

Posts: 77
Location: Warsaw, PL
Liked others: 165
Was liked: 18
Rank: EGF 3k
Universal go server handle: yakcyll
Kirby wrote:
If the computer I get has a graphics card with a GPU (eg. gaming laptop), will the GPU automatically be utilized if I run LeelaZero on Windows using Lizzie? Or do I need to configure something?

How about if I run Ubuntu?

GPU - graphics processing unit, what graphics cards are colloquially referred to.
Yes, it will be used automatically, provided you use a GPU version (there are CPU only versions too, they are all labeled, so impossible to mix up).

It is important to be aware of two caveats of doing ML on a laptop. For one, the mobile versions of popular graphics cards are significantly limited in processing power compared to their desktop counterparts (e.g. http://gpu.userbenchmark.com/Compare/Nv ... 5564vs3603). The other thing is that laptops must have some protections in place to prevent overheating, so the moment you start utilizing the GPU at 100%, the power output to the card will be automatically adjusted to prevent battery and component damage, even if you're plugged to mains. If you actually want to get significant results from LZ analysis, it's important to skip laptops altogether and get a desktop PC.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #7 Posted: Thu Oct 11, 2018 3:32 am 
Beginner

Posts: 18
Liked others: 16
Was liked: 3
Rank: KGS 6k
For 3500 USD you can rent an preemptiv instance on Google Cloud with a V100 for 171 days!

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #8 Posted: Thu Oct 11, 2018 6:18 am 
Tengen

Posts: 4380
Location: North Carolina
Liked others: 499
Was liked: 733
Rank: AGA 3k
GD Posts: 65
OGS: Hyperpape 4k
One thought: external GPUs apparently work fairly well these days, though I haven't heard if they're a good fit for Go engines. If you're only slightly pro-laptop, that tells me you're pretty comfortable with studying in a fixed location. You could buy a less expensive laptop with a passable discrete GPU for a pinch, and use the eGPU when you're at home.

You mentioned Ubuntu, so I'll caution against the Razer line. I'd say positive things about them if you were only going to use Windows.

_________________
Occupy Babel!

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #9 Posted: Thu Oct 11, 2018 8:51 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
One can buy both a decent desktop (2000) for home use and a laptop (1000) for mobile use.


And how about a smartphone too and then a tablet additionally because the screen of the smartphone is too small for your clunky fingers. ;-)

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #10 Posted: Thu Oct 11, 2018 1:35 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
How about something like this?

https://www.amazon.com/MSI-GS65-Stealth ... B07BNZ6Z9M

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #11 Posted: Thu Oct 11, 2018 1:57 pm 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
Good performance and nice looks, why not if you want to spend the money?

I like the CPU performance too on this one, very good for a laptop.


(I use a fanless touch screen notebook for 1000, very nice and silent, good for mobile analyze but not at home. Your choice is much faster and will show a very good performance with GO AI, near desktop performance. Enjoy!)

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #12 Posted: Thu Oct 11, 2018 5:55 pm 
Oza
User avatar

Posts: 2401
Location: Tokyo, Japan
Liked others: 2338
Was liked: 1332
Rank: Jp 6 dan
KGS: ez4u
Of course the lure of a shiny new box is hard to resist. :)
That said, you may want to run LZ on an Amazon EC2 instance first and find out how much you really need it. I think you are not going to find a mobile rig that will outperform an NVIDIA K80 so Amazon's "p2.xlarge" instance should give you a good idea of what it would be like. For you in the U.S. this would seem to cost less than $1 per hour in their "on-demand" plan and less than $0.30 in their "spot" plan (interruptible). The latter is what the young pros in Japan seem to be using. I heard that they carry their laptops to their study groups and run Lizzie/LZ using the cloud for under 50 yen per hour, which is about p2.xlarge spot pricing for Japan. With your IT background it should be relatively easy to sort out within a day (a lot faster than the decision on what new box to buy ;-) ).

_________________
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21


This post by ez4u was liked by 2 people: Bill Spight, Kirby
Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #13 Posted: Thu Oct 11, 2018 7:03 pm 
Honinbo

Posts: 9545
Liked others: 1600
Was liked: 1711
KGS: Kirby
Tygem: 커비라고해
Good point. In some ways, I kind of just want to spend money somehow. I don't buy things that often, and the allure of buying something new makes me feel good. The LeelaZero thing is kind of an excuse in this regard.

That being said, I do want to be able to review games faster than what I do now - usually I'm busy, and just want to run through the game quickly and not spend a lot of time waiting for the computer to come up with moves.

Cloud seems like a good option.

_________________
be immersed

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #14 Posted: Fri Oct 12, 2018 7:25 am 
Lives with ko

Posts: 180
Liked others: 15
Was liked: 23
Rank: Beginner
Kirby wrote:
How about if I run Ubuntu?


You have to install the open cl drivers separately which shouldn't be a problem, search google for the suitable driver and install it with apt-get.

Additionally you can install Nvidia xserver settings to view the GPU utilisation.


Last edited by as0770 on Fri Oct 12, 2018 10:33 pm, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #15 Posted: Fri Oct 12, 2018 4:15 pm 
Lives in sente

Posts: 757
Liked others: 114
Was liked: 916
Rank: maybe 2d
Kirby wrote:
Good point. In some ways, I kind of just want to spend money somehow. I don't buy things that often, and the allure of buying something new makes me feel good. The LeelaZero thing is kind of an excuse in this regard.

That being said, I do want to be able to review games faster than what I do now - usually I'm busy, and just want to run through the game quickly and not spend a lot of time waiting for the computer to come up with moves.

Cloud seems like a good option.


For cloud, earlier people have quoted more specific prices, but if you want a more general rule of thumb, my experience has been that for computing-heavy tasks (GPU or otherwise), the break-even point is often around 3 months to 1 year, depending on what the task is, whether you're okay with interruptible vs with on-demand, etc.

That is, for the price of buying the machine yourself, you can usually get at least 3 months of the equivalent machine in the cloud chugging continuously 24 hours/day at full power. If you only ever run your heavy computation in short bursts that are nowhere even slightly close to using it continuously 24 hours/day, then cost-wise of course the cloud can easily be much cheaper. If you're running something on a much more sustained basis such as regular overnight computations, or any of a variety of other considerations apply (slightly greater convenience, or you'll get a lot of other value from upgrading from an old machine to something new and shiny, or even something as mundane as wanting things to still work when your internet goes down), of course buying a machine directly can make a lot of sense too.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #16 Posted: Fri Oct 12, 2018 4:42 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
Also, if you are like me, you keep a computer for 5 years. For comparison with using the cloud, how quickly do more powerful GPUs become available (for around the same price to use, OC)?

_________________
The Adkins Principle:
At some point, doesn't thinking have to go on?
— Winona Adkins

Visualize whirled peas.

Everything with love. Stay safe.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #17 Posted: Sat Oct 13, 2018 12:30 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
It is very nice that today we have the choice.
Hope it stays like this for the next decades.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Recommendations for Running Elf or LeelaZero
Post #18 Posted: Mon Oct 15, 2018 1:23 pm 
Beginner

Posts: 18
Liked others: 16
Was liked: 3
Rank: KGS 6k
Just saw this in the german dgob forum:

https://shadow.tech/

Maybe this is easier to use, if you are not to tech savy. But I never tried it so...

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group