chessgod101
Please login to view all of the forum content.

Syzygybases Configuration:

View previous topic View next topic Go down

Syzygybases Configuration:

Post  R4ML4N on Sat May 31, 2014 1:20 pm



Download Syzygy Endgame Tablebases

Direct Downloaded:
Spiderman wrote:
3-4-5 Men - Syzygy EGTB
Code:
http://olympuschess.com/egtb/sbases/sbases345.tar.bz2
6 Men - Syzygy EGTB
Code:
http://oics.olympuschess.com/tracker/index.php

Server Direct Downloaded
Code:
http://tablebase.sesse.net/
Code:
http://chess.cygnitec.com/tablebases/syzygy/

Generator Syzygy EGTB
Code:
https://github.com/syzygy1/tb

Download Torrent:
Che$$Bender wrote: Syzygy Endgame Tablebases for your chess engine.
3,4,5 pieces

Generator: https://github.com/syzygy1/tb
Stockfish implementation: https://github.com/syzygy1/Stockfish

Syzygy 3-4-5 Individual Files - Direct Download (Download Torrent)
938.39 MB

Syzygy 6men DTZ - (Download Torrent)
81.39 GB

Syzygy 6men WDL - (Download Torrent)
67.83 GB

Source: http://oics.olympuschess.com/tracker/index.php

Syzygybases Configuration:-

Syzygybases are configured using the UCI options "Probe Syzygybases" and "Syzygybases Path".

The option "Syzygybases Path" should be set to the directory or directories where the .rtbw and .rtbz files can be found. Multiple directories should be separated by ";" on Windows and by ":" on Unix-based operating systems.

Example:
Code:
 
Code:
C:\tablebases\wdl345;C:\tablebases\wdl6;D:\tablebases\dtz345;D:\tablebases\dtz6

It is recommended to store .rtbw files on an SSD. There is no loss in storing the .rtbz files on a regular HD.
Note: At the moment, the "Syzygybases Path" option can only be set once. If you want to change it, you need to restart the engine.
If you have the 6-piece tables, set the value of "Probe Syzygybases" to 6. If you only have the 5-piece table, set it to 5.

   Set the value of this option to 0 if you want to temporarily disable tablebase probing.
What to expect
If the engine is searching a position that is not in the tablebases (e.g. a position with 7 pieces), it will access the tablebases during the search.If the engine reports a large mate score, this means that it has found a winning line into a tablebase position. Example: mate in 60 means 10 moves into a winning tablebase position.

If the engine is given a position to search that is in the tablebases, it will use the tablebases at the beginning of the search to preselect all good moves, i.e. all moves that preserve the win or preserve the draw while taking into account the 50-move rule.It wil then perform a search only on those moves. The engine will not move immediately, unless there is only a single good move. The engine might not report a mate score even when the position is won. Instead, it reports the score that is returned by the search.

It is therefore clear that behaviour is not identical to what one might be used to with Nalimov tablebases. There are technical reasons for this difference, the main technical reason being that Nalimov tablebases use the DTM metric (distance-to-mate), while Syzygybases use a variation of the DTZ metric (distance-to-zero, zero meaning any move that resets the 50-move counter). This special metric is one of the reasons that Syzygybases are more compact than Nalimov tablebases, while still storing all information needed for optimal play and in addition being able to take into account the 50-move rule.

In the near future an option will be added to switch between the current behaviour and a mode in which Stockfish will immediately play one of the good moves. This new mode will have the problem that it leads to unnatural play once the engine has reached a tablebase position. For example, the engine will then prefer any winning pawn move (even those that lose material and complicate the win) over moves that lead to a quick mate but have a higher "distance-to-zero" value.


Last edited by R4ML4N on Sat Jan 31, 2015 9:31 am; edited 6 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

Re: Syzygybases Configuration:

Post  Emadmafia20002 on Mon Jun 09, 2014 4:26 pm

How to configuration syzygy bases ؟
i, have all syzygy bases
1 syzygy 3 4 5 man 938 MB
2 Syzygy 6 WDL 67.8 GB
3 Syzygy 6 DTZ 81.3 GB
I, need to understanding how to configuration and
how to insert first part syzygy and second part syzygy and third part syzygy at houdini 3 program and
my drive (C) is not big and i, save all syzygy bases at drive (D)
i, can contingent syzygy bases at drive (D) ?
i,m not understanding how i, make it (C:\tablebases\wdl345;C:\tablebases\wdl6;D:\tablebases\dtz345;D:\tablebases\dtz6)

