Commit Graph
121 Commits
Author SHA1 Message Date
andrew 37cc4a5b96 Load modular configs for Books + Engines
Produce some verification of correctness for those configs
Begin future client auto-updating things, with new config fields

client_repo_url, and client_repo_ref specifically.
2023-11-16 20:25:11 -05:00
andrew 98090b7ad3 Allow networks to be seen as previous defaults
Networks can now be default, previous-default, or neither.
Networks can can have these fields manually edited.
Networks with default or previous-default status may not be deleted.
Networks may have their names changed, iff no conflicts arise.
2023-11-08 18:19:39 -05: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 ffb038b063 Fix tests stopping early due to pair logic
Needed a 2x here
2023-09-20 10:55:38 -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 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 4ed69d5dbc Pentanomial SPRT as the default 2023-08-21 18:52:02 -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 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 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 832f23c4eb Resolves https://github.com/AndyGrant/OpenBench/issues/149 2023-07-25 14:11:40 -04:00
andrew acbc6922bd Tentative support for 7man Syzygy 2023-07-24 16:57:23 -04:00
andrew aabdd759fa Fix circular imports found when backing up database 2023-07-19 04:54:38 -04:00
andrew ef3104cd68 Implement Searching again 2023-07-19 04:45:44 -04:00
andrew 353e9e6f3c Update upload_network.py script 2023-07-14 21:42:10 -04:00
andrew 12c81c05dd Three different sets of changes in one commit
1. Fix the Networks API to handle duplicate Networks between engines
2. Modify end points to account for this ( breaks scripts and client )
3. Update Client to handle these changes
2023-07-14 21:12:29 -04:00
andrew a6c3922d45 Allow multiple artifacts in a single Job 2023-07-03 03:48:13 -04:00
andrew abd6a42455 Revert change which uncollapsed Result objects 2023-06-26 07:13:47 -04:00
andrew df2b0fb0a3 Handle re-triggering workflows
In the event of expired artifacts, or a Github bug where the REST API returns a list of completed jobs, yet no artifacts, even though they are present through the website
2023-06-26 05:12:45 -04:00
andrew abb924a02b Support for N-Man Syzygy as an option 2023-06-26 03:00:41 -04:00
andrew 5d1d703dfa Include dev+base NPS, send private field cleanly, more Client refactoring 2023-06-22 19:25:58 -04:00
andrew a9c532f873 Allow using git tags for branch names
Now supports branch names, commit shas, and git tags. Shas must still be the full length 40-character value. Tags are a fall back on branch names. If a tag has the same name as a branch, the branch will be retrieved and not the tag
2023-06-11 06:49:38 -04:00
andrew 41a771c69b More cleanups 2023-06-09 11:57:37 -04:00
andrew bf15be1e1f Final fix for select_workload() 2023-06-09 03:10:09 -04:00
andrew 345b9bfd6a Final fix for select_workload() 2023-06-09 03:09:23 -04:00
andrew 6c749c9316 More fixes to select_workload()
More bugs from converting Machine's workload from a key to an integer
2023-06-09 03:06:20 -04:00
andrew c581be947d Fix error in select_workload()
Cross-engine play broke this, by saving the test into the table, instead of test.id
2023-06-09 02:59:42 -04:00
andrew 9faa5c51aa Bugfix cross-engine, and time control parsing 2023-06-06 05:32:22 -04:00
andrew 01d99a86df Implement support for cross-engine play
Also support for time odds
2023-06-01 09:40:33 -04:00
andrew 27e6017bfb Finalize? 2023-05-17 02:05:53 -04:00
andrew dd0f2ca29f Working progress 2023-05-15 18:43:35 -04:00
andrew c32dbef9dd Add report_rate and workload_size options to Tests 2023-04-06 01:12:02 -04:00
andrew 7d820d85d9 Let the server loop until artifacts exist 2023-04-03 19:21:14 -04:00
andrew 0a6d365174 Spawn multiple cutechess copies if requested 2023-04-02 18:05:38 -04:00
andrew c02e0782b6 Add Support for Private source engines
Private source engines must be located on Github.
All test branches must come from the same repo as stated in the config.
Repo must have an openbench.yml file that produces artifacts for the
workers.
Basic name scheme: windows-avx2-pext, linux-avx512-pext, ...

Desired artifacts can be set in the engine config under ['build']['artifacts']
Server must have a private key, housed in credentials.enginename.
Client must have a private key, housed in credentials.enginename.
enginename is lowercase and with spaces removed.

Private engines cannot build their NNUE files directly into them.
They must therefore support being run from the CMD line, with additional options.
Namely: ./engine "setoption name EvalFile value path/to/file" "bench" "quit".
2023-03-07 23:13:29 -05:00
andrew aa3e43b125 Pass adjudication settings from the server. Allow defaults 2023-02-20 21:20:09 -05:00
andrew 1c8e14bf50 Implement support for fixed nodes, fixed depth, fixed time 2023-01-03 15:35:00 -05:00
andrew 0643dda80f Revert "Reworked CSS (#103)"
This reverts commit e8fcc6a787.
2022-12-02 15:37:41 -05:00
Luecx e8fcc6a787 Reworked CSS (#103)
Recklessly merging, YOLO.
2022-11-22 03:13:40 -05:00
Andrew Grant 850933e4fa Parse commits for benches, using only the final entry found 2022-07-27 20:14:26 -04:00
Andrew Grant 68334c9ccb Actually fixed this time 2022-05-20 12:42:35 -04:00
Andrew Grant c09c4be2e5 Fix the case where the framework is empty, which was reverted 2022-05-20 12:38:03 -04:00
Andrew Grant 606c5aac44 Fix broken worker distribution code 2022-05-20 12:33:59 -04:00
Andrew Grant 5fde447ff0 Fixed TP values; Fix max() on empty list 2022-04-18 08:40:31 -04:00
Andrew Grant 4a2f961ffc Rewrite the worker test selection scheme
Originally, we would have a TP value for each test. That value would determine how many games are played per workload. The server would then assign tests with equal probability of the same prio.

Now, all workload sizes are static (based on thread counts of the test and the machine), and TP is used to weight the resources allocated to a test. The server fill ensure 'fair' distribution of resources within a window of error, and place a priority on assigning machines with the same task they already had
2022-04-18 05:39:16 -04:00
Andrew Grant 5dd468ebb5 Fix time control parsing for repeating TCs.
Breaks backwards clients
2021-10-06 15:40:13 -04:00
Andrew Grant 0bec4854f4 Save a network name when creating a new test, even if the net is deleted 2021-08-27 20:01:17 -04:00