It is currently Thu Apr 18, 2024 7:55 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ] 
Author Message
Offline
 Post subject: KataGo 22946962 playouts
Post #1 Posted: Sat Mar 14, 2020 3:30 am 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
2x RTX 2080 Ti
~60 out of 64 GB RAM
~3 hours
g170-b30c320x2-s1287828224-d525929064.bin.gz 193 MB


Attachments:
Go, Baduk, Weiqi 2.jpg
Go, Baduk, Weiqi 2.jpg [ 1.96 MiB | Viewed 12530 times ]
Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #2 Posted: Sat Mar 14, 2020 3:43 am 
Gosei
User avatar

Posts: 1810
Liked others: 490
Was liked: 365
Rank: KGS 1-dan
Looks... conventional? :study:

_________________
My "guide" to become stronger in Go

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #3 Posted: Sat Mar 14, 2020 4:35 am 
Lives with ko

Posts: 150
Liked others: 200
Was liked: 30
Rank: 25 kyu
I wonder what would be the result with 5.5 komi. I like games where black has the advantage

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

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #4 Posted: Sat Mar 14, 2020 6:50 am 
Dies in gote

Posts: 62
Liked others: 8
Was liked: 4
Rules?
Komi?
Threads?

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #5 Posted: Sat Mar 14, 2020 8:09 am 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
SoDesuNe wrote:
Looks... conventional? :study:


Maybe so. But :w6: has no hits on Waltheri (ps.waltheri.net). And AlphaGoTeach plays the taisha in the top right for :b7:.

I suppose that the sequence up to :w10: is the principal variation. If so, how many rollouts does :w10: get?

_________________
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: KataGo 22946962 playouts
Post #6 Posted: Sat Mar 14, 2020 5:44 pm 
Oza
User avatar

Posts: 2401
Location: Tokyo, Japan
Liked others: 2339
Was liked: 1332
Rank: Jp 6 dan
KGS: ez4u
Excellent example of the limitations of bots? Even with 23 million playouts, katago calculates one corner is superior to the other three (only a little, but blue is clear)!

It would have been interesting to immediately click through the variation shown and see how many of the 23M playouts were used in following the main line beyond :w10: and how many were used on alternatives along the way.

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

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #7 Posted: Sat Mar 14, 2020 6:17 pm 
Honinbo

Posts: 10905
Liked others: 3651
Was liked: 3374
ez4u wrote:
It would have been interesting to immediately click through the variation shown and see how many of the 23M playouts were used in following the main line beyond :w10: and how many were used on alternatives along the way.


Yes. And with 6 million playouts in the main line, if we follow the example of the Elf commentaries and extend the main line until the next play in the main line would have fewer than 1500 playouts, the main line would be very long, I expect. :) Also very interesting. :)

_________________
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: KataGo 22946962 playouts
Post #8 Posted: Sat Mar 14, 2020 11:39 pm 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
go4thewin wrote:
I wonder what would be the result with 5.5 komi.


That's a very good question.
Maybe this would be a fair play.
Is it possible to change the komi for Lizzie/KataGo?
And how?

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #9 Posted: Sat Mar 14, 2020 11:44 pm 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
Limeztone wrote:
Rules?
Komi?
Threads?


Japanese
Komi I think 6.5
What do you mean by threads?

https://lifein19x19.com/viewtopic.php?f=18&t=17317
Tuning with 50000 visits:

Z:\>LG0\Lizzie\katago\katago.exe genconfig -model \LG0\Lizzie\katago\g170-b30c32
0x2-s1287828224-d525929064.bin.gz -output gtp_custom.cfg

=========================================================================
RULES

What rules should KataGo use by default for play and analysis?
(chinese, japanese, korean, tromp-taylor, aga, chinese-ogs, new-zealand, bga, st
one-scoring, aga-button):
japanese

=========================================================================
SEARCH LIMITS

When playing games, KataGo will always obey the time controls given by the GUI/t
ournament/match/online server.
But you can specify an additional limit to make KataGo move much faster. This do
es NOT affect analysis/review,
only affects playing games. Add a limit? (y/n) (default n):
n

NOTE: No limits configured for KataGo. KataGo will obey time controls provided b
y the GUI or server or match script
but if they don't specify any, when playing games KataGo may think forever witho
ut moving. (press enter to continue)


When playing games, KataGo can optionally ponder during the opponent's turn. Thi
s gives faster/stronger play
in real games but should NOT be enabled if you are running tests with fixed limi
ts (pondering may exceed those
limits), or to avoid stealing the opponent's compute time when testing two bots
on the same machine.
Enable pondering? (y/n, default n):y

