From 241156da6f35cb888253e6b8814e7b61a76b4fc7 Mon Sep 17 00:00:00 2001 From: tslil Date: Sun, 30 Aug 2026 19:46:07 +0100 Subject: TD(lambda), and a big rework NOTE: 6x6 weights are as-yet untrained On the performance side: * switch from linked-list chaining hash table to direct mapping * cache check_win by hash * persist transposition tables across plies (this was a big deal and difficult to puzzle out) * add align directives to the network floats * prepare_nn_input gained a small LUT to avoid branching (i suppose you might call this 1D embedding) * apply mtune=native for the native builds On the correctness side: * Zobrist has now includes the ply parity * the network now predicts something in [-1, 1] using tanh (approximated by polynomials) * the training object is now MSE because we're learning a value estimate * use .clangd instead of compile_commands.json On the training side: * completely forgo human-derived data set * implement td(lambda), self-play, tournaments --- compile_commands.json | 254 -------------------------------------------------- 1 file changed, 254 deletions(-) delete mode 100644 compile_commands.json (limited to 'compile_commands.json') diff --git a/compile_commands.json b/compile_commands.json deleted file mode 100644 index 69359af..0000000 --- a/compile_commands.json +++ /dev/null @@ -1,254 +0,0 @@ -[ - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "src/ctlm.o", - "src/ctlm.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/src/ctlm.c", - "output": "/home/tslil/code/ctak/src/ctlm.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/actions.o", - "include/actions.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/actions.c", - "output": "/home/tslil/code/ctak/include/actions.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/cnn1986.o", - "include/cnn1986.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/cnn1986.c", - "output": "/home/tslil/code/ctak/include/cnn1986.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/negamax.o", - "include/negamax.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/negamax.c", - "output": "/home/tslil/code/ctak/include/negamax.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/tak.o", - "include/tak.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/tak.c", - "output": "/home/tslil/code/ctak/include/tak.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/tps.o", - "include/tps.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/tps.c", - "output": "/home/tslil/code/ctak/include/tps.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/tt_llcht.o", - "include/tt_llcht.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/tt_llcht.c", - "output": "/home/tslil/code/ctak/include/tt_llcht.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/weights.o", - "include/weights.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/weights.c", - "output": "/home/tslil/code/ctak/include/weights.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/xorshift64.o", - "include/xorshift64.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/xorshift64.c", - "output": "/home/tslil/code/ctak/include/xorshift64.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "include/zobrist.o", - "include/zobrist.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/include/zobrist.c", - "output": "/home/tslil/code/ctak/include/zobrist.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "src/cttei.o", - "src/cttei.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/src/cttei.c", - "output": "/home/tslil/code/ctak/src/cttei.o" - }, - { - "arguments": [ - "/usr/bin/cc", - "-c", - "-O3", - "-ffast-math", - "-Wall", - "-Wextra", - "-Wpedantic", - "-std=c99", - "-D_DEFAULT_SOURCE", - "-DDETERMINISTIC", - "-Iinclude", - "-o", - "src/geminict.o", - "src/geminict.c" - ], - "directory": "/home/tslil/code/ctak", - "file": "/home/tslil/code/ctak/src/geminict.c", - "output": "/home/tslil/code/ctak/src/geminict.o" - } -] -- cgit v1.3.1