It is currently Thu May 01, 2025 2:33 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3  Next
Author Message
Offline
 Post subject: Computer Specs for Go Review with AI
Post #1 Posted: Mon Feb 24, 2020 7:04 am 
Dies in gote

Posts: 26
Liked others: 11
Was liked: 1
Rank: ogs 12k
KGS: 12k
Tygem: 12k
IGS: 6k+
Wbaduk: 12k
DGS: 5k
OGS: 10k
Online playing schedule: turn-based only
Anyone can provide a reference desktop computer specs for go AI review purpose? My computer vendor asks me to provide one based on which we can decide the specs, analysis speed, and cost.

I have a notebook with Intel i5 CPU and Windows 10 64 bit OS, and a note 8 phone. I want to run go AI for reviewing games and find bad moves and good moves, in terms of winrate delta or score delta. Typical use cases are:

Ah-Q app on my phone that connects to LZ engine (with different weights) my notebook via SSH, but this is limited to LZ but not Katago, since the latter requires GPU.

Run go review partner on my notebook, but this way I have to set with my notebook.

The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes. I wonder if I have a GPU desktop, I can run it even faster.

Anyone any advice? (Computer specs, and analysis speed) Thanks in advance.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #2 Posted: Mon Feb 24, 2020 7:27 am 
Gosei

Posts: 1733
Location: Earth
Liked others: 621
Was liked: 310
Use Zbaduk for now.
All other advice is related to your budget. How much do you want to spend. Desktop GPUS are much faster.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #3 Posted: Mon Feb 24, 2020 9:10 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
dino1019 wrote:
The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes. I wonder if I have a GPU desktop, I can run it even faster.


One thing you might do is to run the analysis for 15 minutes. Then, based on the analysis, play moves that you are interested in understanding better to get LZ's opinion at 10k. It is quite possible that at 10k for a particular move, LZ will change its mind about a move you made or about the move it would choose.

_________________
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 Specs for Go Review with AI
Post #4 Posted: Mon Feb 24, 2020 9:28 am 
Judan

Posts: 6269
Liked others: 0
Was liked: 796
How does Apple A13 compare to Desktop GPUs?

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #5 Posted: Mon Feb 24, 2020 10:06 am 
Dies in gote

Posts: 61
Liked others: 12
Was liked: 18
Universal go server handle: Jæja
dino1019 wrote:
Ah-Q app on my phone that connects to LZ engine (with different weights) my notebook via SSH, but this is limited to LZ but not Katago, since the latter requires GPU.

Katago can run on the Intel Integrated Graphics, such as the Intel Iris Graphics 6100 found in my MacBook Pro (early 2015 model). I've read something about Katago having issues with it, but I haven't run into this.

Gomoto wrote:
Use Zbaduk for now.

I agree with this. Forum member spook is doing an amazing job with ZBaduk. It works very well, it's easy (no need to install anything) and relatively cheap!

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #6 Posted: Mon Feb 24, 2020 8:43 pm 
Dies in gote

Posts: 26
Liked others: 11
Was liked: 1
Rank: ogs 12k
KGS: 12k
Tygem: 12k
IGS: 6k+
Wbaduk: 12k
DGS: 5k
OGS: 10k
Online playing schedule: turn-based only
Yes, zbaduk is a potentially useful go review tool, but it's not fully customized for mobile as ogs does yet, also I cannot see list of bad moves as AI sensei does. ogs only shows the first 3 bad moves before paying, and AI sensei provides free analysis for 3 games only. If there's a fast, mobile and low cost way of knowing bad moves, then I can use Ah-Q + LZ@PC remotely for live analysis on bad moves.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #7 Posted: Tue Feb 25, 2020 2:19 am 
Dies in gote

Posts: 25
Liked others: 0
Was liked: 7
KGS: inbae
You can also consider setting a cloud instance and running KataGo/LZ on there. If you don't play computer games very much, it can be a reasonable choice, even in terms of budget.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #8 Posted: Tue Feb 25, 2020 2:35 am 
Dies with sente

