Commit Graph
571 Commits
Author SHA1 Message Date
andrew 957c042683 Adjust interim file names/paths to avoid conflicts
Use the Engine-Sha or Engine-Sha-Sha format for intermediate steps, to avoid conflicts with existing files and directories
2023-10-13 14:16:21 -04:00
andrew db12828794 Allow core-odds for hyperthreaded machines
This is a temp. removal to test something. It will be replaced by more robust logic, which allows hyperthreaded machines to run core odds games, by first halving the number of cores, Ie forcing the worker to act as if it were started without dipping into HT
2023-10-12 19:03:47 -04:00
andrew f35961e054 Fix test assignment for repeated tests
If a test with higher prio comes in, the worker might never swap off their current test
2023-09-28 17:47:50 -04:00
andrew 8e0aa6a26b Adjust default tune creation
We've shown that high SMP is fine; remove the Worker Limit default
We've shown that BULK counting might be a good idea; Swap from BATCH
Lower prio from 1 to 0 to account for the Worker Limit removal
2023-09-25 22:04:54 -04:00
Ciekce 3ef86eeb82 Strip dots and underscores from ISA extension names (#174) 2023-09-25 21:52:28 -04:00
andrew b6e2f0dcae Allow copying SPSA inputs/outputs more clearly 2023-09-25 21:43:40 -04:00
andrew 358ced1c0e Solve some of the html wrapping 2023-09-25 20:47:30 -04:00
andrew f6886b79d1 Final fix for atomic updates 2023-09-25 17:57:13 -04:00
andrew 3b1821035d Ensure atomic updates for workloads 2023-09-25 17:53:22 -04:00
andrew 36fc79487b Better client output; Kick to v17 2023-09-25 17:50:21 -04:00
andrew 9798654c36 Add workload_size ( pairs-per-point ) to display 2023-09-25 17:41:48 -04:00
andrew 9c95b60c25 Fix a display bug for tests that look like sha commits 2023-09-25 17:40:26 -04:00
andrew 7334ae4091 Ensure the tune/test differentiation is correct 2023-09-25 17:37:28 -04:00
andrew 9b294538aa Network download link from test/tunne page 2023-09-25 17:20:22 -04:00
andrew 3526e442ee Book download link from test/tune page 2023-09-25 17:10:59 -04:00
andrew 3cff04bab1 Add some API endpoints
Add:

/api/config/ to display all engines, and all books
/api/config/<engine>/ to display the config for a specific engine
/api/networks/<engine>/ list all of the networks, and the default, for an engine
/api/networks/<engine>/<sha|name>/ download a network, given the sha or the name
2023-09-25 17:00:07 -04:00
Andrew Grant 7c3f4a7203 Some improvements to SPSA's CSS/HTML/JS (#173)
Move the copy_text function to /static
Record the original order of inputs for SPSA
Display SPSA data in the original order ( if it exists )
Format ints as ints instead of floats for Start/Min/Max
Swap the Curr/Start column to clearly show the initial triplet
Right align all of the SPSA stuff
Change the copy button on Tunes to be the original SPSA Input
2023-09-21 11:12:20 -04:00
andrew 81c5c9bfbc Kick Client/Server to v16 2023-09-20 12:48:07 -04:00
Andrew Grant 804b0a7126 Select Openings Better
Refer to https://github.com/AndyGrant/OpenBench/pull/168
2023-09-20 12:46:02 -04:00
andrew ffb038b063 Fix tests stopping early due to pair logic
Needed a 2x here
2023-09-20 10:55:38 -04:00
andrew 37dfb585ad Kick Client/Server to v15 2023-09-20 10:49:24 -04:00
Andrew Grant a17b5f853d Add spsa_reporting_type and spsa_distribution_type (#170)
Reporting Method (BATCHED vs BULK) for SPSA Tests
Send everything at once, vs every time a pair finishes

Distribution Method (SINGLE vs MULTIPLE) for SPSA Tests
Give 1 parameter set; Give as many sets as we can
2023-09-20 10:48:15 -04:00
andrew d1b354d0fd Only diff the commits for SPSA tests 2023-09-19 16:12:36 -04:00
andrew ef96dd4dfc Allow min to equal max for SPSA tuning
This is useful for the case where an array has known 0 values in it ; but you still want to tune the whole thing coherently
2023-09-19 15:55:00 -04:00
andrew ef9d1ba68d Fix wrong use of test_mode types
FIXED should have been GAMES
2023-09-19 14:58:50 -04:00
Andrew Grant ee267381fc Implement SPSA for OpenBench (#169)
* Support Worker and Thread Limits
* Drop report_rate from the Client
* Creation page
* WIP for SPSA; Lots of code shuffling to clean it up
* Able to create a Tune in the interface
* Start to work on a display page for Tunes
* Move all workload utilities to their own dir
* Ignore config files going forward
* Able to produce an SPSA test from the Server
* Round integers with probabilities that make sense
* Client side working
* Report as results come in, don't wait
* Fix workload size comment
* Cleanup and fix Tune modifications
* Adustment to random value in tuning
* Delete engine configs
2023-09-19 14:44:52 -04:00
andrew bc26be7a4c Bugfix cross-engine play test mode selection
If you attempt to set a test mode for the dev engine, which the base engine does not have, we produce errors. The only reason we need to check the base engine's understanding of the test mode is to set Base Options. We can fall back to the STC settings, since we already copy the Threads= and Hash= portion from the Dev options
2023-09-12 06:59:40 -04:00
andrew 05be69c9dd Resolves https://github.com/AndyGrant/OpenBench/issues/167 2023-09-12 06:38:34 -04:00
Alexandra 5d1ee29358 Add restore button to test view page (#164) 2023-09-11 10:36:49 -04:00
andrew c0bedf6fbc Add UHO_4060_v2.epd
See:
https://github.com/official-stockfish/books/pull/33
https://github.com/official-stockfish/books/pull/34
2023-09-05 16:53:25 -04:00
andrew 111cbea187 Default Timemargin of 250ms
Grants a MoveOverhead baseline to reduce timelosses on noisy machines, in the event that the engine does not have its own internal MoveOverhead. This will mask timelosses on OpenBench, so be careful
2023-09-05 13:14:03 -04:00
andrew ddaeed8374 Critical bug fix when setting test.errors
Somehow in 10 years I've not yet encounted that in python the expression 3 or 3 evaluates to 3, and not True. This allowed for an attempt to save non-boolean values into the test.error field. Which produced seemingly infinite time losses on some tests I was running with some of the first versions of Torch to ever be on OpenBench.

Also, don't report time loss PGNS back. No one cares about them, and flagging the tests is annoying.
2023-08-31 04:16:37 -04:00
andrew 4116e795d0 Explicitly pkill engine processes
OpenBench spawns cutechess-ob(.exe), which can be killed.
Engines are named Engine-GITSHA(-NETSHA), and can be killed.

In theory, if you ran OpenBench at the same time as some other application, you could kill the wrong thing. But you would be ill advised to run an OpenBench Client while doing regular work on a machine. Likewise there is little to no reason to name your cutechess and engines in the same way as OpenBench.

Resolves https://github.com/AndyGrant/OpenBench/issues/162
2023-08-30 23:42:13 -04:00
andrew a26e0f277a Use base NPS when doing cross-engine play
Creates a support for regression testing against a stable base, without dealing with variable NPS of the dev engine
2023-08-30 01:22:24 -04:00
andrew 10a5d8d21a Clear up some of the dead space in 5-nomial 2023-08-25 13:44:40 -04:00
andrew 4ed69d5dbc Pentanomial SPRT as the default 2023-08-21 18:52:02 -04:00
andrew 61625aa0d5 Fix a syntax warning in newer python versions 2023-08-21 14:30:30 -04:00
andrew 8e5afa9a2e Track pentanomial dist. in tests.
By default, all tests will do this. If you are migrating an existing database, it would be advised to run the following code in the django shell...

>>> from OpenBench.models import Test
>>> Test.objects.all().update(use_tri=True, use_penta=False)
2023-08-21 14:28:38 -04:00
andrew 7bf3c54249 Date formatting on searches 2023-08-18 13:17:19 -04:00
andrew f76de2bc56 Improve Searching
Fix ordering of searches to be most-recent first
Fix for fixed-game tests not matching due to wrong arguments
Display datestamps for searched tests
Modify base template block to drop the <tr> tags
2023-08-18 13:09:26 -04:00
Andrew Grant a1f8efb55a Report all errors after workload is finished (#155)
Upon completion of the workload, parse all newly created PGN files for errors. We identify these by the Termination header. Any errors found are reported to the server.

Modify the PGN naming scheme to be more versatile; Name them as <test-id>.<result-id>.<cutechess-seed>.pgn. This makes it more easy to identify PGNs and their association with tests, if someone were to look at the raw files.

Commit some code, partially based on Kimmy's efforts, which will help process PGNs without the use of python-chess' PGN libs, which are far too slow.

Cleanup some interfaces which had far too much information on them

Delete some very ancient auto-approving code that only applied to the cross-approval case. Frankly no one is running OpenBench instances with cross-approval.

Display both the base and dev NPS on the machines page
2023-08-18 12:45:42 -04:00
andrew 3e939c3e67 Make sure currentllr is updated 2023-08-16 09:21:23 -04:00
andrew 2d656a2fdd Fix variable names for SPRT updates 2023-08-16 09:18:09 -04:00
Andrew Grant d32761c53c Overhaul Client Reporting mechanism (#153)
Collects results as game-pairs, instead of as individual results. This removes some noise and bias that may have existed prior.

The master thread now handles all reporting to the OpenBench server. Help threads, ( one for each --nsockets or -N ), will place their results in a multiprocessing.Queue().

We will report report_rate-pairs at a time. However we will only report up to once every 30 seconds. This means we might batch report many many games at a time. This acts as a natural remedy to if someone were to have created an insanely short time control, or low nodes test. This will cause fixed-game tests to go over the cap. IE, a 40,000 game test is very likely to receive a small number of games above 40,000. Fixing these seems non-trivial, and also not important.

The Client also sends Pentanomial information to the server now. This information is not acted upon.

This involved a complete rewrite of how data (trinomial) information is extracted from Cutechess. It is predicated upon the assertion that cutechess pairs are sequential. IE, pair one will be game 1/2. Pair two will be games 3/4. Etc. This is the fundemental assertion that is in Fishtest, although very confusing to extract from observation.

Resolves an issue where the worker threads, spawned to run benchmarks, were not being killed, as .start() was not followed by a .join().

Makes more cleanly aborting threads, by explicitly murdering them with an abort_flag from threading.Event(). This speeds up killing workers that have multi-sockets. It also helps further protect us against Cutechess being left open.

Performs atomic transactions with the database for tests. This is critical for dealing with future SPSA efforts. Updates to Profile, individual Result, and Machine, are left as is. This is because Model.objects.filter().update() is atomic, and the contents of Results are hit by only 1-thread at a time, and Profile/Machine's updates do not matter.

Resolves #144 and then some.
2023-08-16 08:02:56 -04:00
andrew 3b4103baf7 Improve Networks page
Better sorting, more clear fa icons
2023-08-05 21:53:20 -04:00
andrew 4c2e669fa2 Resolve cross-engine artifact waiting bug
If waiting for artifacts after test creation, the public engine would appear to still be waiting for artifacts infinitely. This resolves that by identifying public engine sources and considering that as being ready
2023-08-05 21:02:28 -04:00
andrew baf2fac2bf Update hyperthreading rules for task distribution
There is now only one rule: Thread imbalances cannot be tested using workers who have more threads than physical cores
2023-07-30 20:41:05 -04:00
andrew 51447a5f42 Make patches fail faster 2023-07-26 15:51:11 -04:00
andrew 832f23c4eb Resolves https://github.com/AndyGrant/OpenBench/issues/149 2023-07-25 14:11:40 -04:00
andrew b09de3c815 Add pip reqs.txt for Server + Client 2023-07-24 17:03:09 -04:00