Page 1 of 13

Stockfish 4 PA_GTB

Posted: Sat Oct 12, 2013 1:14 pm
by Jeremy Bernstein
Stockfish 4 PA_GTB v001 is released!

No changes from the previous PA_GTB build based on Stockfish 3 beyond updating to the tip of the Stockfish upstream trunk.

Jeremy

Re: Stockfish 4 PA_GTB

Posted: Sat Oct 12, 2013 4:50 pm
by Luigi335
Thank you, Jeremy!

:D :D

Re: Stockfish 4 PA_GTB

Posted: Wed Oct 16, 2013 10:44 am
by User923005
This thing is really great for analysis.
I have a few million analyzed positions, and as the count grows, the analysis speed continues to accelerate.
I typically get to depth 30 (+/-2ply) in a minute.

Here is a sample analysis:
This is row 765 from one of my current analysis files:
r1bq1rk1/ppp2pp1/2np1n1p/4p3/1b2P3/2NP1NP1/PPP2PBP/R1BQ1RK1 w - -

Code: Select all

765                     
    Avoid move: 
    Best move (Stockfish-4-64-PA_GTB-001): Nc3-d5
    Not found in: 01:00
     2/2	00:07	         365	51	-0.06	Bd2 Bg4
     3/3	00:07	         714	100	-0.09	Bd2 Bg4 h3
     4/4	00:08	       2,090	287	-0.25	Be3 Be6 Qe1 d5
     5/5	00:08	       2,721	373	-0.20	Be3 Be6 Qe1 Bxc3 Qxc3
     6/6+	00:08	       6,414	876	-0.12	Bd2 Be6 a3 Bc5 Na4
     6/6	00:08	       6,919	944	-0.20	Bd2 Be6 a3 Bc5 b4 Bb6
     7/7	00:08	       8,177	1,054	-0.19	Bd2 Be6 a3 Bc5 b4 Bb6 Kh1
     8/8+	00:08	       9,145	1,174	-0.11	Bd2 Be6 a3 Bc5 b4 Bb6 b5
     8/8	00:09	      16,117	2,066	-0.09	Bd2 Be6 a3 Bc5 Na4 Bd4 c3 Bb6 Nxb6 axb6
     9/9	00:09	      23,862	2,863	-0.13	Na4 Ba5 c3 Bg4 b4 Bb6 Bd2 Re8 Nxb6 axb6
    10/11+	00:09	      33,212	3,966	-0.05	Na4 Ba5 c3 Bg4 b4 Bb6 h3 Be6 Bd2
    10/11	00:09	      41,226	4,918	-0.02	Na4 Ba5 c3 Bg4 b4 Bb6 h3 Be6 Bd2 Bd7 Nxb6 axb6
    11/13-	00:09	      78,679	9,314	-0.10	Na4 d5 exd5 Nxd5 a3 Bd6 h3 Be6
    11/13	00:09	     147,176	16,506	-0.16	a3 Ba5 Bd2 Be6 b4 Bb6 Na4 d5 exd5 Nxd5 c3
    12/16+	00:09	     218,233	24,253	-0.08	a3 Ba5 Nd5 Nxd5 exd5 Ne7 d4 Nxd5 dxe5 Be6 exd6 cxd6 Nd4
    12/16	00:10	     310,145	34,258	-0.18	a3 Ba5 Nd5 Be6 c4 Bb6 Be3 Bd7 b4 Bxe3 fxe3 a6 Nxf6+ Qxf6
    13/16	00:10	     358,261	38,011	-0.18	a3 Ba5 Nd5 Be6 c4 Bb6 Be3 Bd7 b4 Bxe3 fxe3 a6 Nxf6+ Qxf6
    14/19+	00:10	     568,381	59,404	-0.10	Nd5 Bc5 c3 Bb6 Nxb6 axb6 b4 Bg4 h3 Bd7 Bd2
    14/19	00:10	     629,620	65,503	-0.09	Nd5 Bc5 c3 Bb6 Nxb6 axb6 b4 Bg4 Re1 d5 exd5 Nxd5 Qb3 Re8 Bd2
    15/19	00:11	     710,579	70,994	-0.05	Nd5 Bc5 c3 Bb6 Nxb6 axb6 b4 Bg4 b5 Ne7 Bd2 Ng6 Re1 Qc8 a4 Qe6 c4
    16/23+	00:11	   1,016,115	99,805	+0.03	Nd5 Bc5 c3 Bb6 a4 Nxd5 exd5 Ne7 d4
    16/23+	00:11	   1,591,802	153,278	+0.11	Nd5 Bc5 c3 Bb6 a4 Nxd5 exd5 Ne7 d4 e4 Nh4 Nxd5 a5
    16/23	00:11	   1,956,808	185,796	+0.15	Nd5 Bc5 c3 a5 Be3 Bxe3 fxe3 Bd7 Nd2 Nxd5 exd5 Ne7 e4 Ng6 Nc4 Kh7 Qf3
    17/23-	00:11	   2,268,936	210,848	+0.07	Nd5 Bc5 c3 a5 Be3 Bxe3 fxe3 Bd7 Nd2 Nxd5 exd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3 a4 Nh4 Bd7 Qe2 a3 b3 b5 Nhf5 b4 cxb4 Rb8 Rac1 Nxb4 f4 Bxf5 Nxf5 c5 fxe5 dxe5 Red1
    31/41	00:51	 349,689,766	6,768,145	+0.12	Nd5 Bc5 c3 a5 Re1 Re8 Be3 Bxe3 Nxe3 a4 Nh4 Bd7 Qe2 a3 b3 b5 Nhf5 b4 cxb4 Rb8 Rac1 Nxb4 f4 Nc6 Qc2 Nb4 Qd2 exf4 gxf4 Bxf5 Nxf5 c5
   10/16/2013 2:39:31 AM, Time for this analysis: 00:01:00, Rated time: 12:45:00

Without the permanent hash feature, analysis could not be accelerated in this way.
I thank you sincerely for this very interesting improvement.

Re: Stockfish 4 PA_GTB

Posted: Thu Oct 31, 2013 8:29 pm
by Thebossss
Hi Jeremy Bernstein;

Thanks for the file..

Can u pls provide the polyglot adaptor with the settings(soft probe depth etc used in PA_GTB), without engine so that i will use polyglot.ini file to link to the latest built engines.
Because i see u used 10/10/2013 built engine but there are strong builts later but the settings u've used like soft probe depth, hard probe, persistent hash adds weightage to the engine.
So in short i expect polyglot adaptar without engine, so i use polyglot.ini to link engine file (Latest builts)..
I know u r not benifited for sending me this.. but i have no options..(I tried to compile day and night for 2 days but ended with errors)

Thanks hoping that u would send me, waiting for ur reply
You can PM me also..

Regards:
Thebossss

Locking

Posted: Sun Nov 03, 2013 9:55 pm
by petevine
Hi,
Is it currently possible for 2 (or more) instances of stockfish to access and write to the same PH file?
Thx

Re: Locking

Posted: Sun Nov 03, 2013 11:25 pm
by Jeremy Bernstein
petevine wrote:Hi,
Is it currently possible for 2 (or more) instances of stockfish to access and write to the same PH file?
Thx
Not a good idea, but I haven't tested it.

jb

Re: Stockfish 4 PA_GTB

Posted: Mon Nov 04, 2013 10:00 pm
by petevine
There's one thing left that would make the app complete as an analysis tool - being able to manually insert position evals (from TB7 for example). This feature might ilustrate why a locking mechanism is probably required.
Anyways, thanks for a great piece of code!

Re: Stockfish 4 PA_GTB

Posted: Mon Nov 04, 2013 10:41 pm
by Jeremy Bernstein
petevine wrote:There's one thing left that would make the app complete as an analysis tool - being able to manually insert position evals (from TB7 for example). This feature might ilustrate why a locking mechanism is probably required.
Anyways, thanks for a great piece of code!
You can do this via an EPD file. Check out the "importepd" command in the readme.

jb

Re: Stockfish 4 PA_GTB

Posted: Mon Nov 04, 2013 10:55 pm
by petevine
My bad :)
Is it safe then to use this option on the console while another instance is analysing?

Re: Stockfish 4 PA_GTB

Posted: Tue Nov 05, 2013 8:17 am
by Jeremy Bernstein
petevine wrote:My bad :)
Is it safe then to use this option on the console while another instance is analysing?
Nope. Well, it's untested. There are no protections in my code to deal with simultaneous write access to the PH database. Whether the Komodo Cabinet backend is robust enough to handle it, no idea. But this wasn't an imagined use case for me. :-)

jb