Gaviota TBs

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

Stein
Posts: 5
Joined: Sun Sep 22, 2019 8:30 am
Full name: Hedinn Steingrimsson

Gaviota TBs

Post by Stein »

Hi,

The Gaviota TBs are available in different compression formats: https://github.com/michiguel/Gaviota-Ta ... master/gtb
There is .cp1, .cp2, .cp3 and .cp4.
https://github.com/michiguel/Gaviota-Ta ... ompression lists four compression methods.
Do you know which compression method is used for which of those .cps? Or e.g. .cp4?

https://python-chess.readthedocs.io/en/ ... viota.html shows that the .cp4 format can be read directly (see below).
Also that it is possible to search for a FEN there.
My questions are:
Is there a way to unpack on of the .cp formats?
I think that the unpacked format is .epd. Is that correct?
Is there a way to probe .epd or the unpacked format directly instead of FEN?

If someone has experience working with the Gaviotas, then it would be great to get in touch.

add_directory(directory: str) → None[source]
Adds .gtb.cp4 tables from a directory. The relevant files are lazily opened when the tablebase is actually probed.

Thank you and have a nice day!
MOBMAT
Posts: 385
Joined: Sat Feb 04, 2017 11:57 pm
Location: USA

Re: Gaviota TBs

Post by MOBMAT »

Now that every other EGTB format is going deeper, can Gaviota TBs be generate for 6-man? Or is it already done and I didn't notice.
i7-6700K @ 4.00Ghz 32Gb, Win 10 Home, EGTBs on PCI SSD
Benchmark: Stockfish15.1 NNUE x64 bmi2 (nps): 1277K
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Gaviota TBs

Post by Nordlandia »

The developer said he may consider do it when time allowed it. 1-2 years ago afaik.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Gaviota TBs

Post by syzygy »

Stein wrote: Fri Feb 28, 2020 2:00 am Hi,

The Gaviota TBs are available in different compression formats: https://github.com/michiguel/Gaviota-Ta ... master/gtb
There is .cp1, .cp2, .cp3 and .cp4.
https://github.com/michiguel/Gaviota-Ta ... ompression lists four compression methods.
Do you know which compression method is used for which of those .cps? Or e.g. .cp4?
The answer is probably given by this table:
https://sites.google.com/site/gaviotach ... ne/schemes
I think that the unpacked format is .epd. Is that correct?
Not correct. It would be incredibly inefficient.
A tablebase file does not contain any FENs or other encodings of individual positions. Instead, when you probe a position you first need to map the position to a number N, where N runs from 0 to the number of positions in the table minus 1. The uncompressed table will now store the value of the position in the Nth byte.
User avatar
phhnguyen
Posts: 1434
Joined: Wed Apr 21, 2010 4:58 am
Location: Australia
Full name: Nguyen Hong Pham

Re: Gaviota TBs

Post by phhnguyen »

MOBMAT wrote: Tue Apr 14, 2020 11:16 pm Now that every other EGTB format is going deeper, can Gaviota TBs be generate for 6-man? Or is it already done and I didn't notice.
I guess that 6-men should be about 1 TB, request a strong computer with at least 64 GB, run in 1-2 months. Doable but still expensive, download and store them are still big troubles.
https://banksiagui.com
The most features chess GUI, based on opensource Banksia - the chess tournament manager
Dann Corbit
Posts: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Gaviota TBs

Post by Dann Corbit »

The gaviota generator cannot make 6 man files unless it has been updated
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
Nordlandia
Posts: 2821
Joined: Fri Sep 25, 2015 9:38 pm
Location: Sortland, Norway

Re: Gaviota TBs

Post by Nordlandia »

Nalimov 5-men 6.89 GB | Gaviota 5-men 6.54 GB | Difference = 5%

Total fire difference is going to be Nalimov 6-men 1.11TB | Gaviota 6-men ~ 1.0534 TB

Unless compression is modified, there is little gain. I'll consider 5% as trivial.
User avatar
hgm
Posts: 27790
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Gaviota TBs

Post by hgm »

The gain is that you do not need a license.
syzygy
Posts: 5557
Joined: Tue Feb 28, 2012 11:56 pm

Re: Gaviota TBs

Post by syzygy »

phhnguyen wrote: Wed Apr 15, 2020 3:38 am
MOBMAT wrote: Tue Apr 14, 2020 11:16 pm Now that every other EGTB format is going deeper, can Gaviota TBs be generate for 6-man? Or is it already done and I didn't notice.
I guess that 6-men should be about 1 TB, request a strong computer with at least 64 GB, run in 1-2 months. Doable but still expensive, download and store them are still big troubles.
The Gaviota TB scheme uses a somewhat complex indexing scheme. It is a lot of work to implement that scheme for the various possible combinations of 6 pieces (you need separate schemes for KQRvKQR, KQQvKQR, KQQvKQQ, KQQQvKQ, KQQQQ, repeat for pawnful tables).

I have written generators with similar schemes (with 5000+ lines of code for indexing 5-piece suicide tables) and in the end realised it is better to keep the indexing relatively simple (which then gives more room for trying out various permutations of the pieces and see which gives the smallest table).