Specify max num seconds KataGo should ponder during the opponent's turn. Leave b
lank for no limit:


=========================================================================
GPUS AND RAM

Finding available GPU-like devices...
Found CUDA device 0: GeForce RTX 2080 Ti
Found CUDA device 1: GeForce RTX 2080 Ti

Specify devices/GPUs to use (for example "0,1,2" to use devices 0, 1, and 2). Le
ave blank for good default:
"0,1"
could not parse int: "0
Specify devices/GPUs to use (for example "0,1,2" to use devices 0, 1, and 2). Le
ave blank for good default:
0,1

By default, KataGo will cache up to about 3GB of positions in memory (RAM), in a
ddition to
whatever the current search is using. Specify a max in GB or leave blank for def
ault:
60

=========================================================================
PERFORMANCE TUNING

Specify number of visits to use test/tune performance with, leave blank for defa
ult based on GPU speed.
Use large number for more accurate results, small if your GPU is old and this is
taking forever:
50000

Specify number of seconds/move to optimize performance for (default 5), leave bl
ank for default:

2020-03-12 22:55:26+0100: Loading model and initializing benchmark...

=========================================================================
TUNING NOW
Tuning using 50000 visits.
Automatically trying different numbers of threads to home in on the best:

2020-03-12 22:55:26+0100: nnRandSeed0 = 2369906978592220054
2020-03-12 22:55:26+0100: After dedups: nnModelFile0 = \LG0\Lizzie\katago\g170-b
30c320x2-s1287828224-d525929064.bin.gz useFP16 auto useNHWC auto
2020-03-12 22:55:28+0100: Cuda backend: Found GPU GeForce RTX 2080 Ti memory 118
11160064 compute capability major 7 minor 5
2020-03-12 22:55:28+0100: Cuda backend: Found GPU GeForce RTX 2080 Ti memory 118
11160064 compute capability major 7 minor 5
2020-03-12 22:55:28+0100: Cuda backend: Model version 8 useFP16 = true useNHWC =
true
2020-03-12 22:55:28+0100: Cuda backend: Model name: g170-b30c320x2-s1287828224-d
525929064
2020-03-12 22:55:28+0100: Cuda backend: Model version 8 useFP16 = true useNHWC =
true
2020-03-12 22:55:28+0100: Cuda backend: Model name: g170-b30c320x2-s1287828224-d
525929064


Possible numbers of threads to test: 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32
,

numSearchThreads = 5: 10 / 10 positions, visits/s = 533.10 nnEvals/s = 350.16 n
nBatches/s = 213.88 avgBatchSize = 1.64 (938.0 secs)
numSearchThreads = 12: 10 / 10 positions, visits/s = 1131.75 nnEvals/s = 769.38
nnBatches/s = 198.99 avgBatchSize = 3.87 (441.9 secs)
numSearchThreads = 10: 10 / 10 positions, visits/s = 964.41 nnEvals/s = 649.12 n
nBatches/s = 204.31 avgBatchSize = 3.18 (518.5 secs)
numSearchThreads = 20: 10 / 10 positions, visits/s = 1520.41 nnEvals/s = 1003.61
nnBatches/s = 152.46 avgBatchSize = 6.58 (329.0 secs)
numSearchThreads = 16: 10 / 10 positions, visits/s = 1387.92 nnEvals/s = 932.16
nnBatches/s = 178.77 avgBatchSize = 5.21 (360.4 secs)
numSearchThreads = 24: 10 / 10 positions, visits/s = 1624.20 nnEvals/s = 1089.80
nnBatches/s = 136.46 avgBatchSize = 7.99 (308.0 secs)
numSearchThreads = 32: 10 / 10 positions, visits/s = 1796.26 nnEvals/s = 1201.35
nnBatches/s = 113.86 avgBatchSize = 10.55 (278.5 secs)


Optimal number of threads is fairly high, tripling the search limit and trying a
gain.

