mig2004 wrote: ↑Tue Jan 28, 2020 2:47 pm

I had a run in my LTC chess engine ladder, (90 min 45 sec/per move) using latest Lc0 version as of jan 28, with blass backserver (no gpu).

Lco works very well up to middle game, approx up to move 35, then it loses eggregiously afterwards. I suspect configuration using blass must be quite different. Any suggestions for blass-based configuration?

One way to improve its play is by modifying the default maxprefetch and minibatachsize values.

On my i7 3.4 Ghz pc, I run the benchmark multiple times modifying those options and record the nps. Then find the maximum nps.

MaxPrefetch: 0, MinibatchSize: 1, nps: 207

MaxPrefetch: 0, MinibatchSize: 2, nps: 270

MaxPrefetch: 0, MinibatchSize: 4, nps: 336

MaxPrefetch: 0, MinibatchSize: 8, nps: 370

MaxPrefetch: 0, MinibatchSize: 16, nps: 347

MaxPrefetch: 0, MinibatchSize: 32, nps: 310

MaxPrefetch: 0, MinibatchSize: 64, nps: 298

MaxPrefetch: 0, MinibatchSize: 128, nps: 316

MaxPrefetch: 0, MinibatchSize: 256, nps: 318

MaxPrefetch: 0, MinibatchSize: 512, nps: 318

MaxPrefetch: 0, MinibatchSize: 1024, nps: 319

MaxPrefetch: 2, MinibatchSize: 1, nps: 180

MaxPrefetch: 2, MinibatchSize: 2, nps: 268

MaxPrefetch: 2, MinibatchSize: 4, nps: 333

MaxPrefetch: 2, MinibatchSize: 8, nps: 364

MaxPrefetch: 2, MinibatchSize: 16, nps: 337

MaxPrefetch: 2, MinibatchSize: 32, nps: 317

MaxPrefetch: 2, MinibatchSize: 64, nps: 301

MaxPrefetch: 2, MinibatchSize: 128, nps: 315

MaxPrefetch: 2, MinibatchSize: 256, nps: 318

MaxPrefetch: 2, MinibatchSize: 512, nps: 315

MaxPrefetch: 2, MinibatchSize: 1024, nps: 317

MaxPrefetch: 4, MinibatchSize: 1, nps: 159

MaxPrefetch: 4, MinibatchSize: 2, nps: 204

MaxPrefetch: 4, MinibatchSize: 4, nps: 324

MaxPrefetch: 4, MinibatchSize: 8, nps: 351

MaxPrefetch: 4, MinibatchSize: 16, nps: 341

MaxPrefetch: 4, MinibatchSize: 32, nps: 302

MaxPrefetch: 4, MinibatchSize: 64, nps: 307

MaxPrefetch: 4, MinibatchSize: 128, nps: 306

MaxPrefetch: 4, MinibatchSize: 256, nps: 315

MaxPrefetch: 4, MinibatchSize: 512, nps: 315

MaxPrefetch: 4, MinibatchSize: 1024, nps: 316

MaxPrefetch: 8, MinibatchSize: 1, nps: 143

MaxPrefetch: 8, MinibatchSize: 2, nps: 161

MaxPrefetch: 8, MinibatchSize: 4, nps: 225

MaxPrefetch: 8, MinibatchSize: 8, nps: 362

MaxPrefetch: 8, MinibatchSize: 16, nps: 347

MaxPrefetch: 8, MinibatchSize: 32, nps: 311

MaxPrefetch: 8, MinibatchSize: 64, nps: 308

MaxPrefetch: 8, MinibatchSize: 128, nps: 316

MaxPrefetch: 8, MinibatchSize: 256, nps: 318

MaxPrefetch: 8, MinibatchSize: 512, nps: 312

MaxPrefetch: 8, MinibatchSize: 1024, nps: 314

MaxPrefetch: 16, MinibatchSize: 1, nps: 123

MaxPrefetch: 16, MinibatchSize: 2, nps: 137

MaxPrefetch: 16, MinibatchSize: 4, nps: 157

MaxPrefetch: 16, MinibatchSize: 8, nps: 225

MaxPrefetch: 16, MinibatchSize: 16, nps: 342

MaxPrefetch: 16, MinibatchSize: 32, nps: 311

MaxPrefetch: 16, MinibatchSize: 64, nps: 305

MaxPrefetch: 16, MinibatchSize: 128, nps: 316

MaxPrefetch: 16, MinibatchSize: 256, nps: 313

MaxPrefetch: 16, MinibatchSize: 512, nps: 315

MaxPrefetch: 16, MinibatchSize: 1024, nps: 318

MaxPrefetch: 32, MinibatchSize: 1, nps: 94

MaxPrefetch: 32, MinibatchSize: 2, nps: 109

MaxPrefetch: 32, MinibatchSize: 4, nps: 121

MaxPrefetch: 32, MinibatchSize: 8, nps: 147

MaxPrefetch: 32, MinibatchSize: 16, nps: 204

MaxPrefetch: 32, MinibatchSize: 32, nps: 284

MaxPrefetch: 32, MinibatchSize: 64, nps: 280

MaxPrefetch: 32, MinibatchSize: 128, nps: 282

MaxPrefetch: 32, MinibatchSize: 256, nps: 284

MaxPrefetch: 32, MinibatchSize: 512, nps: 279

MaxPrefetch: 32, MinibatchSize: 1024, nps: 284

MaxPrefetch: 64, MinibatchSize: 1, nps: 70

MaxPrefetch: 64, MinibatchSize: 2, nps: 82

MaxPrefetch: 64, MinibatchSize: 4, nps: 89

MaxPrefetch: 64, MinibatchSize: 8, nps: 116

MaxPrefetch: 64, MinibatchSize: 16, nps: 143

MaxPrefetch: 64, MinibatchSize: 32, nps: 174

MaxPrefetch: 64, MinibatchSize: 64, nps: 208

MaxPrefetch: 64, MinibatchSize: 128, nps: 210

MaxPrefetch: 64, MinibatchSize: 256, nps: 209

MaxPrefetch: 64, MinibatchSize: 512, nps: 212

MaxPrefetch: 64, MinibatchSize: 1024, nps: 211

MaxPrefetch: 128, MinibatchSize: 1, nps: 73

MaxPrefetch: 128, MinibatchSize: 2, nps: 79

MaxPrefetch: 128, MinibatchSize: 4, nps: 77

MaxPrefetch: 128, MinibatchSize: 8, nps: 107

MaxPrefetch: 128, MinibatchSize: 16, nps: 141

MaxPrefetch: 128, MinibatchSize: 32, nps: 158

MaxPrefetch: 128, MinibatchSize: 64, nps: 159

MaxPrefetch: 128, MinibatchSize: 128, nps: 159

MaxPrefetch: 128, MinibatchSize: 256, nps: 153

MaxPrefetch: 128, MinibatchSize: 512, nps: 147

MaxPrefetch: 128, MinibatchSize: 1024, nps: 156

MaxPrefetch: 256, MinibatchSize: 1, nps: 73

MaxPrefetch: 256, MinibatchSize: 2, nps: 79

MaxPrefetch: 256, MinibatchSize: 4, nps: 74

MaxPrefetch: 256, MinibatchSize: 8, nps: 110

MaxPrefetch: 256, MinibatchSize: 16, nps: 140

MaxPrefetch: 256, MinibatchSize: 32, nps: 159

MaxPrefetch: 256, MinibatchSize: 64, nps: 162

MaxPrefetch: 256, MinibatchSize: 128, nps: 164

MaxPrefetch: 256, MinibatchSize: 256, nps: 193

MaxPrefetch: 256, MinibatchSize: 512, nps: 164

MaxPrefetch: 256, MinibatchSize: 1024, nps: 164

MaxPrefetch: 512, MinibatchSize: 1, nps: 79

MaxPrefetch: 512, MinibatchSize: 2, nps: 83

MaxPrefetch: 512, MinibatchSize: 4, nps: 75

MaxPrefetch: 512, MinibatchSize: 8, nps: 110

MaxPrefetch: 512, MinibatchSize: 16, nps: 142

MaxPrefetch: 512, MinibatchSize: 32, nps: 158

MaxPrefetch: 512, MinibatchSize: 64, nps: 162

MaxPrefetch: 512, MinibatchSize: 128, nps: 164

MaxPrefetch: 512, MinibatchSize: 256, nps: 167

MaxPrefetch: 512, MinibatchSize: 512, nps: 178

MaxPrefetch: 512, MinibatchSize: 1024, nps: 166

MaxPrefetch: 1024, MinibatchSize: 1, nps: 74

MaxPrefetch: 1024, MinibatchSize: 2, nps: 86

MaxPrefetch: 1024, MinibatchSize: 4, nps: 74

MaxPrefetch: 1024, MinibatchSize: 8, nps: 109

MaxPrefetch: 1024, MinibatchSize: 16, nps: 141

MaxPrefetch: 1024, MinibatchSize: 32, nps: 158

MaxPrefetch: 1024, MinibatchSize: 64, nps: 162

MaxPrefetch: 1024, MinibatchSize: 128, nps: 181

MaxPrefetch: 1024, MinibatchSize: 256, nps: 164

MaxPrefetch: 1024, MinibatchSize: 512, nps: 193

MaxPrefetch: 1024, MinibatchSize: 1024, nps: 164

This is the one that I use:

Code: Select all

`MaxPrefetch: 0, MinibatchSize: 8, nps: 370`

Default is:

Code: Select all

`MaxPrefetch: 32, MinibatchSize: 256, nps: 284`

After a test at TC 1m+1s, I got around +300 more elo.

Code: Select all

```
Score of Lc0 v0.23.2 wLD2 blas default vs Lc0 v0.23.2 wLD2 blas mp0_mbs8: 2 - 56 - 10 [0.103] 68
Elo difference: -376.1 +/- 116.7, LOS: 0.0 %, DrawRatio: 14.7 %
```

If you are interested, I will send the program so you can find the max nps on your machine.