Posts: 108
Location: France
Liked others: 14
Was liked: 18
Rank: FFG 1d
dino1019 wrote:
The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes. I wonder if I have a GPU desktop, I can run it even faster.

Anyone any advice? (Computer specs, and analysis speed) Thanks in advance.

I don't know how much you can/want to invest. On my GTX 1660 Ti (around 300€), I get ~300-350 visits per second on LZ265 using Lizzie.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #9 Posted: Tue Feb 25, 2020 2:47 am 
Gosei
User avatar

Posts: 1780
Liked others: 182
Was liked: 495
dino1019 wrote:
The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes.


How did you make that calculation?

I got 250*10000/3.5/60 = 11905 minutes = 198 hours.

If your computer is too slow, use 15-block networks instead, they are strong enough.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #10 Posted: Tue Feb 25, 2020 4:22 am 
Lives in gote

Posts: 650
Location: Adelaide, South Australia
Liked others: 219
Was liked: 281
Rank: Australian 3 dan
GD Posts: 200
dino1019 wrote:
The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes. I wonder if I have a GPU desktop, I can run it even faster.

Anyone any advice? (Computer specs, and analysis speed) Thanks in advance.

3.5 visits/sec, are you sure you don't mean 35? My Ryzen 5 (without using GPU) gives me 25-30 visits/sec for a 40b network.

Any mid price GPU will take you up to 200-300 visits/sec, no need to fuss too much over the specs. I get a little over 200 on my GTX 1070.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #11 Posted: Tue Feb 25, 2020 8:51 am 
Dies in gote

Posts: 26
Liked others: 11
Was liked: 1
Rank: ogs 12k
KGS: 12k
Tygem: 12k
IGS: 6k+
Wbaduk: 12k
DGS: 5k
OGS: 10k
Online playing schedule: turn-based only
Attached is screenshot of Ah-Q app with remote connection to Windows 10 (Intel i5) and run LZ264 (40b). You see the 500 visits are received in 2 or 2.5 min., so the speed is 3.5 to 5 vps. (the default threads is 4)


Attachments:
Screenshot_20200225-234400_AhQ Pro.jpg
Screenshot_20200225-234400_AhQ Pro.jpg [ 918.58 KiB | Viewed 11953 times ]
Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #12 Posted: Tue Feb 25, 2020 10:06 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
You understand that the win rate estimates based upon fewer than 100 visits are basically meaningless. In fact, the Elf commentaries on pro games do not report any winrate estimates based on fewer than 500 visits.

_________________
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 Specs for Go Review with AI
Post #13 Posted: Tue Feb 25, 2020 10:17 am 
Gosei
User avatar

Posts: 1780
Liked others: 182
Was liked: 495
For a kyu player, 100 visits is fine if you use Katago (otherwise LeelaZero may occasionally misread a ladder). Not that the bot will never make mistakes, but it will not make more mistakes than a high-dan player anyway.

P.S. My notebook computer doesn't have a GPU, and I get about 50 visits/second with 15-block Katago.

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #14 Posted: Tue Feb 25, 2020 4:16 pm 
Lives with ko

Posts: 150
Liked others: 200
Was liked: 30
Rank: 25 kyu
xela wrote:
dino1019 wrote:
The analysis speed of LZ264 (40b) is about 3.5 visits / secs., if I want to analyze a game with 250 moves with 10k visits / move, it takes about 177 minutes, if 1k, 17 minutes. I wonder if I have a GPU desktop, I can run it even faster.

Anyone any advice? (Computer specs, and analysis speed) Thanks in advance.

3.5 visits/sec, are you sure you don't mean 35? My Ryzen 5 (without using GPU) gives me 25-30 visits/sec for a 40b network.

Any mid price GPU will take you up to 200-300 visits/sec, no need to fuss too much over the specs. I get a little over 200 on my GTX 1070.


The Ryzen 5 has vega graphics, much faster than intel hd graphics. Ryzen 5 desktop might have vega 11, which is faster than a gt 1030 for opencl! https://browser.geekbench.com/opencl-benchmarks

