r/ComputerChess • u/Sertoltof • Feb 02 '25
Python + Tensorflow Chess Engine Using Transformers and MCTS
Recently tried to boot up Leela Chess Zero python training code, but it's kind of out of data and I was having trouble with Python and dependency versions, plus at this point I think Leela is kind of old, right?
Is there an up-to-date and accessible Python chess engine training library? I'm doing an experiment on whether or not LLMs can speed up training, so the model wouldn't have to be perfect, but ease of use would be essential.
Preferably it would use an architecture using modern techniques such as Transformers/Multi-head attention and Monte Carlo Tree Search.
Anybody know of any libraries or tutorials?
1
u/Sertoltof Feb 02 '25
My current approach is going to be getting a dead simple chess engine training and working (good tutorial: https://www.youtube.com/watch?v=v3jMr0Ppd9Y) and then grabbing components from Leela one at a time and hopefully be able to plug them in correctly: https://github.com/LeelaChessZero/lczero-training/blob/master/tf/tfprocess.py
1
u/[deleted] Feb 02 '25
Why did you have trouble with Python and its dependency versions? What kind of virtual environment did you use, which dependency manager, and which OS?