Skip to content

Commit

Permalink
Enable batching for self-play.
Browse files Browse the repository at this point in the history
Pull request leela-zero#2253.
  • Loading branch information
Ttl authored and gcp committed Apr 2, 2019
1 parent b2fe01d commit 9beb22e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions autogtp/Management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void Management::giveAssignments() {
QTextStream(stdout) << "Starting tuning process, please wait..." << endl;

Order tuneOrder = getWork(true);
QString tuneCmdLine("./leelaz -t 1 --tune-only -w networks/");
QString tuneCmdLine("./leelaz --batchsize=5 --tune-only -w networks/");
tuneCmdLine.append(tuneOrder.parameters()["network"] + ".gz");
if (m_gpusList.isEmpty()) {
runTuningProcess(tuneCmdLine);
Expand Down Expand Up @@ -266,7 +266,8 @@ QString Management::getOptionsString(const QJsonObject &opt, const QString &rnd)
options.append(getOption(opt, "visits", " -v ", ""));
options.append(getOption(opt, "resignation_percent", " -r ", "1"));
options.append(getOption(opt, "randomcnt", " -m ", "30"));
options.append(getOption(opt, "threads", " -t ", "1"));
options.append(getOption(opt, "threads", " -t ", "6"));
options.append(getOption(opt, "batchsize", " --batchsize ", "5"));
options.append(getBoolOption(opt, "dumbpass", " -d ", true));
options.append(getBoolOption(opt, "noise", " -n ", true));
options.append(" --noponder ");
Expand Down

0 comments on commit 9beb22e

Please sign in to comment.