Light weight engines

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Damas Clásicas
Posts: 24
Joined: Thu Aug 22, 2019 6:11 am
Full name: Herson P. Guier

Re: Light weight engines

Post by Damas Clásicas »

Asmfish (Stockfish compiled on Assembler) is a LOT smaller than those you mentioned. Arround 100-126 KB and even less!
chesskobra wrote: Sun Sep 22, 2024 10:12 pm What are some lightweight and strong engines? Of course, lightweight and strong are relative terms, so, for reference, consider Crafty 25.6 (435 kB), Altair 5.0.0 (298 kB), Laser 1.8 beta (245 kB), Komodo 14.1 (1.8 MB). Fruit 2.1 (97 kB). Some other engines may have small executables not including their large neural networks. What are some other engines comparable to any of the above engines? For their sizes the above engines are pretty strong. I wish engine ratings had weight categories.

The recent Stockfish 17 is 78 MB. I have difficulty running it under cutechess (but I don't know if it has anything to do with the size).
shawn
Posts: 97
Joined: Fri Jun 28, 2024 9:24 am
Full name: Wallace Shawn

Re: Light weight engines

Post by shawn »

Damas Clásicas wrote: Tue Oct 15, 2024 6:19 pm Asmfish (Stockfish compiled on Assembler) is a LOT smaller than those you mentioned. Arround 100-126 KB and even less!
126kb is small, but I doubt it contains an embedded NNUE network like the offical releases.
chesskobra
Posts: 355
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: Light weight engines

Post by chesskobra »

Damas Clásicas wrote: Tue Oct 15, 2024 6:19 pm Asmfish (Stockfish compiled on Assembler) is a LOT smaller than those you mentioned. Arround 100-126 KB and even less!
This is a port of Stockfish 9, isn't it? So it doesn't use NN I believe. Stockfish 11 is also under 1.3 MB.
chesskobra
Posts: 355
Joined: Thu Jul 21, 2022 12:30 am
Full name: Chesskobra

Re: Light weight engines

Post by chesskobra »

ydebilloez wrote: Tue Oct 15, 2024 5:06 pm To throw in some elements: My C++ engine weight is about 425KB on mac (and linux dynamic), because dynamic builds are common. On Linux with static linking, it goes up to 2.4MB. The same on windows with the cross compiler is 1.3MB.... All this uncompressed. Older versions were only 160KB. So it all depends on linker options (largely), compiler optimisation settings (for a tiny part), and 8, 32 or 64 bit target (very small impact). The smallest chess program available is less than 1Kb and you get acceptable play below 5KB program sizes.
Thanks for the link.