diff --git a/OpenBench/static/style.css b/OpenBench/static/style.css index c4c9f1b..ebc4d47 100644 --- a/OpenBench/static/style.css +++ b/OpenBench/static/style.css @@ -1,27 +1,295 @@ -html, body, header { - height: 100%; - line-height: 1.5rem; - font-weight: 400; +body { + font-family: "Courier Prime"; + font-size: 18px; + background: #303030; } +a:link, a:visited, a:hover, a:active { + text-decoration: none; + color: #FFFFFF; +} + +#sidebar { + float: left; + margin: 16px; + margin-top: 60px; +} + +#sidebar ul { + list-style-type: none; + padding: 0px 18px; +} + +#sidebar li a { + color: #A2A2A2; + font-size: 15px; +} + +#sidebar .header { + font-size: 15px; + color: #00AF00; +} + +#content { + float: left; + margin-top: 0; + color: #EAEAEA; +} + +#content label { + width: 128px; + padding-right: 10px; + text-align: right; + display: inline-block; + color: #A2A2A2; + font-size: 14px; +} + +#content input, #content select { + background-color: #BBBBBB; + color: #000000; + padding: 10px; + margin: 1px 0px; + width: 320px; + box-sizing: border-box; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; +} + +#content button { + padding: 8px 0px; + margin: 2px 0px; + display: inline-block; + vertical-align: middle; + width: 290px; + background-color: #777777; + color: black; + border: none; + border-radius: 16px; + cursor: pointer; + font-weight: bold; +} + +#content button:hover { + background-color: #00AF00; +} + +#content input[type=submit] { + background-color: #00AF00; + color: #000000; + border: none; + border-radius: 16px; + cursor: pointer; + width: 100%; + font-weight: bold; +} + +#content input:read-only { + font-weight: bold; +} + +#content input:-moz-read-only { + font-weight: bold; +} + +#content #configuration { + float: left; + margin-top: 20px; +} + +#content #actions { + margin-left: 32px; + float: right; +} + +#content #actions h4 { + color: #A2A2A2; + font-size: 15px; + font-weight: bold; +} + +#content #actions .anchorbutton { + color: #000000; + padding: 8px 8px; + margin: 0px 8px; + border-radius: 16px; + font-weight: bold; + text-align: center; + display: inline-block; + width: 25%; +} + +#content #actions .anchorbutton a:hover { + background-color: #00AF00; +} + +#content #actions #approvebutton { + background-color: #9DF779; +} + +#content #actions #stopbutton { + background-color: #EEF788; +} + +#content #actions #restartbutton { + background-color: #EEF788; +} + +#content #actions #deletebutton { + background-color: #FA8E8E; +} + +#content #actions .deadbutton { + background-color: #808080; + pointer-events: none; +} + +#content #actions input { + width: 260px; +} + +#content #actions input[type=submit] { + width: 100%; +} + +#content .left-align { + text-align: left; +} + +#content tr:hover { + background-color: #666666; +} + +#content th { + color: #00AF00; + font-size: 16px; + font-weight: 100; + padding: 7px 12px 5px 12px; + background-color: #000000; +} + +#content td { + padding: 7px 12px 5px 12px; +} + +#content .numeric { + text-align: right; +} + +#content tr { + background-color: #202020; +} + +#content .table-spacer th { + background: #303030; + height: 16px; +} #content .statblock { + line-height: 70%; color: black; background-color: #CCCCCC; - font-family: Courier, serif; + border-radius: 4px; + font-family: "Courier New"; } #content .green { - background-color: #6bd26b - /*background: linear-gradient(to bottom, #75bb76 0%, #44EB44 100%);*/ + background-color: #9DF779 } #content .yellow { background-color: #EEF788 - } #content .red { - /*background: linear-gradient(to bottom, #FA8E8E 0%, #da7474 100%);*/ background-color: #FA8E8E } + +#content #results { + display: inline-block; + width: inherit; +} + +#content table { + line-height: 96%; +} + +#content .textcenter { + text-align: center; +} + +#content strong { + font-size: 14px; + font-weight: bold; +} + +#content a:not(.TitleLink) { + font-weight: 100; + color: #8BBAD6; +} + +#content a.redlink { + color: #FF4D4D; +} + +#content a.unstarred { + color: #808080; +} + +#content h1, h2, h3 { + color: #a7a7a7; + text-align: center; +} + +#content #pagebrowse { + text-align: center; + margin: 16px 0px 16px 0px; +} + +#content .page { + text-align: center; + display: inline-block; + padding: 8px 0px; + width: 5%; + background-color: #1A1A1A; + border-radius: 8px; +} + +#content .page:hover { + background-color: #00AF00; +} + +#error { + background-color: #EE7676; + padding: 8px; + text-align: center; +} + +#content form h3 { + margin-left: 110px; + margin-bottom: 2px; + font-size: 16px; + font-weight: normal; + color: #00AF00; +} + +#content h4 a { + font-size: 18px; +} + +#content form .settings-column { + float: left; + padding-bottom: 16px; +} + +#content #test-mode-buttons button { + width: 49.8%; +} + +#content #test-mode-buttons .left-floated { + float: left; +} + +#content #test-mode-buttons .right-floated { + float: right; +} diff --git a/OpenBench/templatetags/mytags.py b/OpenBench/templatetags/mytags.py index 9dae2ee..cf059c5 100644 --- a/OpenBench/templatetags/mytags.py +++ b/OpenBench/templatetags/mytags.py @@ -33,7 +33,6 @@ def oneDigitPrecision(value): except: return value - def twoDigitPrecision(value): try: value = round(value, 2) @@ -45,71 +44,52 @@ def twoDigitPrecision(value): except: return value - def gitDiffLink(test): + if type(test) != OpenBench.models.Test: - dev = test['dev']['source'] - base = test['base']['source'] - devsha = test['dev']['sha'] + dev = test['dev']['source'] + base = test['base']['source'] + devsha = test['dev']['sha'] basesha = test['base']['sha'] else: - dev = test.dev.source - base = test.base.source - devsha = test.dev.sha + dev = test.dev.source + base = test.base.source + devsha = test.dev.sha basesha = test.base.sha repo = OpenBench.utils.pathjoin(*dev.split('/')[:-2]) return OpenBench.utils.pathjoin(repo, 'compare', - '{0}...{1}'.format(basesha[:8], devsha[:8])) - + '{0}...{1}'.format(basesha[:8], devsha[:8])) def shortStatBlock(test): + if test.test_mode == "SPRT": + currentllr = twoDigitPrecision(test.currentllr) - lowerllr = twoDigitPrecision(test.lowerllr) - upperllr = twoDigitPrecision(test.upperllr) - elolower = twoDigitPrecision(test.elolower) - eloupper = twoDigitPrecision(test.eloupper) + lowerllr = twoDigitPrecision(test.lowerllr) + upperllr = twoDigitPrecision(test.upperllr) + elolower = twoDigitPrecision(test.elolower) + eloupper = twoDigitPrecision(test.eloupper) llrbounds = '({}, {}) '.format(lowerllr, upperllr) return 'LLR: {0} {1}[{2}, {3}]\n'.format(currentllr, llrbounds, elolower, eloupper) \ - + 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) + + 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) if test.test_mode == "GAMES": + lower, elo, upper = OpenBench.stats.ELO(test.wins, test.losses, test.draws) error = max(upper - elo, elo - lower) - elo = twoDigitPrecision(elo) + elo = twoDigitPrecision(elo) error = twoDigitPrecision(error) return 'Elo: {0} +- {1} (95%) [N={2}]\n'.format(elo, error, test.max_games) \ - + 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) - - -def shortBoldBlock(test): - if test.test_mode == "SPRT": - currentllr = twoDigitPrecision(test.currentllr) - lowerllr = twoDigitPrecision(test.lowerllr) - upperllr = twoDigitPrecision(test.upperllr) - elolower = twoDigitPrecision(test.elolower) - eloupper = twoDigitPrecision(test.eloupper) - - llrbounds = '({}, {}) '.format(lowerllr, upperllr) - - return 'LLR: {0}'.format(currentllr) - if test.test_mode == "GAMES": - lower, elo, upper = OpenBench.stats.ELO(test.wins, test.losses, test.draws) - error = max(upper - elo, elo - lower) - - elo = twoDigitPrecision(elo) - error = twoDigitPrecision(error) - - return 'Elo: {0} +- {1}'.format(elo, error, test.max_games) - + + 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) def longStatBlock(test): + tokens = test.devoptions.split(' ') threads = tokens[0].split('=')[1] hash = tokens[1].split('=')[1] @@ -117,85 +97,73 @@ def longStatBlock(test): lower, elo, upper = OpenBench.stats.ELO(test.wins, test.losses, test.draws) error = max(upper - elo, elo - lower) - elo = twoDigitPrecision(elo) + elo = twoDigitPrecision(elo) error = twoDigitPrecision(error) if test.test_mode == 'SPRT': - lowerllr = twoDigitPrecision(test.lowerllr) + + lowerllr = twoDigitPrecision(test.lowerllr) currentllr = twoDigitPrecision(test.currentllr) - upperllr = twoDigitPrecision(test.upperllr) - elolower = twoDigitPrecision(test.elolower) - eloupper = twoDigitPrecision(test.eloupper) + upperllr = twoDigitPrecision(test.upperllr) + elolower = twoDigitPrecision(test.elolower) + eloupper = twoDigitPrecision(test.eloupper) return 'ELO | {0} +- {1} (95%)\n'.format(elo, error) \ - + 'SPRT | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \ - + 'LLR | {0} ({1}, {2}) [{3}, {4}]\n'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \ - + 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) + + 'SPRT | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \ + + 'LLR | {0} ({1}, {2}) [{3}, {4}]\n'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \ + + 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) if test.test_mode == 'GAMES': - return 'ELO | {0} +- {1} (95%)\n'.format(elo, error) \ - + 'CONF | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \ - + 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) + return 'ELO | {0} +- {1} (95%)\n'.format(elo, error) \ + + 'CONF | {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \ + + 'GAMES | N: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws) def testResultColour(test): + if test.passed: return 'green' if test.failed: if test.wins >= test.losses: return 'yellow' return 'red' return '' - def sumAttributes(iterable, attribute): - try: - return sum([getattr(f, attribute) for f in iterable]) - except: - return 0 - + try: return sum([getattr(f, attribute) for f in iterable]) + except: return 0 def insertCommas(value): return '{:,}'.format(int(value)) - def prettyName(name): if re.search('[0-9a-fA-F]{40}', name): return name[:16].upper() return name - def prettyDevName(test): if test.dev.name == test.base.name and test.devnetname != '': - try: - return OpenBench.models.Network.objects.get(sha256=test.devnetwork).name - except: - return test.devnetname # File has since been deleted ? + try: return OpenBench.models.Network.objects.get(sha256=test.devnetwork).name + except: return test.devnetname # File has since been deleted ? return prettyName(test.dev.name) - def testIsFRC(test): return "FRC" in test.bookname.upper() or "960" in test.bookname.upper() - def resolveNetworkURL(sha256): if OpenBench.models.Network.objects.filter(sha256=sha256): return '/networks/download/{0}'.format(sha256) - return sha256 # Legacy Networks - + return sha256 # Legacy Networks def testIdToPrettyName(test_id): return prettyName(OpenBench.models.Test.objects.get(id=test_id).dev.name) - def testIdToTimeControl(test_id): return OpenBench.models.Test.objects.get(id=test_id).timecontrol - register = django.template.Library() register.filter('oneDigitPrecision', oneDigitPrecision) register.filter('twoDigitPrecision', twoDigitPrecision) register.filter('gitDiffLink', gitDiffLink) register.filter('shortStatBlock', shortStatBlock) -register.filter('shortBoldBlock', shortBoldBlock) register.filter('longStatBlock', longStatBlock) register.filter('testResultColour', testResultColour) register.filter('sumAttributes', sumAttributes) diff --git a/OpenBench/utils.py b/OpenBench/utils.py index c5e5d7e..0ecd431 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -93,7 +93,7 @@ def getMachineStatus(username=None): if username != None: machines = machines.filter(user__username=username) - return "{0} Machines / ".format(len(machines)) + \ + return ": {0} Machines / ".format(len(machines)) + \ "{0} Threads / ".format(sum([f.threads for f in machines])) + \ "{0} MNPS ".format(round(sum([f.threads * f.mnps for f in machines]), 2)) diff --git a/OpenBench/views.py b/OpenBench/views.py index fb98931..c558b24 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -379,7 +379,7 @@ def machines(request): # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # - data = {'machines' : OpenBench.utils.getRecentMachines(10080)} + data = {'machines' : OpenBench.utils.getRecentMachines()} return render(request, 'machines.html', data) diff --git a/Templates/OpenBench/Blocks/pagebrowser.html b/Templates/OpenBench/Blocks/pagebrowser.html index 468fc61..a9ffa73 100644 --- a/Templates/OpenBench/Blocks/pagebrowser.html +++ b/Templates/OpenBench/Blocks/pagebrowser.html @@ -1,48 +1,13 @@ -
{{ error }}
- {{error}}
#}
- Ethereal 13.75 (NNUE) has been released. Since 13.50, a large number of changes have been made to - improve the search, time management, and NNUE architecture and training methods. Ethereal has - received multiple iterations of NNUE updates since 13.50, finally arriving at a pair of newly - trained Networks that are larger, but still faster than previous Networks. These Networks are - trained using the sum total of training data built up since 13.00.
+ + -Ethereal 13.75 (NNUE) once again includes two NNUE Networks for evaluation. These Networks continue - Ethereal's long standing legacy of original work. These Networks are not trained on, nor duplicated - from the works of any other Computer Chess team. With it, Ethereal continues to refine new ideas and - techniques, allowing older processors to outperform NNUE implementations found in other engines, - while still harnessing the full power of the AVX/AVX2 instruction sets for CPUs with support.
+ +Additionally, Ethereal 13.00 was the first engine to offer a secondary Network trained exclusively - for Fischer Random Chess (FRC). Ethereal 13.75 once again provides a secondary Network, updated with - all of the improvements found between releases. This Network outperforms the standard Network by - significant margins in FRC play, showcasing a creative style by Ethereal, not reliant on Opening - Theory.
+The commercial NNUE version requires a CPU with the SSSE3 instruction set (which almost all CPUs - have), and will not run on systems lacking these instructions. AVX/AVX2 have become ubiquitous in - modern processor design, and are necessary to capitalize on the full strength of Neural Network - technology. If you are unsure if your system is supported, please reach out to me via email at andrew@grantnet.us - for assistance.
+Ethereal 13.75 (NNUE) has been released. Since 13.50, a large number of changes have been made to improve the search, time management, and NNUE architecture and training methods. Ethereal has received multiple iterations of NNUE updates since 13.50, finally arriving at a pair of newly trained Networks that are larger, but still faster than previous Networks. These Networks are trained using the sum total of training data built up since 13.00.
-Stripe will verify your payment of $40 USD. Afterwards, you will - receive an email from andrew@grantnet.us or andrewgrantethereal@gmail.com within 24 - hours containing a download link for the Standard/Fischer NNUE Networks, as well as the binary or - executable files for Windows and Linux. You should select the binary matching your Operating System. - Users with Intel CPUs containing BMI2 support (Also known as PEXT), should use the pext binary for - optimal performance. AMD CPU users should use the popcnt binary, unless they have a 5XXX series - Ryzen. AVX2 binaries will be the fastest, followed by AVX, and finally SSSE3. You should use the - fastest your CPU allows.
+Ethereal 13.75 (NNUE) once again includes two NNUE Networks for evaluation. These Networks continue Ethereal's long standing legacy of original work. These Networks are not trained on, nor duplicated from the works of any other Computer Chess team. With it, Ethereal continues to refine new ideas and techniques, allowing older processors to outperform NNUE implementations found in other engines, while still harnessing the full power of the AVX/AVX2 instruction sets for CPUs with support.
-If you purchased Ethereal 13.00, or 13.25, or 13.50, you should have received an email containing - updates to 13.75 free of charge. If you did not, and the email cannot be found in your spam folder, - please reach out to me via andrew@grantnet.us or andrewgrantethereal@gmail.com.
+Additionally, Ethereal 13.00 was the first engine to offer a secondary Network trained exclusively for Fischer Random Chess (FRC). Ethereal 13.75 once again provides a secondary Network, updated with all of the improvements found between releases. This Network outperforms the standard Network by significant margins in FRC play, showcasing a creative style by Ethereal, not reliant on Opening Theory.
-The commercial NNUE version requires a CPU with the SSSE3 instruction set (which almost all CPUs have), and will not run on systems lacking these instructions. AVX/AVX2 have become ubiquitous in modern processor design, and are necessary to capitalize on the full strength of Neural Network technology. If you are unsure if your system is supported, please reach out to me via email at andrew@grantnet.us for assistance.
- {# #} - -Stripe will verify your payment of $40 USD. Afterwards, you will receive an email from andrew@grantnet.us or andrewgrantethereal@gmail.com within 24 hours containing a download link for the Standard/Fischer NNUE Networks, as well as the binary or executable files for Windows and Linux. You should select the binary matching your Operating System. Users with Intel CPUs containing BMI2 support (Also known as PEXT), should use the pext binary for optimal performance. AMD CPU users should use the popcnt binary, unless they have a 5XXX series Ryzen. AVX2 binaries will be the fastest, followed by AVX, and finally SSSE3. You should use the fastest your CPU allows.
+ +If you purchased Ethereal 13.00, or 13.25, or 13.50, you should have received an email containing updates to 13.75 free of charge. If you did not, and the email cannot be found in your spam folder, please reach out to me via andrew@grantnet.us or andrewgrantethereal@gmail.com.
+ +Ethereal 13.75 (NNUE) has been released. Since 13.50, a large number of changes have been made to improve the search, time management, and NNUE architecture and training methods. Ethereal has received multiple iterations of NNUE updates since 13.50, finally arriving at a pair of newly trained Networks that are larger, but still faster than previous Networks. These Networks are trained using the sum total of training data built up since 13.00.
#} -{##} -{#Ethereal 13.75 (NNUE) once again includes two NNUE Networks for evaluation. These Networks continue Ethereal's long standing legacy of original work. These Networks are not trained on, nor duplicated from the works of any other Computer Chess team. With it, Ethereal continues to refine new ideas and techniques, allowing older processors to outperform NNUE implementations found in other engines, while still harnessing the full power of the AVX/AVX2 instruction sets for CPUs with support.
#} -{##} -{#Additionally, Ethereal 13.00 was the first engine to offer a secondary Network trained exclusively for Fischer Random Chess (FRC). Ethereal 13.75 once again provides a secondary Network, updated with all of the improvements found between releases. This Network outperforms the standard Network by significant margins in FRC play, showcasing a creative style by Ethereal, not reliant on Opening Theory.
#} -{##} -{#The commercial NNUE version requires a CPU with the SSSE3 instruction set (which almost all CPUs have), and will not run on systems lacking these instructions. AVX/AVX2 have become ubiquitous in modern processor design, and are necessary to capitalize on the full strength of Neural Network technology. If you are unsure if your system is supported, please reach out to me via email at andrew@grantnet.us for assistance.
#} -{##} -{#Stripe will verify your payment of $40 USD. Afterwards, you will receive an email from andrew@grantnet.us or andrewgrantethereal@gmail.com within 24 hours containing a download link for the Standard/Fischer NNUE Networks, as well as the binary or executable files for Windows and Linux. You should select the binary matching your Operating System. Users with Intel CPUs containing BMI2 support (Also known as PEXT), should use the pext binary for optimal performance. AMD CPU users should use the popcnt binary, unless they have a 5XXX series Ryzen. AVX2 binaries will be the fastest, followed by AVX, and finally SSSE3. You should use the fastest your CPU allows.
#} -{##} -{#If you purchased Ethereal 13.00, or 13.25, or 13.50, you should have received an email containing updates to 13.75 free of charge. If you did not, and the email cannot be found in your spam folder, please reach out to me via andrew@grantnet.us or andrewgrantethereal@gmail.com.
#} -{##} -{#| Date | -User | -Test | -Worker | -TC | -Summary | -Logs | +Date | +User | +Test | +Worker | +TC | +Summary | +Logs |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {{ event.created|date:'U' }} - | -- {{ event.author|capfirst }} - | -- - {{ event.test_id|testIdToPrettyName }} - - | -- {% if event.machine_id %} - {{ event.machine_id }} - {% endif %} - | -- {{ event.test_id|testIdToTimeControl }} - | -- {{ event.summary }} - | -- {% if event.log_file %} - - - - {% endif %} - | +{{event.created|date:'U'}} | +{{event.author|capfirst}} | +{{event.test_id|testIdToPrettyName}} | +{% if event.machine_id %} {{event.machine_id}} {% endif %} | +{{event.test_id|testIdToTimeControl}} | +{{event.summary}} | +{% if event.log_file %}View{% endif %} |
| Author | -Engine | -Name | -- | TC | -Result | -||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pending | |||||
|---|---|---|---|---|---|
| - | |||||
| Author | -Engine | -Name | -- | TC | -Result | -
|---|---|---|---|---|---|
| Active {{status}} | |||||
| Author | -Engine | -Name | -- | TC | -Result | -
|---|---|---|---|---|---|
| Finished | |||||
| # | -User | -System | -Updated | -Workload | -Threads | -MNPS | +# | +User | +System | +Updated | +Workload | +Threads | +MNPS |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ machine.id }} | -{{ machine.user.username|capfirst }} | -{{ machine.osname|truncatewords:1|slice:":-2" }} | -{{ machine.updated|date:'U' }} | -{{ machine.workload.dev.name|prettyName }} | -{{ machine.threads }} | -{{ machine.mnps|twoDigitPrecision }} | +{{machine.id}} | +{{machine.user.username|capfirst}} | +{{machine.osname|truncatewords:1|slice:":-2"}} | +{{machine.updated|date:'U'}} | +{{machine.workload.dev.name|prettyName}} | +{{machine.threads}} | +{{machine.mnps|twoDigitPrecision}} |
| - | Engine | -Uploader | -Name | -Hash | -- |
|---|---|---|---|---|---|
| + | Engine | +Uploader | +Name | +Hash | ++ |
| {{network.sha256}} | - | +