From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IDDOHYwVAWXvdwEA9RJhRA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 03:51:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IDDOHYwVAWXvdwEA9RJhRA (envelope-from ) for ; Wed, 13 Sep 2023 03:51:09 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CD4E659208 for ; Wed, 13 Sep 2023 03:51:07 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=VwRixC4P; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694569868; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=RhnTptyrdrIPO2ycWTb9DIjUUIatKZuKLPG0O0Hvdjc=; b=n2xBShkTOL2TH6ZNdaRcT7T/TW/5Me00ztQ1nbm7CtnF5i4CCq2JT5vINfwNEuGos/h8nv a8hDm3n5v3+jETkNInThg7Gsqz6OGQ70LvHta28Yk5OPLmJOdSB1SE+kH7Qwl/t8QHvzX1 Ldcisdk0VZsqDmk7K8q73axDPo3bvCq7rGZFocE+nZ5oLzkJZ6qC1iKGvA+ZJBTxCjVSz4 vvAd7ZJs1bFJN/W+XV7FipISQa/yS3qJFEUsNOXUGyrQ7apvWOsjamvGoCk00g86f3ApfQ DEx1At+K2lRST7U1NEv9F7P7qEyV6NNRm2PjBVNdKhuDRQ3pKVlizEiszIB8lA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694569868; a=rsa-sha256; cv=none; b=bYX6U/Dw+s7oO7V5Jlrte3dZKISl0S0YFVeN7lotW/JA/9SQK4T/EuUptJ+G8wa0968krc JxcB8A291/vNonsuhF3Jwm2v5HuRiTsrypr3JOWjGXjs+0KCfNu7diL4H4oIowPu/io/8R D4F+o3esruysY/8mRa1BA53WmnSNSiwSiSxLmemBuCxKWPg5+V93VUcwU/wBA3nLTY/zLa nE3UWs+BXnRVQuxsI3GYLE5sPQqTq6q7HMVEIFxyhCpjWeZTfS6LCSfDzoaw2UDAEzyADe s+WehrVOE8r/RYe0eNjveqnFul91cVxkz+tqauWP+xREvSjPXeBIOSn77t3dWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=VwRixC4P; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgF1w-0005e7-CZ; Tue, 12 Sep 2023 21:51:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgF1v-0005dq-5Z for guix-patches@gnu.org; Tue, 12 Sep 2023 21:50:59 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgF1t-0005Ks-HM for guix-patches@gnu.org; Tue, 12 Sep 2023 21:50:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgF1y-0007NA-Er for guix-patches@gnu.org; Tue, 12 Sep 2023 21:51:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63088] [PATCH 3/3] gnu: Add neural networks from the Maia Chess project. Resent-From: zamfofex Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 01:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63088 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63088@debbugs.gnu.org Cc: zamfofex , liliana.prikler@gmail.com Received: via spool by 63088-submit@debbugs.gnu.org id=B63088.169456982628279 (code B ref 63088); Wed, 13 Sep 2023 01:51:02 +0000 Received: (at 63088) by debbugs.gnu.org; 13 Sep 2023 01:50:26 +0000 Received: from localhost ([127.0.0.1]:60372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgF1N-0007M2-KF for submit@debbugs.gnu.org; Tue, 12 Sep 2023 21:50:26 -0400 Received: from mta-12-4.privateemail.com ([198.54.127.107]:30337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgF1L-0007LW-Av for 63088@debbugs.gnu.org; Tue, 12 Sep 2023 21:50:23 -0400 Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id 90EC118000AF; Tue, 12 Sep 2023 21:50:12 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=twdb.moe; s=default; t=1694569812; bh=Azqx/ArMU9N+WmBkBlVhraaafjF9IANS7uoi1cibvc0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VwRixC4PU8ulOuQ3IMJzrZVVkQaYNPePOrd4bSe3Wkoq8rofyU+/pd961jUF6fbvJ he65SIMoAoqoEx2V0XxmoSkA7AhEZHt1wZfeafodxVVF3SZgPGnUtInQ8mUgME0h8w 8YfR3KR1xyhdrF/8bYFLQLaly4Yd0f+YsfwTrE6McdH7Uru0dlHypD7QsEO2bfgYGe zNJSORHWn+zcbMXwOGRSS/ND0mXRW7Sq1s+Pm0QX9RWTeZnl3HQzLf2IsTQCrbGaVE mf3KdJ2wojYvXj+WlHC2gQe6U7YlOPamjAhDLC4OQeVNnMmdxI3GJs73Q3mLdtmIaI 4vgfLgq/+dfnA== Received: from localhost.localdomain (unknown [189.35.108.242]) by mta-12.privateemail.com (Postfix) with ESMTPA; Tue, 12 Sep 2023 21:50:08 -0400 (EDT) From: zamfofex Date: Tue, 12 Sep 2023 22:49:41 -0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.28 X-Spam-Score: -5.28 X-Migadu-Queue-Id: CD4E659208 X-Migadu-Scanner: mx0.migadu.com X-TUID: r8j3rIVOG9+X * 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 f49d71538e..abbac73ce7 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) @@ -153,3 +154,57 @@ (define-public lc0-815383 "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