Skip to content

Commit

Permalink
bench: 4948914
Browse files Browse the repository at this point in the history
  • Loading branch information
liamt19 committed Dec 25, 2024
1 parent d77783b commit c2b0b30
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 52 deletions.
116 changes: 66 additions & 50 deletions Logic/NN/Bucketed768.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public static unsafe partial class Bucketed768
{
public const int INPUT_BUCKETS = 14;
public const int INPUT_SIZE = 768;
public const int L1_SIZE = 1536;
public const int L2_SIZE = 32;
public const int L1_SIZE = 2048;
public const int L2_SIZE = 16;
public const int L3_SIZE = 32;
public const int OUTPUT_BUCKETS = 8;

Expand Down Expand Up @@ -891,54 +891,70 @@ public static void PrintActivationStats()
// $1\n
private static ReadOnlySpan<int> BestIndices =>
[
174, 266, 369, 334, 109, 501, 696, 742, 125, 299, 622, 173, 238, 130, 355, 727,
475, 341, 429, 535, 756, 252, 479, 508, 457, 326, 33, 285, 385, 766, 123, 415,
609, 251, 547, 244, 359, 405, 218, 19, 143, 481, 507, 0, 718, 336, 172, 332,
259, 427, 118, 596, 762, 430, 482, 374, 163, 692, 496, 414, 70, 24, 305, 211,
32, 152, 181, 724, 570, 63, 91, 364, 542, 555, 322, 79, 642, 446, 439, 347,
160, 707, 445, 597, 395, 316, 131, 295, 603, 714, 578, 504, 673, 660, 422, 765,
416, 371, 2, 155, 497, 187, 532, 48, 223, 605, 279, 602, 198, 135, 526, 471,
46, 503, 203, 639, 186, 565, 688, 3, 350, 249, 191, 92, 443, 571, 62, 761,
394, 199, 237, 401, 275, 625, 648, 202, 137, 365, 333, 138, 304, 438, 358, 57,
465, 467, 702, 368, 588, 286, 1, 608, 182, 477, 466, 733, 86, 554, 413, 720,
212, 460, 630, 661, 363, 490, 151, 582, 682, 613, 278, 637, 294, 666, 487, 573,
97, 215, 264, 272, 686, 480, 329, 586, 267, 227, 153, 221, 737, 447, 115, 538,
650, 551, 731, 168, 210, 468, 708, 28, 495, 377, 296, 719, 121, 240, 618, 659,
166, 352, 589, 469, 709, 744, 690, 116, 735, 192, 522, 247, 669, 310, 260, 489,
440, 99, 486, 353, 119, 653, 233, 462, 679, 428, 209, 411, 600, 594, 472, 235,
101, 117, 320, 165, 546, 674, 739, 59, 514, 524, 748, 81, 423, 206, 767, 392,
18, 432, 361, 587, 348, 760, 274, 728, 409, 662, 14, 243, 590, 239, 398, 127,
236, 528, 640, 337, 83, 723, 577, 498, 302, 20, 67, 72, 229, 280, 93, 317,
100, 644, 473, 736, 583, 283, 339, 402, 431, 491, 148, 250, 550, 50, 76, 325,
200, 540, 205, 346, 16, 451, 699, 722, 35, 752, 537, 349, 288, 141, 493, 529,
378, 224, 351, 515, 21, 403, 60, 95, 85, 553, 520, 54, 725, 563, 615, 255,
258, 633, 248, 419, 271, 26, 66, 157, 113, 10, 98, 397, 539, 437, 606, 455,
635, 678, 701, 393, 646, 41, 303, 717, 670, 511, 84, 426, 534, 492, 634, 591,
381, 89, 162, 214, 139, 677, 747, 521, 638, 372, 763, 564, 106, 82, 750, 593,
598, 741, 483, 738, 183, 25, 734, 254, 478, 170, 171, 156, 194, 190, 253, 331,
370, 531, 523, 308, 706, 69, 234, 656, 518, 193, 743, 675, 525, 424, 700, 541,
453, 420, 513, 390, 327, 318, 230, 441, 470, 400, 290, 549, 753, 301, 384, 631,
516, 80, 180, 7, 544, 704, 291, 713, 245, 159, 464, 56, 435, 201, 311, 552,
456, 383, 219, 751, 145, 196, 307, 289, 133, 517, 510, 103, 222, 23, 161, 655,
746, 297, 22, 71, 629, 621, 328, 51, 626, 167, 375, 37, 242, 232, 293, 387,
379, 712, 277, 17, 144, 12, 664, 27, 691, 108, 623, 344, 533, 52, 149, 178,
313, 61, 281, 617, 616, 338, 68, 40, 44, 47, 569, 185, 314, 241, 527, 755,
452, 476, 417, 726, 55, 614, 418, 270, 444, 580, 683, 335, 757, 64, 226, 65,
179, 607, 107, 354, 154, 225, 652, 122, 680, 499, 263, 120, 29, 676, 177, 261,
357, 711, 641, 142, 698, 651, 208, 228, 425, 11, 391, 643, 340, 407, 124, 657,
128, 216, 382, 433, 548, 38, 568, 282, 681, 558, 5, 330, 112, 345, 94, 601,
104, 386, 512, 4, 217, 164, 461, 649, 581, 126, 306, 502, 284, 459, 519, 449,
146, 689, 654, 78, 36, 505, 39, 388, 454, 484, 13, 406, 412, 376, 110, 136,
619, 759, 175, 31, 43, 509, 500, 740, 207, 566, 220, 323, 309, 561, 576, 703,
399, 579, 96, 450, 604, 184, 729, 730, 58, 687, 321, 408, 684, 620, 575, 705,
474, 105, 147, 300, 458, 169, 693, 624, 611, 231, 599, 697, 612, 176, 150, 312,
49, 536, 298, 572, 632, 6, 556, 694, 373, 685, 42, 75, 265, 380, 410, 195,
715, 585, 257, 665, 114, 710, 545, 636, 494, 695, 667, 610, 111, 204, 562, 366,
764, 584, 197, 189, 506, 342, 73, 560, 292, 262, 592, 276, 360, 256, 436, 88,
672, 34, 269, 663, 567, 90, 671, 434, 404, 74, 749, 627, 543, 367, 530, 421,
754, 396, 721, 485, 246, 140, 273, 557, 129, 9, 324, 134, 87, 356, 102, 30,
732, 319, 15, 448, 574, 132, 745, 315, 758, 362, 268, 53, 213, 488, 628, 463,
658, 8, 188, 77, 442, 287, 647, 595, 45, 559, 389, 668, 716, 645, 158, 343,
238, 406, 493, 921, 296, 700, 1003, 855, 663, 450, 996, 511, 337, 400, 82, 424,
841, 984, 769, 554, 653, 181, 678, 286, 266, 667, 109, 604, 78, 303, 713, 798,
213, 889, 644, 79, 685, 507, 850, 838, 999, 909, 184, 503, 591, 557, 770, 501,
620, 260, 654, 779, 97, 595, 420, 724, 514, 944, 263, 868, 297, 500, 316, 359,
797, 879, 386, 9, 699, 453, 570, 73, 568, 69, 596, 194, 198, 330, 916, 807,
126, 910, 1007, 475, 494, 734, 427, 414, 936, 822, 542, 81, 349, 197, 71, 818,
360, 170, 4, 437, 703, 193, 645, 125, 447, 312, 95, 588, 10, 264, 27, 505,
433, 982, 116, 233, 72, 992, 504, 270, 241, 827, 436, 458, 358, 550, 561, 832,
275, 295, 1023, 342, 611, 183, 928, 851, 751, 899, 247, 549, 446, 753, 771, 167,
612, 963, 136, 849, 635, 328, 134, 617, 768, 621, 431, 735, 294, 422, 639, 958,
355, 980, 630, 1020, 661, 392, 357, 174, 391, 931, 664, 372, 469, 1, 171, 623,
428, 633, 553, 787, 237, 60, 572, 569, 796, 208, 593, 122, 540, 745, 92, 94,
421, 236, 551, 8, 301, 246, 643, 29, 884, 668, 544, 726, 576, 837, 728, 464,
288, 259, 249, 811, 867, 350, 13, 468, 616, 763, 520, 628, 302, 196, 16, 0,
175, 325, 466, 809, 215, 859, 142, 656, 58, 209, 960, 473, 410, 179, 30, 893,
488, 815, 340, 416, 875, 525, 904, 387, 823, 1006, 96, 23, 439, 31, 606, 895,
38, 702, 245, 813, 537, 597, 388, 979, 229, 881, 347, 188, 590, 587, 836, 380,
506, 204, 335, 327, 619, 1001, 252, 605, 988, 897, 412, 489, 106, 418, 324, 154,
17, 498, 32, 714, 833, 528, 636, 367, 15, 51, 14, 45, 160, 332, 935, 559,
20, 711, 648, 968, 477, 541, 321, 556, 518, 448, 57, 555, 434, 202, 19, 934,
749, 120, 788, 222, 579, 480, 933, 84, 223, 258, 946, 274, 649, 182, 62, 290,
729, 894, 153, 101, 989, 853, 864, 137, 976, 954, 940, 821, 124, 415, 522, 66,
780, 394, 858, 331, 322, 707, 826, 180, 508, 805, 825, 115, 696, 339, 584, 977,
562, 792, 647, 677, 1008, 756, 578, 12, 269, 941, 983, 778, 516, 143, 43, 907,
425, 846, 471, 665, 117, 63, 478, 28, 722, 900, 786, 277, 882, 144, 842, 284,
21, 594, 905, 190, 232, 772, 262, 465, 659, 351, 938, 444, 834, 795, 219, 496,
227, 794, 48, 426, 162, 548, 242, 145, 451, 155, 354, 955, 251, 698, 381, 538,
64, 86, 248, 640, 470, 845, 804, 691, 374, 404, 876, 280, 912, 147, 641, 903,
211, 1000, 913, 739, 34, 283, 1011, 123, 957, 1010, 341, 87, 375, 371, 948, 377,
1015, 441, 326, 552, 627, 607, 586, 800, 923, 345, 759, 111, 732, 276, 363, 467,
692, 1021, 362, 364, 300, 24, 91, 440, 212, 560, 885, 113, 129, 871, 886, 88,
35, 228, 766, 927, 1009, 527, 799, 687, 378, 793, 975, 987, 271, 950, 765, 138,
775, 463, 592, 706, 1013, 483, 178, 748, 539, 566, 133, 361, 998, 99, 738, 376,
721, 599, 961, 883, 243, 932, 26, 41, 1014, 291, 495, 93, 310, 365, 760, 482,
783, 589, 42, 172, 1017, 828, 773, 166, 803, 959, 148, 812, 230, 672, 622, 1005,
930, 781, 334, 531, 383, 750, 671, 411, 573, 727, 571, 613, 774, 176, 785, 547,
937, 390, 725, 158, 880, 887, 187, 972, 385, 314, 59, 533, 157, 860, 65, 261,
642, 318, 695, 764, 1004, 658, 974, 389, 717, 396, 85, 472, 486, 461, 449, 265,
121, 861, 319, 313, 502, 943, 407, 716, 994, 490, 839, 462, 455, 565, 743, 151,
929, 862, 484, 986, 107, 683, 281, 681, 37, 693, 53, 676, 323, 789, 874, 46,
603, 863, 510, 949, 366, 289, 235, 491, 408, 819, 852, 962, 405, 546, 816, 723,
758, 848, 535, 720, 790, 108, 40, 401, 817, 524, 513, 791, 285, 981, 189, 200,
487, 682, 1022, 499, 307, 744, 103, 762, 625, 517, 847, 119, 156, 1018, 767, 255,
304, 104, 3, 459, 877, 292, 161, 709, 519, 890, 997, 1019, 128, 873, 239, 680,
747, 413, 481, 305, 399, 856, 914, 951, 397, 149, 492, 49, 869, 964, 336, 990,
741, 608, 100, 150, 824, 1012, 670, 368, 947, 140, 240, 718, 409, 127, 840, 430,
343, 908, 139, 89, 173, 317, 135, 598, 67, 70, 534, 130, 11, 708, 114, 293,
704, 56, 705, 74, 892, 452, 536, 402, 694, 131, 808, 956, 370, 68, 257, 191,
479, 684, 610, 829, 432, 601, 993, 250, 679, 309, 192, 512, 754, 971, 857, 742,
564, 55, 878, 1016, 906, 5, 7, 782, 98, 650, 267, 712, 740, 50, 1002, 141,
655, 186, 164, 673, 736, 2, 382, 801, 344, 697, 872, 820, 206, 563, 195, 830,
776, 395, 843, 308, 44, 710, 615, 419, 320, 945, 457, 583, 854, 61, 90, 626,
199, 529, 523, 132, 201, 614, 76, 268, 47, 634, 582, 279, 970, 152, 254, 731,
675, 969, 217, 618, 398, 22, 311, 515, 526, 926, 602, 225, 185, 666, 844, 746,
315, 637, 902, 646, 600, 918, 965, 953, 733, 384, 662, 393, 761, 352, 686, 474,
752, 530, 165, 220, 558, 224, 715, 985, 922, 253, 629, 379, 810, 737, 203, 346,
973, 609, 105, 925, 306, 216, 445, 898, 911, 244, 967, 891, 177, 163, 356, 580,
901, 831, 102, 581, 6, 896, 33, 835, 460, 39, 25, 435, 36, 77, 52, 205,
110, 521, 757, 802, 168, 915, 688, 118, 210, 755, 545, 329, 282, 214, 784, 333,
632, 660, 80, 256, 777, 652, 942, 443, 567, 83, 624, 54, 75, 651, 509, 730,
669, 417, 169, 952, 438, 442, 476, 991, 369, 456, 429, 146, 719, 348, 966, 273,
978, 353, 221, 888, 575, 454, 159, 631, 870, 689, 920, 234, 287, 543, 532, 814,
577, 574, 338, 806, 299, 231, 585, 112, 373, 701, 218, 272, 919, 638, 485, 657,
207, 690, 403, 917, 866, 939, 278, 423, 674, 497, 298, 226, 18, 865, 995, 924,
];

}
Expand Down
2 changes: 1 addition & 1 deletion Logic/Util/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Lizard.Logic.Util
{
public static class Utilities
{
public const string EngineBuildVersion = "11.1.7";
public const string EngineBuildVersion = "11.1.8";

public const int NormalListCapacity = 128;
public const int MoveListSize = 256;
Expand Down
2 changes: 1 addition & 1 deletion network.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
net-014-14m8-32-z
net-015-2048x16x32-z

0 comments on commit c2b0b30

Please sign in to comment.