@@ -280,11 +280,11 @@ struct BerserkModel : ChessModel {
280280 1e-8 ,
281281 5 * 16384 ));
282282
283- set_file_output (" /mnt/data/berserk-nets/exp46 " );
283+ set_file_output (" /mnt/data/berserk-nets/exp53 " );
284284
285285 add_quantization (Quantizer {
286286 " " + std::to_string ((int ) quant_one) + " _" + std::to_string ((int ) quant_two),
287- 10 ,
287+ 50 ,
288288 QuantizerEntry<int16_t >(&ft->weights .values , quant_one, true ),
289289 QuantizerEntry<int16_t >(&ft->bias .values , quant_one),
290290 QuantizerEntry<int8_t >(&l1->weights .values , quant_two),
@@ -294,7 +294,7 @@ struct BerserkModel : ChessModel {
294294 QuantizerEntry<float >(&pos_eval->weights .values , 1.0 ),
295295 QuantizerEntry<float >(&pos_eval->bias .values , quant_two),
296296 });
297- set_save_frequency (10 );
297+ set_save_frequency (50 );
298298 }
299299
300300 inline int king_square_index (int relative_king_square) {
@@ -336,7 +336,7 @@ struct BerserkModel : ChessModel {
336336
337337 auto & target = m_loss->target ;
338338
339- #pragma omp parallel for schedule(static) num_threads(16 )
339+ #pragma omp parallel for schedule(static) num_threads(8 )
340340 for (int b = 0 ; b < positions->header .entry_count ; b++) {
341341 chess::Position* pos = &positions->positions [b];
342342 // fill in the inputs and target values
@@ -394,7 +394,7 @@ int main() {
394394 std::vector<std::string> files {};
395395 std::vector<std::string> validation_files {};
396396
397- for (const auto & entry : fs::directory_iterator (" /mnt/data/berserk-bins/data212 " )) {
397+ for (const auto & entry : fs::directory_iterator (" /mnt/data/berserk-bins/data216 " )) {
398398 const std::string path = entry.path ().string ();
399399 if (path.find (" valid" ) != std::string::npos) {
400400 std::cout << " Specifying " << path << " as validation data!" << std::endl;
@@ -413,7 +413,7 @@ int main() {
413413 validation_loader.start ();
414414
415415 BerserkModel model {};
416- model.load_weights (" /mnt/data/berserk-nets/exp45 /weights/1000.state" );
416+ model.load_weights (" /mnt/data/berserk-nets/exp51 /weights/1000.state" );
417417 model.train (loader, validation_loader, 1000 );
418418
419419 loader.kill ();
0 commit comments