_________________
set katago to play at your level https://docdro.id/sHZU1ti or experiment with gtp4zen ( https://rb.gy/kx2ilb )


Last edited by go4thewin on Tue Feb 25, 2020 11:19 pm, edited 1 time in total.
Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #15 Posted: Tue Feb 25, 2020 4:53 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
jlt wrote:
For a kyu player, 100 visits is fine if you use Katago (otherwise LeelaZero may occasionally misread a ladder). Not that the bot will never make mistakes, but it will not make more mistakes than a high-dan player anyway.


Incorrect winrate estimates do not mean that the order of correct winrates would be any different. But it's not unusual that the order will change. That's why I recommend doing a quick first run and then comparing interesting options by making those plays. Doing so will produce high enough visits to be reasonably confident about the comparisons.

In the example given, for instance, the keima might be interesting, even though it has a low winrate estimate and only 16 visits. Making that play could easily change the winrate estimate by 10% or more, with 500 visits, or 1,000 visits, or 10,000 visits. It's not like you do that for every option, just for the ones that look interesting after the first run.

_________________
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 Specs for Go Review with AI
Post #16 Posted: Tue Feb 25, 2020 5:31 pm 
Lives in gote

Posts: 650
Location: Adelaide, South Australia
Liked others: 219
Was liked: 281
Rank: Australian 3 dan
GD Posts: 200
Bill Spight wrote:
You understand that the win rate estimates based upon fewer than 100 visits are basically meaningless.

I think "meaningless" is too strong a word. If you care about the difference between a 53% move and a 55% move in the fuseki, then 100 visits isn't enough. But for reviewing your games and spotting kyu level mistakes (and even dan players make a handful of kyu level mistakes per game: weeding those out is a good way to improve), or for suggesting "here's another move you might have looked at" or "here's the natural move in this shape", small numbers of visits will still get the job done. Remember that the newer networks can play at dan level even on just one playout.

Of course more is better, and getting a GPU is a good idea :-)

Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #17 Posted: Tue Feb 25, 2020 6:03 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
xela wrote:
Bill Spight wrote:
You understand that the win rate estimates based upon fewer than 100 visits are basically meaningless.

I think "meaningless" is too strong a word. If you care about the difference between a 53% move and a 55% move in the fuseki, then 100 visits isn't enough.


As you may have noticed, I regard a 2% difference as within the margin of error, except perhaps with millions of visits.

Quote:
But for reviewing your games and spotting kyu level mistakes (and even dan players make a handful of kyu level mistakes per game: weeding those out is a good way to improve), or for suggesting "here's another move you might have looked at" or "here's the natural move in this shape", small numbers of visits will still get the job done.


Well, that's what I recommend doing. Take the low number of playouts as suggesting a move, but do not rely upon the winrate estimate; make the play and get a high number of visits.

_________________
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 Specs for Go Review with AI
Post #18 Posted: Tue Feb 25, 2020 7:06 pm 
Dies in gote

Posts: 26
Liked others: 11
Was liked: 1
Rank: ogs 12k
KGS: 12k
Tygem: 12k
IGS: 6k+
Wbaduk: 12k
DGS: 5k
OGS: 10k
Online playing schedule: turn-based only
(Again, how AI helps human review a game, in particular a kyu player, I re-posted my comments at reddit/cbaduk here, note that the 3.5 vps speed for 40b on my notebook computer is shown above with a screenshot)

I have a few points to make here:

I am not sure whether a best move suggested by AI is a best move for a kyu level player and win rate (or score) itself might not be as relevant as win rate delta (or score delta). Note that win rate delta is the difference between the best move (the move with the highest win rate) and the actual move. If the delta is huge (>20%) then this move is probably a big mistake, and in this case, this is the key lesson for the player to learn. That's the reason I think the filter for the win rate delta in AI sensei is useful. (but 0.5 to 1 euro for full review of a game is too expensive)