i,m not understanding how i, make it ( WDL 378 MB and DTZ 561 MB )
i, need help pls by arabic ling if you can and by pics too
and thanks for all here and thanks for eny help me

Emadmafia20002

Posts : 6
Points : 10
Reputation : 2
Join date : 2013-12-27

View user profile

Back to top Go down

Syzygy tablebase help

Post  xdavex on Sat Dec 06, 2014 6:12 am

This may be a old thread but the 2nd post describes what i am feeling right now. His language may not be the best but his point is obvious.


I need help on understanding what the Original post meant with configuration and more.

I know i already created a thread for this problem in another sub category ( sorry for that).

I hope this thread won't be left unanswered

xdavex

Posts : 7
Points : 9
Reputation : 0
Join date : 2014-12-06

View user profile

Back to top Go down

Tutorial Syzygybases By Official website Houdini,Komodo,Stockfish and GUI Chessbase

Post  R4ML4N on Wed Dec 10, 2014 9:29 pm

Tutorial Syzygybases :


Houdini 4 Chess Engine User's Manual Syzygy EGTB
Code:
http://www.cruxis.com/chess/manual/index.html?end_game_table_base_support.htm

Komodo 8 Tablebase support
Code:
http://komodochess.com/store/pages.php?cmsid=14

GUI chessbase Syzygy EndGame TableBase support
Code:
http://en.chessbase.com/post/engines-and-endgame-tablebases

syzygy Stockfish forked from mcostalba/Stockfish
Code:
https://github.com/syzygy1/Stockfish

What is it Syzygy Bases  Question
Code:
https://chessprogramming.wikispaces.com/Syzygy+Bases


Last edited by R4ML4N on Sat Jan 31, 2015 10:06 am; edited 2 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

help

Post  xdavex on Fri Dec 12, 2014 8:37 am

Bro I have already read all those and it does not answer my questions

How do i set this syzygy path,probelimit ? Where do i find it? etc


Please, just give me a video on how to set syzygypath and probe limit and other things like that in CB 13 or Deep Fritz 14.

Showing me a video on how to do it is the only way i will understand.

Syzygy does work btw when there are only 5 pieces ( I have 3-4-5 TB)

but when its using more than that it does not work anymore, The engine does NOT CONSULT the tablebase in the calculations.
There wasn't a tb= x in engine analysis ( x is the number of times the engine checks the tb)

I need syzygy to work with and engine and i need a video because it is the simplest and fastest way to show it.

xdavex

Posts : 7
Points : 9
Reputation : 0
Join date : 2014-12-06

View user profile

Back to top Go down

Tablebases syzygy 3-4-5 Man (938MB) Configuration

Post  R4ML4N on Sat Jan 31, 2015 7:04 am

Nathanael Russell wrote:Quoted from CCRL -

syzygy says:

"I have just released my tablebase generator for up to 6 pieces on github:
https://github.com/syzygy1/tb

It generates two sets of files:
- WDL files (extension: .rtbw) storing win/draw/loss information for access during search.
- DTZ files (extension: .rtbz) storing distance-to-zero information for access at the root.

In addition to win/draw/loss information, the WDL files also store whether the win or loss can be enforced within 50 moves.

The tables use custom compression. Total compressed size:

Code:
                         WDL          DTZ
    up to 5 pieces       378 MB        561 MB
    up to 6 pieces       68.3 GB       81.9 GB

VocalTechnique wrote:Follow instructions below exactly -

Download the 345 file and both WDL6 and DTZ6 files from http://oics.olympuschess.com/tracker/index.php

Direct Downloaded 3-4-5 Men - Syzygy EGTB
Code:
http://olympuschess.com/egtb/sbases/sbases345.tar.bz2

1. Name new folder "Tablebases" in the C drive...

2. Inside the Tablebases folder, name two new folders:
        - dtz345  ( DTZ files (extension: .rtbz)  storing distance-to-zero information for access at the root )

        - wdl345 ( WDL files (extension: .rtbw)  storing win/draw/loss information for access during search  )

4. Take the single file, "345" downloaded from the website and open the file.

5. Alphabetize all wdl files seperately from DTZ so that all WDL is listed on top. This is easy to do since all DTZ files end with a 'z'

6. Cut the WDL files from the folder and paste into the new "wdl345" folder you just made. This folder should be inside the Table bases folder you made. The "Table bases" folder should be saved directly to the C drive.

7. *Important step* right click on both the dtz345(extension: .rtbz)  and wdl345(extension: .rtbw) and click properties. If you split the files correctly, you should have the following:

