Commit Graph
100 Commits
Author SHA1 Message Date
Andrew Grant c66e7f4c0a Restore stepping of book_index
This is also needed for unique PGN naming.
Stopping the stepping, for datagen, was a mistake, predicated on the notion that we only needed the book_index to handle book seeding.
2024-09-21 17:05:43 -04:00
Andrew Grant 076f7af5ea Have server provide explicit int32 seeds 2024-09-20 20:32:46 -04:00
Andrew Grant 795f1a0528 Correct massive flaws in Datagen genfens seeding 2024-09-18 23:10:52 -04:00
andrew 2c499d8a29 Add back missing self. for machine_id setting 2024-08-12 17:43:23 -04:00
andrew 8a150343be Kick Client/Server to v30 2024-08-08 17:24:06 -04:00
andrew 43c07db772 Fix reading an empty machine id file 2024-08-08 17:20:07 -04:00
andrew bc8c9585a6 Fix failure to exit in --fleet mode 2024-08-08 17:15:29 -04:00
andrew 0a135674e2 Kick to v29; Force timeout on fleet workers 2024-06-30 23:41:11 -04:00
andrew 72c20ca8d8 Extra fix for Windows for the previous commit 2024-06-30 20:22:13 -04:00
andrew 098649d8b1 Fix bug where --rebuild is ignored for bench_all.py
Code was not appending the branch name to the engine name, thus failing to find old binaries, and delete them
2024-06-30 19:16:50 -04:00
andrew 377c2d8de8 Ensure no zombie threads during genfens 2024-06-17 12:07:16 -04:00
Andrew Grant 9e94da6b1f Limit benching to 60s, before killing engines/threads and raising an exception (#225)
Adds a fourth possible OpenBenchBadBenchException exception during benching, for exceeding the max bench duration. This ensures that engines that infinitely stall, do not also lock up OpenBench clients. Additionally, make sure to clean up possible zombie processes that existed even in the case of a proper bench.
2024-06-17 11:53:45 -04:00
andrew 9f3fc1141f Improve robustness of PGN parsing
Attempts to ensure any malformed PGN comment, or missing comment, produces an {unknown} comment in the processed version, without eating away at the move list. Three example pgns are included in a new UnitTests folder for this.

The first two PGNs contain intentionally damaged results -- either by missing fields, having wrong formats for the fields, or just outright having no comment at all. The third PGN is from self-play with Weiss, as an example of a proper output
2024-05-26 13:56:56 -04:00
andrew 809a21d63a Add Speed Test default for Torch 2024-05-08 22:33:25 -04:00
andrew 13c1c5b4bd Add defaults to all workload presets if not present 2024-05-08 22:27:36 -04:00
andrew 1a95253055 Use Pentanomial error bars for tests with use_penta
These elo error bars, and the elo estimate itself, are still WRONG for SPRT tests, as there is no accounting for the bias introduced by the SPRT cutoff condition. Refering to elo values, or their error bars, from SPRT tests, is flawed at best.

This change does however provide proper error bars for fixed-game and datagen workloads
2024-05-08 21:33:41 -04:00
andrew e378c025f2 Force Windows binaries to have .exe extensions
Technically, authors really should have their makefiles attached the .exe extension on Windows. But they seldom do. Its easier to add this hack fix, than it is to enforce that standard, and help people debug.

Worth noting that this is only an issue for Windows, in shells that don't let you execute files, IE powershell/cmd.
2024-05-02 03:12:49 -04:00
andrew 6937b2cf81 Kick Client/Server to v28 2024-04-19 21:22:14 -04:00
andrew a5e031a148 Add --scale option to archive2nps.py
--scale will scale the time spent based on the ScaleFactor header in the PGN. In practice, this should get your engines NPS values very close to the configuration speeds.

This produces a functional change in the % output reported
2024-04-15 15:02:26 -04:00
andrew 00ca2e524e Set Last Report after the request, not before
Extremely slow connections can cause a chain of reports without ever meaningfully exhausting the results queue, causing single pairs of results to be reported at a time, until almsot the end of time.
2024-04-13 22:09:41 -04:00
andrew d76d911a82 Add games reporting to archive2nps; Extra fix for last commit 2024-04-09 12:41:28 -04:00
andrew 9385dfc27e Fix security flaw allowing leaking of meta data in the API
Coding bug allows bypassing the API authentication on private servers, to reach the config, network, and build info meta-data endpoints. config and build-info are already public generally, but network meta-data was not.
2024-04-09 12:39:02 -04:00
andrew 9f21dbcb17 Kick static to v4 2024-03-28 19:43:31 -04:00
andrew a0d76f32ec Turn an archive into a single pgn file, via stdout 2024-03-19 23:19:16 -04:00
andrew f71a068949 Convert VERBOSE OpenBench PGN archive to NPS reporting 2024-03-19 19:30:29 -04:00
andrew da0abebb75 Update Torch datagen default button 2024-03-12 22:23:06 -04:00
andrew 4b2e849000 Finish adjusting Torch's default config 2024-03-12 21:34:46 -04:00
andrew 1545797d27 Increase Torch STC by 50%; Restore TypeI/II errors to 5% 2024-03-12 21:33:43 -04:00
andrew 6020727b0d Remove MoveOverhead=100 from Stockfish
Latest versions of Stockfish have resolved the timeloss issue
2024-03-12 21:33:22 -04:00
andrew e877d6f70b Kick Server/Client to v27 2024-03-12 21:22:58 -04:00
Andrew Grant 2fcb7329ce Implement support for DATAGEN Workloads through the genfens interface (#200) 2024-03-12 21:22:07 -04:00
andrew 45302fa347 Force css/js updates 2024-03-11 19:37:23 -04:00
andrew eca8ccc613 Add a mechanism for cache-busting static files 2024-03-07 19:15:41 -05:00
andrew 5692a1373a Style changes; ensure extra non-breaking white space on mobile 2024-03-07 18:20:02 -05:00
Andrew GrantandArseniy 989305997b Account for default config when switching presets (#198)
Co-authored-by: Arseniy <93079612+codedeliveryservice@users.noreply.github.com>
2024-03-07 18:03:54 -05:00
andrew e1b2715b3f Fix Stockfish reference speed 2024-03-05 22:54:26 -05:00
andrew 6b268e7c20 Remove debug information 2024-02-29 21:56:13 -05:00
andrew 52e5fbd4c6 Second fix for public engines 2024-02-29 21:54:41 -05:00
andrew aecd3d02e5 Fix issues with branch names containing a slash 2024-02-29 21:50:04 -05:00
andrew 2086568e57 Allow any scipy version until its known to be an issue 2024-02-29 21:00:34 -05:00
andrew fbebb2ba7c Loosen version requirements for packages 2024-02-29 20:59:48 -05:00
andrew 9c838cba9b SPSA: tuning integers, raise C_curr to 0.50 to allow C_end below 0.50
Allows passing C_end as 0 for integer tunes for example, which ensures that no matter the iteration number, C_curr will be exactly 0.50. This is useful for tuning very small numbers which have great impact, like depths, or impactful but small weights.

The formula for C_curr is C_end x (total_iters/curr_iters)^Gamma, where Gamma is usually 0.101
2024-02-28 17:59:57 -05:00
andrew 86a395d08d Remove final direct use of relpath instead of abspath
Fixes another possible error case when tmpfs is not on the same disk as the cwd
2024-02-26 20:28:54 -05:00
andrew 27d9296ce1 Update NPS values; Bugfixes for bench_all.py 2024-02-26 20:12:03 -05:00
andrew 08e4a7f5d7 Add Caissa and Obsidian configs
Authors may choose to update them for their own branches, but they are uploaded here for safe keeping. IE a semi-central location where a cloner can setup their engine to play against others easily
2024-02-26 17:17:18 -05:00
Andrew Grant b54719ee77 Fixes for relative vs absolute file paths when building (#193)
The output binary is saved alongside the makefile initially, and moved after the fact. This was done to account for Windows and cross-drive issues due to temp filesystems. Because we are saving alongside the makefile, we can just use a relative path, ie the basename of the engine binary, to avoid possible issues in some engine build scripts.

Also, check process exitcode instead of just checking for the binary when building
Also, pretty-print the compiler error, even though it is sent to the server
2024-02-20 18:10:45 -05:00
andrew 8efe0f919c Hack fix for relative import issue.
Alternatives are to use a setup-install util, which is an over-solution
2024-02-15 22:31:56 -05:00
andrew bb30aab72d Standardize usage of sha256 and error reporting 2024-02-15 19:33:15 -05:00
andrew f65be5c572 Various fixes for Windows ( and maybe Linux )
using Make to tell the compiler to produce a binary to the /Engines/ dir fails on Windows when the tmpfs is not on the same disk as the Client. This might have also occured on Windows. shutil resolves that.

Take extra care to always maintain the possible .exe extension on files when doing this. This is done twice in the shutil line; first making sure to pickup the true file output name, and secondly to only use the root of the out_path and not the basename
2024-02-12 16:20:15 -05:00
andrew 824b48fbf9 Kick to v26
Forces clients to refresh, to accept Equi
2024-02-04 04:49:09 -05:00
andrew c10614220b Add Equisetum 2024-02-04 04:43:28 -05:00
andrew 2db74d1b83 python3.6 support fix 2024-02-02 06:59:13 -05:00
andrew 732e7b1d61 Drop leading slash in api network requests 2024-02-02 05:42:22 -05:00
andrew fdbec02818 Kick to v25 2024-02-02 05:35:19 -05:00
andrew c268b47e4d Modernize running benchmarks and reporting errors 2024-02-02 05:35:19 -05:00
andrew 8f250c2c3f Reuse utils.py in worker.py; Add many exceptions for safety 2024-02-02 05:35:19 -05:00
andrew a0db932b09 Update Berserk's default books 2024-02-01 05:14:20 -05:00
andrew 1d75616503 Fix unknown race condition in obtaining Result objects
For unclear reasons, multiple Result objects can be created with the same test and machine, despite the ideal situation in that no machine is ever concurrently talking to the server.

In the event a duplicate occurs, all future requests would have created an additional duplicate, as Django objects obtained via .get() expect EXACTLY one response.

It is unclear how this race condition could have occured in practice
2024-01-31 22:59:18 -05:00
andrew 9a29658110 Add back SPSA information to workload display (tunes) 2024-01-31 20:52:18 -05:00
andrew 19bb5ce6c8 Improve worker assignment algorithm
If a handful of tests are present, its possible for one test to get multiple times more resources than is fair, without making any other tests be considered unbalacned. IE, the one test steals a small amount of resources from all other tests.

Fix this by bounding the definition of balance as +- 25%, instead of having a one-sided bound.

Also, when computing ratios, compute them as if the machine we are assigning has been assigned to each test. Ie, the ratios IF the worker is assigned to the specific test. Likewise, the fair ratio should account for this machine's threads.
2024-01-31 20:46:15 -05:00
andrew 84db0e561e Fix for min([]) on empty frameworks 2024-01-31 00:50:10 -05:00
andrew 6bbbeeeaad Fix explicit filtering with id= in some Django versions 2024-01-31 00:09:21 -05:00
andrew 6d13a513f2 Fix misnamed engine_dist -> engine_freq 2024-01-31 00:05:43 -05:00
andrew 35b9e409bd Add UHO filtered by Berserk, and by Torch 2024-01-31 00:02:19 -05:00
Andrew Grant 884265289e Allow for --focus ENGINE1 [ENGINE2 ....] to prioritize Workload Assignments (#187) 2024-01-30 23:44:45 -05:00
andrew a6194682ad Reset nps values on workload assignment 2024-01-23 20:27:38 -05:00
andrew 9d464e5b7d Add balance_engine_throughputs as a configuration option
Load balances tests with relation to each engine. If set to true, the effective throughput during work allocation will be scaled linearly with the number of tests which share the same dev engine.

Namely, it can be used in a large framework to ensure equal allocation of resources across various engines. This comit will be followed by one which allows the user to specify an engine to the client, via --engine MyEngine, to force their worker to selfishly select their engine.

We will account for cases where the selfish-engine is not a top-prio workload, and not play the low prio one.
We will account for the other workers, by ignoring this worker's contribution to overall worker distrubtion. This ensures that it is a strict net gain to attach your own machines to a framework
2024-01-11 21:17:59 -05:00
andrew 7b826b22ef Cleaner implementation of flagging active machines 2024-01-11 19:14:01 -05:00
andrew f7b184c435 Add a green highlight to active results on workloads 2024-01-10 20:45:07 -05:00
andrew f1626daad9 Merge tune.html and test.html into workload.html
Always show a network, even if it is blank due to a non NNUE engine
Redirect test/tune searches where the names are swapped
2024-01-10 20:13:44 -05:00
Andrew GrantandMinusKelvin 003148abbe Finalize Priority Group Dividers (#184)
Co-authored-by: MinusKelvin <mark.carlson@minuskelvin.net>
2024-01-09 14:11:41 -05:00
andrew 77d34a71f7 Add -f to pkill arguments 2024-01-09 13:23:56 -05:00
andrew 0cde283d89 More robust handling of PGN processing
Fixes a bug where .pgn openings don't have the book moves shown
Fixes a bug where engines that don't report sufficent data ( either eval, or eval depth seldepth time nodes ) would have the moves not copied to the compressed pgn

Standard now has {book} for book moves
Standard now has {unknown} for moves with missing information

Added GameEndTime to VERBOSE PGNs to retroactively compute things
Added scaleFactor to all PGNs to allow adjusting the TimeControl correctly
Removed PlyCount which was not needed, and simply added more bytes
2023-12-20 16:51:03 -05:00
andrew aae6b42790 Retain base_branch on engine swapping for cross-play 2023-12-18 20:01:11 -05:00
andrew 820a1546d3 Update NPS values
Demolito 1381619 nps 9122778 nodes in 6.603 seconds
4ku 1198461 nps 4222136 nodes in 3.523 seconds
Berserk 954517 nps 2772976 nodes in 2.905 seconds
Bit-Genie 1992512 nps 1877660 nodes in 0.942 seconds
BlackMarlin 1066205 nps 4421651 nodes in 4.147 seconds
Dragon 584187 nps 4542693 nodes in 7.776 seconds
Drofa 1090724 nps 11419888 nodes in 10.470 seconds
Ethereal 1147869 nps 3017694 nodes in 2.629 seconds
FabChess 1056260 nps 7310049 nodes in 6.921 seconds
Halogen 1893187 nps 13395978 nodes in 7.076 seconds
Igel 483458 nps 19300902 nodes in 39.923 seconds
Koivisto 1326943 nps 3661572 nodes in 2.759 seconds
Laser 933107 nps 2989157 nodes in 3.203 seconds
RubiChess 848430 nps 3161490 nodes in 3.726 seconds
Seer 763810 nps 3911108 nodes in 5.121 seconds
Stash 1703360 nps 5423868 nodes in 3.184 seconds
Stockfish 1008140 nps 2593605 nodes in 2.573 seconds
Torch 375959 nps 2528480 nodes in 6.725 seconds
Weiss 1685672 nps 21825554 nodes in 12.948 seconds
Winter 644003 nps 1053900 nodes in 1.636 seconds
Zahak 949370 nps 4151348 nodes in 4.373 seconds
2023-12-18 17:59:52 -05:00
andrew c9b889eb9c Add PGN Archive download buttons, and API endpoint 2023-12-11 13:29:43 -05:00
andrew 468281d52e Auto consolidate .pgn.bz2 files into a .tar archive 2023-12-11 12:42:03 -05:00
andrew a280e63dba Finalized bench_all.py 2023-12-08 12:05:42 -05:00
andrew f4f619fbd2 Add /api/buildinfo/ for bulk collection of configs and networks 2023-12-08 10:50:02 -05:00
andrew 3af603dbe3 Finish bench_all.py, minus cmdline arguments 2023-12-07 16:26:10 -05:00
andrew 2a461ecfaa Initial steps for build_all.py 2023-12-06 13:32:46 -05:00
andrew 8e14f1c0b2 Only apply default settings at the initial setup of an engine
Means that swapping between test modes or tune modes will not reapply the default settings
2023-12-04 11:13:30 -05:00
andrew 71f5b0bc97 Add Dragon to master config grouping 2023-12-04 11:05:39 -05:00
andrew 29e042504d Fix openbench.exit for signaling workers 2023-12-04 09:32:38 -05:00
andrew 7d4be81da2 Update sidebar links to new config 2023-12-04 09:26:19 -05:00
andrew 89478d807f Fix swapping test modes on workload creation
Ensure default settings appear for tunes and tests
2023-12-04 09:06:38 -05:00
andrew 0807d2c2d5 Kick Server/Client to v23 2023-12-04 07:57:33 -05:00
andrew 5f97fd9e6a Upload the PGNs and save them. Last step for that 2023-12-04 07:57:33 -05:00
andrew c4e27d393f Include engine name in PGN 2023-12-04 07:57:33 -05:00
andrew fda9012f63 Legal PGNS with 7-tag roster 2023-12-04 07:57:33 -05:00
andrew 119569a14d Fix debug info left from SPSA template tags 2023-12-04 07:57:33 -05:00
andrew 50855a5de7 Update Torch presets for tuning 2023-12-04 07:57:33 -05:00
andrew ff8c01bf2d Compress after playing all games 2023-12-04 07:57:33 -05:00
andrew ca630c80f2 Initial step for PGN uploading
1. Create the interface code to allow for it.
2. Create pgn_util to strip and compress PGNs
2023-12-04 07:57:33 -05:00
andrew 1ac76bdcc1 Optimize default SPSA to avoid CPU downtime
Left Column indicates the number of threads of a match
N= represents the number of games ( not game pairs )
The values in the table are the % of CPU time wasted.

This is based on LTC data from Torch.
The Single Modeling area can be used to understand SPRT tests as well.

We find that sufficiently large N is needed to avoid massive waste.
Multiple distribution is significanly more prone to waste CPU time

Results for Single Modeling:
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
|    |      N=1 |      N=2 |       N=3 |      N=4 |       N=8 |      N=16 |      N=32 |
+====+==========+==========+===========+==========+===========+===========+===========+
|  1 |        0 |        0 |         0 |        0 |         0 |         0 |         0 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 16 | 0.187964 | 0.154541 | 0.0953438 | 0.111055 | 0.0682209 | 0.0419675 | 0.0234031 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 30 | 0.233956 | 0.250168 |  0.247093 | 0.160325 |   0.17584 | 0.0490092 | 0.0233125 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+
| 60 |   0.3319 | 0.283755 |  0.310635 | 0.315316 | 0.0914697 | 0.0474954 | 0.0229517 |
+----+----------+----------+-----------+----------+-----------+-----------+-----------+

Results for Multiple Modeling:
+----+----------+----------+----------+----------+----------+----------+-----------+
|    |      N=1 |      N=2 |      N=3 |      N=4 |      N=8 |     N=16 |      N=32 |
+====+==========+==========+==========+==========+==========+==========+===========+
|  1 |        0 |        0 |        0 |        0 |        0 |        0 |         0 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 16 | 0.187964 | 0.108087 | 0.112321 |  0.18708 | 0.178225 | 0.109092 | 0.0847329 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 30 | 0.233956 | 0.228522 |  0.26862 | 0.263978 | 0.167372 | 0.182215 | 0.0831574 |
+----+----------+----------+----------+----------+----------+----------+-----------+
| 60 |   0.3319 | 0.352034 | 0.270229 | 0.291731 | 0.219136 | 0.178662 | 0.0936702 |
+----+----------+----------+----------+----------+----------+----------+-----------+
2023-11-22 16:25:08 -05:00
andrew 0fd7742ed3 Remove dated readme 2023-11-22 16:14:34 -05:00
andrew c741e5c125 Add all of the Swebench engines 2023-11-21 20:58:15 -05:00
andrew f68be40f1e Fix Weiss Tune LTCs 2023-11-21 20:49:01 -05:00
andrew acef6cba4f Update configs; Ensure correctness of fields 2023-11-21 20:46:44 -05:00
andrew 5b56253dcf Force reimport of libs in some python versions 2023-11-18 09:47:36 -05:00