The use case of game review with AI for me is Ah-Q app that connects to my notebook computer (Windows 10, via SSH) with CPU-only Leela Zero. Many people say 100 visits per move is good enough for a kyu player (15, 20, or 40 blocks?), this is not the case. First of all, we know that Leela Zero has a problem with ko, seki, ladder, and I also see a stupid mistake about life and death, if the visits per move is not high enough. In the meantime, I see most full game review services are with 1000 or 1600 visits per move, so I think this is a good reference number.

The reason I am looking at a PC with GPU is because the speed is important not only for a full game review but also for a live analysis. The live analysis in the above use case sees an issue if the calculation is too slow (in my current settings, it's only about 3.5 to 5 visits per second for LZ264(40b)), and in the process the best move can change around, which will be even more confusing for a kyu player (if the AI stabilizes quickly on one best move. then at least I know what the AI thinks the best move is).

I heard a 1060 GPU (4G) has about 200 visits per second with LZ 40b, this seems to a bit slow if 1000 to 1600 per move is preferred, so maybe a higher spec. GPU is better.

(Note in this context, visits = playouts = nodes)


This post by dino1019 was liked by: Bill Spight
Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #19 Posted: Tue Feb 25, 2020 7:41 pm 
Lives in gote

Posts: 650
Location: Adelaide, South Australia
Liked others: 219
Was liked: 281
Rank: Australian 3 dan
GD Posts: 200
200 visits/sec is actually quite nice: you get to see LZ's "first thought", then see whether or not it changes its mind on further investigation over the next few seconds. So you get some insight into whether the best move should be obvious or whether it requires reading. Besides, if you're reviewing interactively, you probably can't take in information much more quickly than 5 seconds per move anyway. No harm in aiming for a faster GPU, but I'd say it's nice to have not essential.

The ladder problem is only minor, and pretty much solved with the 40b networks. The policy net can "see" the ladder shape and any ladder-breakers without any playouts. (I'm in the middle of testing this and hope to write up some results soon.)

Can the app work with KataGo, or is it LZ-only?

It's already been said here, but I want to emphasise: even with CPU only, if you're getting 3 visits/sec then probably something is wrong with your setup. On an i5 it should be going 5-10x faster. I don't know if it's the config on the notebook itself, or something to do with communication between the notebook and the app. But you might want to look into that before spending money on hardware.


This post by xela was liked by: dino1019
Top
 Profile  
 
Offline
 Post subject: Re: Computer Specs for Go Review with AI
Post #20 Posted: Wed Feb 26, 2020 12:10 am 
Gosei
User avatar

Posts: 1780
Liked others: 182
Was liked: 495
I've self-reviewed a number of kyu games using 15-block networks, making sure that each move of each variation gets at least 100 visits (occasionally I let it run longer), and also had some games reviewed by strong players. The human's and the AI's suggestions can be divided into the following categories:

A. The human and the AI agree that a move was a big mistake, and suggest the same better move.

B. The human and the AI agree that a move was a big mistake, but the move suggested by the human would be considered as a mistake by the AI. Either the human didn't see the better move, or he saw it but chose not to mention it because he thought it was too complicated.

C. The AI thinks a move is a small mistake (about -3%), so is hard to detect in a self-review, but the mistake can easily be avoided by using human reasoning, so is pointed out by the human.

D. The AI notices a big mistake, and the human doesn't.

E. The AI makes a mistake.

Getting a fast computer eliminates "E", which occurs less than 1% of the time, but won't improve "C", which occurs much more frequently. So I still think that as far as kyu games are concerned, for teaching purposes humans are better than computers, and that the improvement we get from upgrading a computer is marginal.

Actually I haven't seen AI mistakes recently. I did notice a small number of mistakes with earlier networks like LZ157 at low playouts like:
  • misreading a ladder;
  • in a fight, suggesting to cut and create a weak group that ends up being killed without enough compensation

but I didn't notice such mistakes with Katago (since Katago reads ladders and counts liberties). It doesn't mean Katago doesn't make life-and-death mistakes, but they occur rarely enough so that it's not a problem.


This post by jlt was liked by: dino1019
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 52 posts ]  Go to page 1, 2, 3  Next

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