Folder dtz345
dtz345(extension:
Folder wdl345
wdl345(extension:

Before you go any further, check to make sure this is correct and PM me.
size:

8. You do not need to split the DTZ6 file or the WDL6 file. Just make sure both files are saved inside the "Tablebases " folder on C drive.

Example:
C:/
Table bases/
WDL345
WDL6
DTZ345
DTZ6
Example:

8. When you set the tablebases path, be sure that your wdl345 file is grouped with wdl6 file and your dtz345 file is grouped with your dtz6 file.

Example of my directory path for the Syzygy endgame tablebases in the Stockfish engine -

Code:
C:\tablebases\wdl345;C:\tablebases\wdl6;C:\tablebases\dtz345;C:\tablebases\dtz6
tablebases in the Stockfish engine:

9. If you use 6 piece tb, make sure to change probe depth from 5 to 6. If using 5 piece tb, leave the number at 5. (This is located inside the engine parameters).

10. Cope and Paste your new directory path on Notepad and save for future use. This directory path is correct for both the Stockfish and Houdini engine.


Last edited by R4ML4N on Tue Feb 03, 2015 1:11 am; edited 15 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

Installing the tablebases (from Chessbase site)

Post  R4ML4N on Sat Jan 31, 2015 7:05 am

Steve.R wrote:Installing the tablebases (from Chessbase site):

These instructions presume you are using one of the latest Fritz interfaces such as Deep Fritz 13/14 or Houdini 3/4.
Image:

The first step is to update the program, as support for Syzygy is
a new addition. Click on File at the top left, the Activation, and
then Update Program
Image:

If the program is not up-to-date, click yes, otherwise, skip to the next step
image:

Now click on File, and choose Options as above
image:

In the Options pane that opens, click on the Tablebases tab,
as above, and then click on More...
image:

A special pane with tablebase options will open. Bear in mind, you should not
install more than one kind. If you do, only the top installed option will be used.
Click on the type to install on the left, then on the [...] button to find them
image:

Locate the tablebases where they are saved
image:

Now they should appear in the Path 1. Click Ok and give it a test run
image:

How will you know if they are installed? In an advanced position with few
pieces, the engine should display how many times it consulted the tablebases,
otherwise know as 'tablebase hits'. Above we can see that in its last line of
analysis, it consulted the tablebases 1379 times.


Last edited by R4ML4N on Sat Jan 31, 2015 9:26 am; edited 4 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

How to configuration syzygy bases 3-4-5-6 Man files on HDD (hard disk drive) / SSD (Internal Solid-State Drives )

Post  R4ML4N on Sat Jan 31, 2015 7:13 am

MalakAyman wrote:How to configuration syzygy bases ؟
i, have all syzygy bases  
1 syzygy 3 4 5 man  938 MB
2 Syzygy 6 WDL 67.8 GB
3 Syzygy 6 DTZ 81.3 GB
I, need to understanding how to configuration and
how to insert first part syzygy and second part syzygy and third part syzygy at houdini 3 program and
my drive (C) is not big and  i, save all syzygy bases at drive (D)
i, can contingent syzygy bases at drive (D) ?
i,m not understanding how i, make it (C:\tablebases\wdl345;C:\tablebases\wdl6;D:\tablebases\dtz345;D:\tablebases\dtz6)

i,m not understanding how i, make it  ( WDL 378 MB   and     DTZ  561 MB  )
i, need help pls by arabic ling if you can and by pics too
and thanks for all here and thanks for eny help me


Steve.R wrote:
MalakAyman wrote:How to configuration syzygy bases ؟

Ronald de Man wrote:
To use tablebases, you'll need to download them. For example using bittorrent:
http://oics.olympuschess.com/tracker/index.php

Download in this order:
- 3-4-5
- 6men WDL
- 6men DTZ

If you're just interested in 5 piece, you can stop at 3-4-5.
If you're interested in 6 piece, you still need 3-4-5.

If you want to verify checksums, look here:
http://kirill-kryukov.com/chess/tablebases-online/

To let the Syzygy version of Stockfish find the tablebases, set the SyzygyPath uci variable to the list of folders where you have stored the TB files (.rtbw and .rtbz extensions). Separate folders with a semicolon.

For example:
C:\syzygy\5piece;C:\syzygy\WDL;D:\syzygy\DTZ

Do not use spaces around the semicolons.

For optimal performance, place the WDL files (and all of 5 piece if you have those in 1 folder) on SSD. There is no harm in leaving the DTZ files on HDD.


Last edited by R4ML4N on Tue Feb 03, 2015 1:18 am; edited 2 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

syzygyprobedepth difference in using 1 or use 99.

Post  R4ML4N on Sat Jan 31, 2015 7:28 am

goliat72 wrote:Hi a question syzygyprobedepth difference in using 1 or use 99.
Thank you.
using 1
image:

or use 99.
image:

:sm015: :sm010:


Ideal Syzygy Probe Depth

Nathanael Russell wrote:
goliat72 wrote:Hi a question syzygyprobedepth difference in using 1 or use 99.
Thank you.
----------------------------------------------------------------------------------------------
http://talkchess.com/forum/viewtopic.php?start=0&t=50896&topic_view=flat

Anil V Dharan wrote:Hi
I wonder if anyone here could tell me what is the ideal syzygy probe depth for Stockfish and Houdini 4 ? I have all the Syzygy EGTB on a 360 GB Corsair SSD.
I know the recommendation is to lower it for SSD users, but then I start to get THOUSANDS of TB hits, eventually slowing down my Engine ! If I raise it too much, then very few TB hits.
(Are they useful for online engine-engine matches at all ?? I have my doubts. )
Any ideas ?

Ronald de Man wrote:If TB probing considerably lowers nps, then raise probe depth. If nps stays fine, then do not raise it. Provided nps stays fine, thousands or millions of probes is not a problem (on the contrary, the more the better).

What percentage of nps decrease is still acceptable I do not know.

Btw, it seems that in endgame positions (with just a few pieces left) nps of SF when running on many cores anyway is rather low even without TB usage (one would expect nps to almost double compared to the opening, but in e.g. TCEC on 16 cores it decreased quite significantly).

Source:
Ideal Syzygy Probe Depth ? (using SSD)
Code:
http://talkchess.com/forum/viewtopic.php?start=0&t=50896&topic_view=flat


Last edited by R4ML4N on Sat Jan 31, 2015 9:35 am; edited 2 times in total

R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

Generator Syzygybases

Post  R4ML4N on Sat Jan 31, 2015 7:39 am

Generator Syzygybases

Code:
https://github.com/syzygy1/tb

Syzygy Endgame Tablebases for your chess engine. 3,4,5 pieces
Overview

Included are a tablebase generator and probing code for adding tablebase probing to a chess engine. The tablebase generator is able to generate all tablebases for up to 6 pieces.

Requirements for the generator:

16 GB of RAM for 6-piece tables (much less for 5-piece tables).
x86-64 CPU.
64-bit OS.
Sufficiently recent gcc (producing 64-bit executables).
Tablebase files

File names encode the type of tablebase: K+R+P vs K+R becomes KRPvKR. Each tablebase corresponds to two files: KRPvKR.rtbw and KRPvKR.rtbz. Note that KRPvKR also covers K+R vs K+R+P.

The .rtbw files store win/draw/loss information including, where applicable, information on the 50-move rule. During the search only the .rtbw files are accessed. These files are "two-sided": they store information for both white to move and black to move.

The .rtbz files store the distance-to-zero: the number of moves to the next capture or pawn move. These files only need to be accessed when the root position has 6 pieces or less. They are "single-sided".

The 6-piece WDL tables are 68.2 GB in total. The DTZ tables take up 81.9 GB. For up to 5 pieces, the numbers are 378 MB and 561 MB. Ideally, the WDL tables are stored on an SSD.

Tablebase generator:
The directory src/ contains the tablebase generator code. It should be easy to build on x86-64 Linux system and on 64-bit Windows with MinGW ("make all"). It might be necessary to edit src/Makefile. In particular, if your CPU does not support the popcnt instruction, the line FLAGS += -DUSE_POPCNT should be commented out.

There are five programs:

rtbgen for generating pawnless tablebases.
rtbgenp for generating pawnful tablebases.
rtbver for verifying pawnless tablebases.
rtbverp for verifying pawnful tablebases.
tbcheck for verifying integrity of tablebase files based on an embedded checksum.
Usage: rtbgen KQRvKR (or rtbgenp KRPvKR)
Produces two compressed files: KQRvKR.rtbw and KQRvKR.rtbz. Both files contain an embedded checksum.

Options:
--threads n (or -t n)
Use n threads. If no other tasks are running, it is recommended to set n to the number of CPU cores, or if the CPU supports hyperthreading, to the number of CPU hyperthreads.

--wdl (or -w)
Only compress and save the WDL file (with .rtbw suffix).

--dtz (or -z)
Only compress and save the DTZ file (with .rtbz suffix).

-g
Generate the table but do not compress and save.

--stats (or -s)
Save statistics. Statistics are written to $RTBSTATSDIR/KQRvKR.txt or to ./KQRvKR.txt if $RTBSTATSDIR is not set.

--disk (or -d)
Reduce RAM usage during compression. This takes a bit more time because tables are temporarily saved to disk. This option is necessary to generate 6-piece tables on systems with 16 GB RAM. This option is not needed on system with 24 GB RAM or more.

Usage: rtbver KQRvKR (or rtbverp KRPvKR)
Verifies consistency of KQRvKR.rtbw and KQRvKR.rtbz. This should detect (hardware) errors during generation and compression. For technical reasons pawnful tables with symmetric material such as KPvKP and KRPvKRP cannot (at least currently) be verified.

Options:
--threads n (or -t n)
See above.

--log (or -l)
Log verification results to rtblog.txt.

-d
Look for the WDL file in directory $RTBWDIR and look for the DTZ file in directory $RTBZDIR. Without this option, both files should be present in the current working directory.

Usage: tbcheck KQRvKR.rtbw KRPvKR.rtbz
Recalculates a checksum for each specified tablebase file and compares with the embedded checksums. This should detect disk errors and transmission errors.

Options:
--threads n (or -t n)
See above.

--print (or -p)
Print embedded checksums. Do not check correctness.

Note: The programs rtbgen, rtbgenp, rtbver and rtbverp require access to WDL tablebase files for "subtables". These should be present in the directory $RTBWDIR.

Scripts

The somewhat primitive perl script src/run.pl can be used for generating and verifying all or part of the tables. Make sure the location of rtbgen, rtbgenp, rtbver and rtbverp is in your $PATH variable.

Usage: run.pl --generate

Options:
--threads n (or -t n)
See above.

--generate
Generate tablebases. Tablebases that already have been generated and are found in the current working directory are skipped.

--verify
Verify tablebases.

--min n
Only treat tablebases with at least n pieces.

--max n
Only treat tablebases with at most n pieces.

--disk
Use this option to generate 6-piece tables on a system with 16 GB of RAM.

Probing code

The directory interface/ contains probing code. It does not come in the form of a shared library, and requires some work to integrate into an engine. The main reason for this is efficiency. There are four files: tbcore.c, tbcore.h, tbprobe.cpp, tbprobe.h.

The files tbcore.c and tbcore.h should not require much changes, although engine authors might want to replace some printf()s with suitable logging statements. The files tbprobe.cpp and tbprobe.h do require some changes but these should be fairly straightforward when following the comments. The only reason for tbprobe.cpp having the .cpp extension is that I have used Stockfish as example. The probing code expects WDL files in $RTBWDIR and DTZ files in $RTBZDIR.

The files main.cpp, search.cpp and types.h are from Stockfish with calls to the probing code added (see // TB comments). The change in types.h is necessary in order to make room for "tablebase win in n" values distinct from "mate in n" values. Please note that the integration of probing code into Stockfish is merely intended as a proof of concept. It is far from perfect and might have some bugs.

Terms of use

The files lz4.c and lz4.h in src/ are copyrighted by Yann Collet and were released under the BSD 2-Clause License. The files city-c.c, city-c.h and citycrc.h in src/ (ported by me from C++ to C) are copyrighted by Google, Inc. and were released under an even more liberal license. Both licenses are compatible with the GPL. All other files in src/ are released under the GNU Public License, version 2.

The files main.cpp, search.cpp and types.h in interface/ obviously are copyrighted by the Stockfish authors and covered by the Stockfish GPL.

The files tbcore.c, tbcore.h, tbprobe.cpp and tbprobe.h in interface/ may be freely modified and redistributed in source and/or binary format.




R4ML4N

Posts : 481
Points : 856
Reputation : 81
Join date : 2012-10-05
Age : 19
Location : Indonesian

View user profile http://unihack-team.blogspot.com/

Back to top Go down

Re: Syzygybases Configuration:

Post  Chahrazad on Sun Feb 22, 2015 11:57 am

I wonder if it's well configured

I have my folders as follows, (all in C:\ since I have only C:\ in my computer) :


  1. C:\syzygy (291 files - 938 Mo)
  2. C:\wdl (366 files - 67,8 Go)
  3. C:\dtz (366 files - 81,3 Go)


Thanks for any hints

Chahrazad

Posts : 13
Points : 18
Reputation : 1
Join date : 2015-02-22

View user profile

Back to top Go down

Re: Syzygybases Configuration:

Post  Sponsored content Today at 5:42 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum