From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2MoMKGqq5maZWgAA62LTzQ:P1 (envelope-from ) for ; Sun, 15 Sep 2024 09:35:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2MoMKGqq5maZWgAA62LTzQ (envelope-from ) for ; Sun, 15 Sep 2024 11:35:38 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="h/KoZ/Vx"; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=YvWr08lI; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726392938; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=umySX8TF6T38lRUUnv268S7y4Ma+lFckxQaffh7bC8w=; b=VX6HWcviKhRT79+3ItiXa5GCgA1Gakv1/hhicnB1DvPlWakcPHwUlmEv3kD/2YLa5J+LyH S7EA3KrDpKca03EuscdcpLgPV7ll4xhCRnRd35CG0/8plI8qZpHAk5Rm4MXMJvDgELjP6O OU9EmgEbNNdH6hyffYiQfMCNEbjL94xwU9Gs1eAH3G3N0NSXZvIirCtk7+jdxDmujB1LkT gqNS+c+dFh3AI8JXB+AfMooC76noJI38cu1DiKcgiaDHN/3ZtFvn4Wjv/c/K6nx0K34nBp f2e/lM+QxI6FD9Vkiz54YLEtbEJGUTIttIhisEbWqRAj+gvzs24t790BwuomaQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="h/KoZ/Vx"; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=YvWr08lI; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726392938; a=rsa-sha256; cv=none; b=W2IdP+uMBlG7fR1GKG6UYDP83zLhoFrVa2DKYZ1chU1AOgeyJIYEm6U5AoF+NA8XfWMwQK lLKd430hW86wlIP5znxICwyqt/cKTKj00NAvgUoKWl2C75x8srSQiIiw+nL1aQ62PVDwqo iV+p2CfjQAgo6wmu2vjiAoygCPAWotmZZcHn/mSMnBmhNL9iwd1W+LZBLhagoIzDunPb9s +YwKzF4pj2X7/z4n9rmk2Sfba6T8qQa1vSU/xRP+d1fCerycKmVnGfJMkkKz93yW2eOOPB FrZ+63nZrxfxMUu66RBKboSjsj09rESpnKJnfijiRA/sZD+Ebpcmt8b/wOQIig== 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 59627CFD3 for ; Sun, 15 Sep 2024 11:35:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spl4t-0006t0-9C; Sun, 15 Sep 2024 04:57:55 -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 1spl4r-0006rb-A4 for guix-patches@gnu.org; Sun, 15 Sep 2024 04:57:53 -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 1spl4q-0005Le-W0 for guix-patches@gnu.org; Sun, 15 Sep 2024 04:57:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=umySX8TF6T38lRUUnv268S7y4Ma+lFckxQaffh7bC8w=; b=h/KoZ/Vxuoyuc6iY/kbsTN4XW1SUoJUQ8XSN+d8qU2d6mji+xeQ6hyGleM+LVJLlPIJEZ2+86qhqvjdOknEGqwPeWkGnIEvc70UwNkdis2xw/0+r+opi2QaItpIKKsdN/8wq459QOHTllox8eyQCaZXGxWaMjQdNZj3DkajyuSaxSrzu5whc5olie4DKvdKLzw6Ag9cWitMCTQJ5JWf8y0qaylB2kMC616Sj8qT+qqL4cf5z5ZdJ4DvXSKBMB75nsdfJq5l63DtfRAqW+bsyrkwXK4Jp0wglc0LxaXg/rhbiByfxAZn6n4MgsbMoFcC3RABfk7qALR7mV+nSOAvqaw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1spl52-0005wN-JT for guix-patches@gnu.org; Sun, 15 Sep 2024 04:58:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73266] [PATCH 6/9] gnu: Add python-cutlery. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Sep 2024 08:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73266 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73266@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 73266-submit@debbugs.gnu.org id=B73266.172639066622750 (code B ref 73266); Sun, 15 Sep 2024 08:58:04 +0000 Received: (at 73266) by debbugs.gnu.org; 15 Sep 2024 08:57:46 +0000 Received: from localhost ([127.0.0.1]:48398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spl4j-0005ub-JO for submit@debbugs.gnu.org; Sun, 15 Sep 2024 04:57:46 -0400 Received: from 16.mo583.mail-out.ovh.net ([87.98.174.144]:39693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1spl4f-0005ti-76 for 73266@debbugs.gnu.org; Sun, 15 Sep 2024 04:57:42 -0400 Received: from director2.ghost.mail-out.ovh.net (unknown [10.108.17.160]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4X6248342Rz1LWh for <73266@debbugs.gnu.org>; Sun, 15 Sep 2024 08:57:28 +0000 (UTC) Received: from ghost-submission-55b549bf7b-xmkv6 (unknown [10.111.182.36]) by director2.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 3ADD81FD86; Sun, 15 Sep 2024 08:57:28 +0000 (UTC) Received: from ngraves.fr ([37.59.142.102]) by ghost-submission-55b549bf7b-xmkv6 with ESMTPSA id ikw3Nneh5maClh8AKjo5VA (envelope-from ); Sun, 15 Sep 2024 08:57:28 +0000 X-OVh-ClientIp: 86.246.19.221 Date: Sun, 15 Sep 2024 10:57:11 +0200 Message-ID: <20240915085720.13323-6-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240915085720.13323-1-ngraves@ngraves.fr> References: <20240915085720.13323-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 11635049640613438178 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudekfedgtdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkeeirddvgeeirdduledrvddvuddpfeejrdehledrudegvddruddtvdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeefvdeiieesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=umySX8TF6T38lRUUnv268S7y4Ma+lFckxQaffh7bC8w=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1726390648; v=1; b=YvWr08lItfppNAG94eDQZ0o7IPwAe+e1+2XTHiPTNGogOHSCAS3X09bNWRXtxm9+bsGt1Df1 eoZCpviWbX5af0WshqDlcwnh+JPVh6Do5Lr+1O43l0wBfUE74SGM9IsL22gaZhLtCyZPGU/gxiJ WIWUCxB/+gVGMR8nDj/w2OfI93iAuD+MuYx6spe4Pc2X2V5C8x9e7ncZgf1yp2zAghySXDoTj0c egqf6Th8fPPdXpMq/mzJDf9WIr8jkKVOHauclbOnG8gDVXe82ow4TBcFOgBY3mvq4MM2wVE5gSu 7Ru0ks2M0v7gGEPkFtGFf/HJbmZtCrPzS5/GZr1CvF7Rg== 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via 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: -4.41 X-Spam-Score: -4.41 X-Migadu-Queue-Id: 59627CFD3 X-Migadu-Scanner: mx10.migadu.com X-TUID: 1fgpEGdMa5YG * gnu/packages/machine-learning.scm (python-cutlery): New variable. Change-Id: I5304205737330850ce84a49df814b96a4d605699 --- gnu/packages/machine-learning.scm | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 008bf2060a..89fcd3c1b7 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -2442,6 +2442,44 @@ (define-public python-cmaes Covariance Matrix Adaptation Evolution Strategy (CMA-ES) for Python.") (license license:expat))) +(define-public python-cutlery + (package + (name "python-cutlery") + (version "0.0.6") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cutlery" version)) + (sha256 + (base32 "1l5jv0mkmvzlmglz61py6f4inil2iwgh1ap8881cyb6k7hnnccc9")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + ;; For some reason when both local and installed exist, + ;; local is chosen and is missing shared libraries. + ;; Use installed version to run tests instead. + (add-before 'check 'pre-check + (lambda* (#:key tests? inputs outputs #:allow-other-keys) + (when tests? + (copy-recursively "cutlery/tests" "tests") + (delete-file-recursively "cutlery") + (add-installed-pythonpath inputs outputs))))))) + (propagated-inputs (list python-regex)) + (native-inputs (list python-cython python-pytest)) + (home-page "https://github.com/explosion/curated-tokenizers") + (synopsis "Lightweight piece tokenization library") + (description "This package provides a lightweight wordpiece and +sentencepiece tokenization library. It supports multiple tokenizers: +@itemize +@item BPE +@item Byte BPE +@item Unigram +@item Wordpiece +@end itemize") + (license license:expat))) + (define-public python-autograd (let* ((commit "c6d81ce7eede6db801d4e9a92b27ec5d409d0eab") (revision "0") -- 2.46.0