lichess-org / lila

♞ lichess.org: the forever free, adless and open source chess server ♞
https://lichess.org
GNU Affero General Public License v3.0
15.65k stars 2.28k forks source link

Feature request: Leela as an engine on analysis boards and studies. #5897

Open lovlas opened 4 years ago

lovlas commented 4 years ago

Leela has proven an invaluable tool and revolutionized the chess world. It's a must use for ambitious chess players. Making it an option on the analysis board and in studies would allow players to prepare with leela and SF on lichess. Ideally you would be able to use both engines at the same time, as they nicely compliment each other, and use the users own hardware.

niklasf commented 4 years ago

Existing JavaScript port, even using WebGL for GPU access: https://github.com/frpays/lc0-js

niklasf commented 4 years ago

Open questions:

ornicar commented 4 years ago

For a start it could ignore cloud, then maybe down the road have its own

mooskagh commented 4 years ago

What interface/API do you use to integrate with Stockfish? Do you use something like this https://github.com/nmrugg/stockfish.js/, just one function and one callback?

niklasf commented 4 years ago

Yes, we use https://github.com/niklasf/stockfish.js or https://github.com/niklasf/stockfish.wasm, depending on browser support. The integration can be found in ui/ceval.

dangi12012 commented 3 years ago

This is related with Allow UCI engine analysis #7909 No need for browser support for tensorflow. Just a running lc0 instance somewhere :)

Its not like we have 8x NVIDIA Tesla V100 inference machine at home.

mooskagh commented 3 years ago

The idea was (and still is) to run Lc0 in browser through tensorflow.js or directly through webgl. It will surely be slower than a desktop version, but still reasonable for some analysis.

ni784 commented 3 years ago

yeah, it would be definitely helpful, especially for the non-tech users.