Setting up Lizzie and Leela Zero in a cloud?

All non-Go discussions should go here.
Post Reply
Pippen
Lives in gote
Posts: 677
Joined: Thu Sep 16, 2010 3:34 pm
GD Posts: 0
KGS: 2d
Has thanked: 6 times
Been thanked: 31 times

Setting up Lizzie and Leela Zero in a cloud?

Post by Pippen »

I have a laptop with just Windows Vista and not much power, I can neither run Lizzie nor LZ there, so I am looking for options without buying a new computer. One a way seems to be going "Cloud", i.e. connecting to a cloud that behaves just like a second computer, runs with Windows 7 or better, where I can install and run those programs, but all that from my fellow Laptop. This would be also a good testcase in gernal, because it would mean I don't need to buy new computers every 5 years.

1. How do you call such a Cloud/Cloud-Service since there are many names around but I'm doubtful they mean what I want?
2. Are there such Clouds already there, maybe even with a free trial to check if things work?
jeromie
Lives in sente
Posts: 902
Joined: Fri Jan 31, 2014 7:12 pm
Rank: AGA 3k
GD Posts: 0
Universal go server handle: jeromie
Location: Fort Collins, CO
Has thanked: 319 times
Been thanked: 287 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by jeromie »

I'm intending to try the same thing soon. I think an Amazon EC2 P2 or P3 instance looks promising.
User avatar
Drew
Lives in gote
Posts: 301
Joined: Thu Oct 17, 2013 12:59 am
Rank: infant
GD Posts: 0
Location: Illinois
Has thanked: 228 times
Been thanked: 84 times
Contact:

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by Drew »

A Linux VPS with scalable hardware would be a better approach.
User avatar
quantumf
Lives in sente
Posts: 844
Joined: Tue Apr 20, 2010 11:36 pm
Rank: 3d
GD Posts: 422
KGS: komi
Has thanked: 180 times
Been thanked: 151 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by quantumf »

Pippen, Amazon EC2 is one of a number of cloud providers that can do what you want. Microsoft Azure would be another, and I presume Google cloud as well (although I'm less sure about them). The advantage of a cloud computer is that you can start it when you want to play/analyze, and turn it off when you're done - thus paying only for when you use it. The downside is that you might have to wait for a minute or so for the instance to start up each time, which you might find irritating.

Amazon to offer a free tier (one year free "t2.micro"), this won't be powerful enough to play Lizzie particularly well, but it will be sufficient to figure out how to install the software and so on.

Drew, please advise how a flexible Linux VPS would work? What does flexible mean, and in what way(s) is it better than a cloud instance?
Pippen
Lives in gote
Posts: 677
Joined: Thu Sep 16, 2010 3:34 pm
GD Posts: 0
KGS: 2d
Has thanked: 6 times
Been thanked: 31 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by Pippen »

I tried Google Cloud and Azure because they offered free trials.

Google Cloud functioned per se. I did e.g. upload Leela 11 and it played there with significant more playouts per minute than on my laptop. But I couldn't start Lizzie & LZ due to some java installation problems (despite intalling Java correctly on my VM) nor Sabaki & LZ despite following closely a how-to-do-it video.

Azure I couldn't even connect to the VM in the cloud.

So both failed and a reminder why a free trial is so important. I will buy a new computer at some day, clouds have too many imponderables for a non-expert. Moreover I read that the author of Leela at some point wants to make LZ like Leela 11 - a program you can easily run. Hope that is not too far off either.
Pippen
Lives in gote
Posts: 677
Joined: Thu Sep 16, 2010 3:34 pm
GD Posts: 0
KGS: 2d
Has thanked: 6 times
Been thanked: 31 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by Pippen »

Marcel Grünauer wrote:Benjamin Teuber wrote a guide on how to set up Leela Zero on Google Cloud: https://github.com/bsteuber/lizzie-gcloud-setup
It's only for linux.
There are even more detailed instructions in a Leela Zero community-maintained document: https://docs.google.com/document/d/1P_c ... xjD64/edit
This is just if you want to participate to train LZ, not if you want to use it with Lizzie for personal teaching.
User avatar
spook
Lives with ko
Posts: 151
Joined: Thu Jul 24, 2014 1:34 pm
Rank: 2d
GD Posts: 0
KGS: LordVader
Location: Belgium
Has thanked: 11 times
Been thanked: 48 times
Contact:

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by spook »

AWS GPU instances start at around 0.9$/hour. :study:
So, if you study/play about 1 hour per day, you will quickly pay roughly 27$/mo.

By comparison, ZBaduk is free, does the same thing, and offers a GUI which is available in a webbrowser. (also mobile)
(no need to install anything).
SCR4.png
SCR4.png (51.06 KiB) Viewed 11874 times
ZBaduk won't be free forever. (Enjoy it while you can ;-) ).
Having said that, a commercial plan is roughly 200 times cheaper than AWS, and unlimited in use.
Enjoy LeeLaZero and KataGo from your webbrowser, without installing anything !
https://www.zbaduk.com
Umsturz
Beginner
Posts: 19
Joined: Tue Aug 27, 2013 8:06 am
Rank: KGS 6k
GD Posts: 0
Has thanked: 17 times
Been thanked: 3 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by Umsturz »

Marcel Grünauer wrote:As long as you can run ssh locally, you can use Leela Zero on Google Cloud.

And the detailed instructions show how to configure the Google Cloud instance; of course you can adapt them to running Leela vis SSH.

Did you get Lizzie running on windows connected to a gcloud instance?
iopq
Dies with sente
Posts: 113
Joined: Wed Feb 27, 2019 11:19 am
Rank: 1d
GD Posts: 0
Universal go server handle: iopq
Has thanked: 11 times
Been thanked: 27 times

Re: Setting up Lizzie and Leela Zero in a cloud?

Post by iopq »

Pippen wrote:
Marcel Grünauer wrote:Benjamin Teuber wrote a guide on how to set up Leela Zero on Google Cloud: https://github.com/bsteuber/lizzie-gcloud-setup
It's only for linux.
There are even more detailed instructions in a Leela Zero community-maintained document: https://docs.google.com/document/d/1P_c ... xjD64/edit
This is just if you want to participate to train LZ, not if you want to use it with Lizzie for personal teaching.
If you actually tried it, you could have easily done it on Windows for analysis

You don't need to use the provided scripts
Post Reply