2020-03-12 23:49:10+0100: nnRandSeed0 = 6506758374797114957
2020-03-12 23:49:10+0100: After dedups: nnModelFile0 = \LG0\Lizzie\katago\g170-b
30c320x2-s1287828224-d525929064.bin.gz useFP16 auto useNHWC auto
2020-03-12 23:49:13+0100: Cuda backend: Found GPU GeForce RTX 2080 Ti memory 118
11160064 compute capability major 7 minor 5
2020-03-12 23:49:13+0100: Cuda backend: Found GPU GeForce RTX 2080 Ti memory 118
11160064 compute capability major 7 minor 5
2020-03-12 23:49:13+0100: Cuda backend: Model version 8 useFP16 = true useNHWC =
true
2020-03-12 23:49:13+0100: Cuda backend: Model name: g170-b30c320x2-s1287828224-d
525929064
2020-03-12 23:49:13+0100: Cuda backend: Model version 8 useFP16 = true useNHWC =
true
2020-03-12 23:49:13+0100: Cuda backend: Model name: g170-b30c320x2-s1287828224-d
525929064


Possible numbers of threads to test: 1, 2, 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32
, 40, 48, 64, 80, 96,

numSearchThreads = 6: 10 / 10 positions, visits/s = 626.73 nnEvals/s = 407.14 n
nBatches/s = 209.06 avgBatchSize = 1.95 (797.9 secs)
numSearchThreads = 48: 10 / 10 positions, visits/s = 2214.93 nnEvals/s = 1421.03
nnBatches/s = 93.34 avgBatchSize = 15.22 (226.0 secs)
numSearchThreads = 64: 10 / 10 positions, visits/s = 2301.42 nnEvals/s = 1500.58
nnBatches/s = 77.43 avgBatchSize = 19.38 (217.5 secs)
numSearchThreads = 80: 10 / 10 positions, visits/s = 2322.34 nnEvals/s = 1543.88
nnBatches/s = 65.55 avgBatchSize = 23.55 (215.6 secs)
numSearchThreads = 40: 10 / 10 positions, visits/s = 1983.09 nnEvals/s = 1353.57
nnBatches/s = 104.84 avgBatchSize = 12.91 (252.3 secs)


Ordered summary of results:

numSearchThreads = 5: 10 / 10 positions, visits/s = 533.10 nnEvals/s = 350.16 n
nBatches/s = 213.88 avgBatchSize = 1.64 (938.0 secs) (EloDiff baseline)
numSearchThreads = 6: 10 / 10 positions, visits/s = 626.73 nnEvals/s = 407.14 n
nBatches/s = 209.06 avgBatchSize = 1.95 (797.9 secs) (EloDiff +57)
numSearchThreads = 10: 10 / 10 positions, visits/s = 964.41 nnEvals/s = 649.12 n
nBatches/s = 204.31 avgBatchSize = 3.18 (518.5 secs) (EloDiff +208)
numSearchThreads = 12: 10 / 10 positions, visits/s = 1131.75 nnEvals/s = 769.38
nnBatches/s = 198.99 avgBatchSize = 3.87 (441.9 secs) (EloDiff +264)
numSearchThreads = 16: 10 / 10 positions, visits/s = 1387.92 nnEvals/s = 932.16
nnBatches/s = 178.77 avgBatchSize = 5.21 (360.4 secs) (EloDiff +334)
numSearchThreads = 20: 10 / 10 positions, visits/s = 1520.41 nnEvals/s = 1003.61
nnBatches/s = 152.46 avgBatchSize = 6.58 (329.0 secs) (EloDiff +362)
numSearchThreads = 24: 10 / 10 positions, visits/s = 1624.20 nnEvals/s = 1089.80
nnBatches/s = 136.46 avgBatchSize = 7.99 (308.0 secs) (EloDiff +381)
numSearchThreads = 32: 10 / 10 positions, visits/s = 1796.26 nnEvals/s = 1201.35
nnBatches/s = 113.86 avgBatchSize = 10.55 (278.5 secs) (EloDiff +408)
numSearchThreads = 40: 10 / 10 positions, visits/s = 1983.09 nnEvals/s = 1353.57
nnBatches/s = 104.84 avgBatchSize = 12.91 (252.3 secs) (EloDiff +436)
numSearchThreads = 48: 10 / 10 positions, visits/s = 2214.93 nnEvals/s = 1421.03
nnBatches/s = 93.34 avgBatchSize = 15.22 (226.0 secs) (EloDiff +471)
numSearchThreads = 64: 10 / 10 positions, visits/s = 2301.42 nnEvals/s = 1500.58
nnBatches/s = 77.43 avgBatchSize = 19.38 (217.5 secs) (EloDiff +467)
numSearchThreads = 80: 10 / 10 positions, visits/s = 2322.34 nnEvals/s = 1543.88
nnBatches/s = 65.55 avgBatchSize = 23.55 (215.6 secs) (EloDiff +451)


