Computer Recommendations for Running Elf or LeelaZero
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Computer Recommendations for Running Elf or LeelaZero
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?
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
- yakcyll
- Dies with sente
- Posts: 77
- Joined: Thu Apr 19, 2018 6:40 am
- Rank: EGF 3k
- GD Posts: 0
- Universal go server handle: yakcyll
- Location: Warsaw, PL
- Has thanked: 165 times
- Been thanked: 18 times
- Contact:
Re: Computer Recommendations for Running Elf or LeelaZero
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.
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Computer Recommendations for Running Elf or LeelaZero
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?
How about if I run Ubuntu?
be immersed
- paK0
- Lives in gote
- Posts: 507
- Joined: Sun Jun 23, 2013 2:17 pm
- Rank: terrible
- GD Posts: 0
- OGS: paK0, paK0666
- Universal go server handle: paK0
- Location: Germany
- Has thanked: 176 times
- Been thanked: 46 times
Re: Computer Recommendations for Running Elf or LeelaZero
On windows Lizzie has separate releases for GPU and CPU, so I don't think you need to configure anything.
- yakcyll
- Dies with sente
- Posts: 77
- Joined: Thu Apr 19, 2018 6:40 am
- Rank: EGF 3k
- GD Posts: 0
- Universal go server handle: yakcyll
- Location: Warsaw, PL
- Has thanked: 165 times
- Been thanked: 18 times
- Contact:
Re: Computer Recommendations for Running Elf or LeelaZero
GPU - graphics processing unit, what graphics cards are colloquially referred to.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?
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.
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: Computer Recommendations for Running Elf or LeelaZero
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.
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.
-
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: Computer Recommendations for Running Elf or LeelaZero
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.
And how about a smartphone too and then a tablet additionally because the screen of the smartphone is too small for your clunky fingers.
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
-
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: Computer Recommendations for Running Elf or LeelaZero
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!)
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!)
- ez4u
- Oza
- Posts: 2414
- Joined: Wed Feb 23, 2011 10:15 pm
- Rank: Jp 6 dan
- GD Posts: 0
- KGS: ez4u
- Location: Tokyo, Japan
- Has thanked: 2351 times
- Been thanked: 1332 times
Re: Computer Recommendations for Running Elf or LeelaZero
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
).
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
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Computer Recommendations for Running Elf or LeelaZero
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.
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
-
as0770
- Lives with ko
- Posts: 180
- Joined: Sun Jun 26, 2016 8:07 am
- Rank: Beginner
- GD Posts: 0
- Has thanked: 15 times
- Been thanked: 23 times
Re: Computer Recommendations for Running Elf or LeelaZero
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.Kirby wrote:How about if I run Ubuntu?
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.
-
lightvector
- Lives in sente
- Posts: 759
- Joined: Sat Jun 19, 2010 10:11 pm
- Rank: maybe 2d
- GD Posts: 0
- Has thanked: 114 times
- Been thanked: 916 times
Re: Computer Recommendations for Running Elf or LeelaZero
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.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.
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.