Does Leela use hash table?

809 views
Skip to first unread message

Karol Majewski

unread,
Aug 24, 2018, 4:55:27 PM8/24/18
to LCZero
I thought she doesn't use hash tables and there is no 'Hash' option name there. However, during analysis in UCI output I see 'hashfull' value increasing. What is this all about?

Dan Kelly

unread,
Aug 24, 2018, 8:46:15 PM8/24/18
to Karol Majewski, LCZero
Leela does do a form of tree searching so she benefits from a hash table.

On Fri, Aug 24, 2018 at 4:55 PM Karol Majewski <karol.m...@gmail.com> wrote:
I thought she doesn't use hash tables and there is no 'Hash' option name there. However, during analysis in UCI output I see 'hashfull' value increasing. What is this all about?

--
You received this message because you are subscribed to the Google Groups "LCZero" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lczero+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lczero/b5c82aab-05e8-41e9-b9b6-d3d0cde9ae6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Karol Majewski

unread,
Aug 25, 2018, 3:55:42 AM8/25/18
to LCZero
So how can I adjust hash value if there is no UCI option called Hash?

Dan Kelly

unread,
Aug 25, 2018, 12:38:15 PM8/25/18
to Karol Majewski, LCZero
It's in Arena in the section where you set values common to all the engines.
I don't know about other chess interfaces I haven't tried them yet.

On Sat, Aug 25, 2018 at 3:55 AM Karol Majewski <karol.m...@gmail.com> wrote:
So how can I adjust hash value if there is no UCI option called Hash?

--
You received this message because you are subscribed to the Google Groups "LCZero" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lczero+un...@googlegroups.com.

Karol Majewski

unread,
Aug 25, 2018, 1:42:36 PM8/25/18
to LCZero
But the engine itself doesn't list Hash option when you run it in command line and type 'uci'. So it looks likę it's impossible to adjust hash value. But then if you run analysis (for example 'go infinite') you can see that hashfull value is getting higher.

Alexander Lyashuk

unread,
Aug 25, 2018, 2:08:01 PM8/25/18
to Karol Majewski, LCZero
Leela doesn't use hash table, it stores tree as classical tree (with pointers to children etc). The tree is small enough to fit into memory with this representation.
What Lc0 shows in "hash usage" is usage of NN eval cache, completely different thing.

On Sat, Aug 25, 2018 at 7:42 PM Karol Majewski <karol.m...@gmail.com> wrote:
But the engine itself doesn't list Hash option when you run it in command line and type 'uci'. So it looks likę it's impossible to adjust hash value. But then if you run analysis (for example 'go infinite') you can see that hashfull value is getting higher.

--
You received this message because you are subscribed to the Google Groups "LCZero" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lczero+un...@googlegroups.com.

Dan Kelly

unread,
Aug 25, 2018, 5:57:42 PM8/25/18
to moos...@gmail.com, Karol Majewski, LCZero
Yes I was thinking about traditional engines. Yes Leela uses a cache.
Altho I would be surprised to find out that Leela does not avoid evaluating
positions it has already processed with the neural net.

Reply all
Reply to author
Forward
0 new messages