From: zamfofex <zamfofex@twdb.moe>
To: 63088@debbugs.gnu.org
Cc: zamfofex <zamfofex@twdb.moe>,
iyzsong@member.fsf.org, liliana.prikler@gmail.com,
iyzsong@envs.net
Subject: [bug#63088] [PATCH 3/3] gnu: Add neural networks from the Maia Chess project.
Date: Tue, 12 Sep 2023 08:58:13 -0300 [thread overview]
Message-ID: <b93e960c939063736be886813ef9fe6257eb81fe.1694519893.git.zamfofex@twdb.moe> (raw)
In-Reply-To: <e1d63918a715887aaf29000cc47d5640e8ed4176.1694519893.git.zamfofex@twdb.moe>
* gnu/packages/lc0.scm (make-lc0-maia): New procedure.
* gnu/packages/lc0.scm (lc0-maia-1100, lc0-maia-1200, lc0-maia-1300)
(lc0-maia-1400, lc0-maia-1500, lc0-maia-1600, lc0-maia-1700)
(lc0-maia-1800, lc0-maia-1900): New variables.
---
gnu/packages/lc0.scm | 55 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
diff --git a/gnu/packages/lc0.scm b/gnu/packages/lc0.scm
index 1cda2efd1c..495d93b110 100644
--- a/gnu/packages/lc0.scm
+++ b/gnu/packages/lc0.scm
@@ -18,6 +18,7 @@
(define-module (gnu packages lc0)
#:use-module (guix build utils)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system meson)
#:use-module (guix build-system trivial)
#:use-module (guix download)
@@ -145,3 +146,57 @@ (define-public lc0-815383
"https://storage.lczero.org/files/networks/8af6098d6fb76e2bef6ef9ee87e61fadcb99f0b789013a72953a95ad10a9e933"
"09gm8lgaick60rn4x9h9w5sxdqivr4ign73viviadw1gj7wsbnsg"
"This is an official neural network of a “main run” of the Leela Chess Zero project. The network was finished being trained in September of 2023."))
+
+(define (make-lc0-maia rating)
+ (package
+ (name (string-append "lc0-maia-" rating))
+ (version "1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/CSSLab/maia-chess")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name "maia" version))
+ (sha256
+ (base32
+ "0qjkp56pb5vvkr3j1vdsdzligvy7faza917z7vdfmf168pkvrxsr"))))
+ (build-system copy-build-system)
+ (arguments
+ `(#:install-plan '((,(string-append "model_files/" rating "/final_"
+ rating "-40.pb.gz") ,(string-append
+ "share/lc0/maia-"
+ rating ".pb.gz")))))
+ (synopsis "Human-like neural network for Leela Chess Zero")
+ (description
+ "Maia’s goal is to play the human move — not necessarily the best move.
+As a result, Maia has a more human-like style than previous engines, matching
+moves played by human players in online games over 50% of the time.")
+ (home-page "https://maiachess.com")
+ (license license:gpl3)))
+
+(define-public lc0-maia-1100
+ (make-lc0-maia "1100"))
+
+(define-public lc0-maia-1200
+ (make-lc0-maia "1200"))
+
+(define-public lc0-maia-1300
+ (make-lc0-maia "1300"))
+
+(define-public lc0-maia-1400
+ (make-lc0-maia "1400"))
+
+(define-public lc0-maia-1500
+ (make-lc0-maia "1500"))
+
+(define-public lc0-maia-1600
+ (make-lc0-maia "1600"))
+
+(define-public lc0-maia-1700
+ (make-lc0-maia "1700"))
+
+(define-public lc0-maia-1800
+ (make-lc0-maia "1800"))
+
+(define-public lc0-maia-1900
+ (make-lc0-maia "1900"))
--
2.41.0
next prev parent reply other threads:[~2023-09-12 11:59 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-26 13:13 [bug#63088] [PATCH 0/3] Add Lc0 zamfofex
2023-04-26 13:17 ` [bug#63088] [PATCH 1/3] gnu: Add ISPC. * gnu/packages/c.scm (ispc): New variable zamfofex
2023-04-26 13:17 ` [bug#63088] [PATCH 2/3] gnu: Add oneDNN. * gnu/packages/machine-learning.scm (oneapi-dnnl): " zamfofex
2023-04-26 13:17 ` [bug#63088] [PATCH 3/3] gnu: Add Lc0. * gnu/packages/games.scm (lc0): " zamfofex
2023-05-11 14:29 ` [bug#63088] [PATCH 0/3] Add Lc0 宋文武 via Guix-patches via
2023-05-11 21:25 ` zamfofex
2023-05-16 12:16 ` Simon Tournier
2023-07-27 23:34 ` [bug#63088] [PATCH] " zamfofex
2023-07-28 0:24 ` zamfofex
2023-07-28 4:23 ` Liliana Marie Prikler
2023-07-28 18:14 ` zamfofex
2023-09-07 10:23 ` [bug#63088] [PATCH v2] gnu: " iyzsong--- via Guix-patches via
2023-09-07 17:03 ` Liliana Marie Prikler
2023-09-11 10:22 ` zamfofex
2023-09-11 18:00 ` Liliana Marie Prikler
2023-09-12 11:58 ` [bug#63088] [PATCH 1/3] gnu: Add lc0 zamfofex
2023-09-12 11:58 ` [bug#63088] [PATCH 2/3] gnu: Add neural networks for Leela Chess Zero zamfofex
2023-09-12 17:07 ` Liliana Marie Prikler
2023-09-12 11:58 ` zamfofex [this message]
2023-09-13 1:49 ` [bug#63088] [PATCH 1/3] gnu: Add lc0 zamfofex
2023-09-13 1:49 ` [bug#63088] [PATCH 2/3] gnu: Add neural networks for Leela Chess Zero zamfofex
2023-09-13 1:49 ` [bug#63088] [PATCH 3/3] gnu: Add neural networks from the Maia Chess project zamfofex
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b93e960c939063736be886813ef9fe6257eb81fe.1694519893.git.zamfofex@twdb.moe \
--to=zamfofex@twdb.moe \
--cc=63088@debbugs.gnu.org \
--cc=iyzsong@envs.net \
--cc=iyzsong@member.fsf.org \
--cc=liliana.prikler@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).