←back to thread

132 points xlinux | 2 comments | | HN request time: 0.404s | source
Show context
deadbabe ◴[] No.42187475[source]
Why build a chess engine these days, just use an LLM?
replies(4): >>42187631 #>>42187635 #>>42187948 #>>42188822 #
achierius ◴[] No.42187948[source]
LLMs are quite bad at chess actually, even compared to human players -- and certainly compared to proper modern chess engines
replies(1): >>42188073 #
PaulHoule ◴[] No.42188073[source]
They usually struggle to always generate valid moves.

And that's pivotal.

If you have a program which always makes valid moves and gives up when it has lost you wrote a proper chess playing program. It may play badly, but it plays.

replies(1): >>42189228 #
ElFitz ◴[] No.42189228[source]
That could now be achieved by precomputing all valid moves and using outlines[0] or Structured Outputs[1] to constrain the output.

[0]: https://github.com/dottxt-ai/outlines

[1]: https://openai.com/index/introducing-structured-outputs-in-t...

replies(1): >>42190437 #
1. PaulHoule ◴[] No.42190437[source]
… or just a valid move checker that prompts it to try again if it fails to make a valid move.
replies(1): >>42226520 #
2. ElFitz ◴[] No.42226520[source]
Yes, but LLMs are expensive to run.