Files
OpenBench/Templates/OpenBench/create_tune.html
T
andrew 9123444d22 Complete overhaul of how engine options are handled
Removed worker_limit and thread_limit
Relocated some settings in the engine configs
Renamed the test_modes and tune_modes to x_presets
Added a default preset grouping, which others can extend
Complete rewrite of create_test.js, with the hope to generalize with create_tune.js
Cleanups of the create_test.html for warnings due to missing html attributes
2023-11-16 20:25:11 -05:00

169 lines
6.3 KiB
HTML

{% extends "OpenBench/base.html" %}
{% load static %}
{% block scripts %}
{{ config|json_script:"json-config" }}
{{ networks|json_script:"json-networks" }}
{{ profile.repos|json_script:"json-repos" }}
<script src="{% static 'create_tune.js' %}"></script>
<script>
document.addEventListener(
'DOMContentLoaded', function () {
set_engine('{{ profile.engine }}');
enforce_default_text('repo', 'https://github.com/');
}, false
);
</script>
{% endblock %}
{% block content %}
<form method="POST" action="/newTune/">
{% csrf_token %}
<div class="form w-100">
<div class="col">
<h3> Engine </h3>
<div class="row">
<label> Engine </label>
<select id="engine" name="dev_engine" onchange="set_engine(value);">
{% for engine in config.engines %}
<option value="{{ engine }}">{{ engine }}</option>
{% endfor %}
</select>
</div>
<div class="row">
<label> Source </label> <input id="repo" name="dev_repo">
</div>
<h3> Engine Settings </h3>
<div class="row">
<label> Branch </label> <input id="branch" name="dev_branch" autofocus>
</div>
<div class="row">
<label> Bench </label> <input value="Autofill" name="dev_bench">
</div>
<div class="row">
<label> Network </label> <select id="network" name="dev_network"></select>
</div>
<div class="row">
<label> Options </label> <input id="options" name="dev_options">
</div>
<div class="row">
<label> Time </label> <input id="time_control" name="dev_time_control">
</div>
<h3> SPSA Methodologies </h3>
<div class="row">
<label> Reporting </label> <select name="spsa_reporting_type">
<option value="BATCHED"> Batched </option>
<option selected value="BULK"> Bulk </option>
</select>
</div>
<div class="row">
<label> Distribution </label> <select name="spsa_distribution_type">
<option selected value="SINGLE"> Single </option>
<option value="MULTIPLE"> Multiple </option>
</select>
</div>
<h3> SPSA Input </h3>
<div class="row">
<textarea style="margin-left:24px" id="spsa_inputs" name="spsa_inputs" rows=9></textarea>
</div>
</div>
<div class="col">
<h3> SPSA Settings </h3>
<div class="row">
<label> Opening Book </label> <select id="book_name" name="book_name">
{% for name, data in config.books.items %}
<option value="{{ name }}">{{ name }}</option>
{% endfor %}
</select>
</div>
<div class="row">
<label> Alpha </label> <input value="0.602" id="spsa_alpha" name="spsa_alpha">
</div>
<div class="row">
<label> Gamma </label> <input value="0.101" id="spsa_gamma" name="spsa_gamma">
</div>
<div class="row">
<label> A-Ratio </label> <input value="0.1" id="spsa_A_ratio" name="spsa_A_ratio">
</div>
<div class="row">
<label> Iterations </label> <input value="200000" id="spsa_iterations" name="spsa_iterations">
</div>
<div class="row">
<label> Pairs-Per </label> <input value="1" id="spsa_pairs_per" name="spsa_pairs_per">
</div>
<h3> General Settings </h3>
<div class="row">
<label> Priority </label> <input value="0" name="priority">
</div>
<div class="row">
<label> Throughput </label> <input value="1000" id="throughput" , name="throughput">
</div>
<div class="row">
<label> Syzygy WDL </label> <select name="syzygy_wdl">
<option selected value="DISABLED"> Disabled </option>
<option value="OPTIONAL"> Optional </option>
<option value="7-MAN"> 7-Man </option>
<option value="6-MAN"> 6-Man </option>
<option value="5-MAN"> 5-Man </option>
<option value="4-MAN"> 4-Man </option>
<option value="3-MAN"> 3-Man </option>
</select>
</div>
<h3> Adjudication Settings </h3>
<div class="row">
<label> Syzygy ADJ. </label>
<select name="syzygy_adj">
<option value="DISABLED"> Disabled </option>
<option selected value="OPTIONAL"> Optional </option>
<option value="7-MAN"> 7-Man </option>
<option value="6-MAN"> 6-Man </option>
<option value="5-MAN"> 5-Man </option>
<option value="4-MAN"> 4-Man </option>
<option value="3-MAN"> 3-Man </option>
</select>
</div>
<div class="row">
<label> Win ADJ. </label> <input id="win_adj" name="win_adj">
</div>
<div class="row">
<label> Draw ADJ. </label> <input id="draw_adj" name="draw_adj">
</div>
</div>
</div>
<input type="submit" class="anchorbutton btn-start mt-3 mw-84" name="submit" value="Create SPSA Tune">
</form>
<div class="form">
<div class="col-full">
<div id="test-mode-buttons">
<!-- Generated based on the selected Engine -->
</div>
</div>
</div>
{% endblock %}