Based on some test data, each speed doubling gains perhaps ~250 Elo by searching
deeper.
Based on some test data, each thread costs perhaps 7 Elo if using 800 visits, an
d 2 Elo if using 5000 visits (by making MCTS worse).
So APPROXIMATELY based on this benchmark, if you intend to do a 5 second search:

numSearchThreads = 5: (baseline)
numSearchThreads = 6: +57 Elo
numSearchThreads = 10: +208 Elo
numSearchThreads = 12: +264 Elo
numSearchThreads = 16: +334 Elo
numSearchThreads = 20: +362 Elo
numSearchThreads = 24: +381 Elo
numSearchThreads = 32: +408 Elo
numSearchThreads = 40: +436 Elo
numSearchThreads = 48: +471 Elo (recommended)
numSearchThreads = 64: +467 Elo
numSearchThreads = 80: +451 Elo

Using 48 numSearchThreads!

=========================================================================
DONE

Writing new config file to gtp_custom.cfg
You should be now able to run KataGo with this config via something like:
LG0\Lizzie\katago\katago.exe gtp -model '\LG0\Lizzie\katago\g170-b30c320x2-s1287
828224-d525929064.bin.gz' -config 'gtp_custom.cfg'

Feel free to look at and edit the above config file further by hand in a txt edi
tor.
For more detailed notes about performance and what options in the config do, see
:
https://github.com/lightvector/KataGo/b ... xample.cfg

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #10 Posted: Sat Mar 14, 2020 11:49 pm 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
Bill Spight wrote:
SoDesuNe wrote:
Looks... conventional? :study:


Maybe so. But :w6: has no hits on Waltheri (ps.waltheri.net). And AlphaGoTeach plays the taisha in the top right for :b7:.

I suppose that the sequence up to :w10: is the principal variation. If so, how many rollouts does :w10: get?



-no hits, because this game is way to difficult to find every move, even in the beginning.
-ps.walther.net is a "nice to have" and not the "truth about Go".

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #11 Posted: Sat Mar 14, 2020 11:53 pm 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
ez4u wrote:
Excellent example of the limitations of bots? Even with 23 million playouts, katago calculates one corner is superior to the other three (only a little, but blue is clear)!


Is this good or bad?

I think you mean that it would be better, if KataGo will focus on one corner and then copy and paste the results to the other corners.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #12 Posted: Sun Mar 15, 2020 12:02 am 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
I need help:

How to kill the circles on the picture???

I want the have only the 3 circles from every corner.

I don't need this SPACE INVADERS version.

You should know that this SPACE INVADERS attack at the beginning of the game is the most pleasant one.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #13 Posted: Sun Mar 15, 2020 1:06 am 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
Bug or feature?

I see every time at the start of an analyse the visits per second.

But after some time I see the visits every two seconds and the other second I see 0 visits.
And after some time I see the visits every three seconds and this is inreasing.

But it's not a loss of visits.
It's more like:
Every 1 second = 4000 visits
Every 2 seconds = 8000 visits
Every 3 seconds = 12000 visits
And this is increasing.

On my picture at the top you also see 0 visits, but I haven't stopped the analysis.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #14 Posted: Sun Mar 15, 2020 5:23 am 
Lives in sente

Posts: 757
Liked others: 114
Was liked: 916
Rank: maybe 2d
Try turning off the ownership calculation unless you specifically need it. It hurts performance and slows KataGo's reporting down, particularly when the search tree grows large. See https://github.com/lightvector/KataGo/issues/155

In Lizzie, turning it off is the "." button, or you can do it in one of the menus at the top.

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #15 Posted: Sun Mar 15, 2020 6:00 am 
Lives with ko

Posts: 131
Liked others: 0
Was liked: 7
lightvector wrote:
Try turning off the ownership calculation unless you specifically need it. It hurts performance and slows KataGo's reporting down, particularly when the search tree grows large. See https://github.com/lightvector/KataGo/issues/155

In Lizzie, turning it off is the "." button, or you can do it in one of the menus at the top.


Thx. The button works.
For what is the ownership calculation?

Top
 Profile  
 
Offline
 Post subject: Re: KataGo 22946962 playouts
Post #16 Posted: Sun Mar 15, 2020 6:02 am 
Lives in sente

Posts: 757
Liked others: 114
Was liked: 916
Rank: maybe 2d
The ownership estimation is what Lizzie shows as the black and white overlaid squares that indicate what areas will become owned in the future by black or white. Try going to a non-empty board position and pressing "." to toggle it back and forth to take a look.

Calculating and tracking ownership predictions during the search can be expensive, which is why turning it off improves performance.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 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