From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 4Ou/Dx2G3GZPqAAAe85BDQ:P1 (envelope-from ) for ; Sat, 07 Sep 2024 16:58:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4Ou/Dx2G3GZPqAAAe85BDQ (envelope-from ) for ; Sat, 07 Sep 2024 18:58:05 +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=naFm9nSv; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=Pg33ZcPI; 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=1725728285; 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-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=M/gdXunYKSqP4H2+piqrC7ngjEoNNczLZRIZwp1gJQA=; b=gYE9s+lRzer2QF43i1tS9bPJKCSXZL5v003lmS5TCvbd0TeHF0YxVP3pQi9pwzd0oYNOpt fepvg3Lro34LBH7XyuVtBcu45zX4Uw82xb3IoF864NmejH6Fd1T5KLmqjdpND2Qaag2GEV 7ivlRGBhUvYMw3/yDfKylDDaZ58q4/gevZp0AHMWL6SiXAQPZfQWh72BPKScUZrk+lVIsX vg+kZBlW8VzbVGjequUL1d84FYnuexsw11ErXOFBQy8kJAacu7RPue0Bc/6WuV7PszB1ZM 2UQ1Kwh1RXw14E9lrPqz6VyrGOs+AwSznMC2H+4KZ7gmEi1rAe3afSuYxHzWrA== 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=naFm9nSv; dkim=fail ("headers rsa verify failed") header.d=ngraves.fr header.s=ovhmo4487190-selector1 header.b=Pg33ZcPI; 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=1725728285; a=rsa-sha256; cv=none; b=rDLTMq+ZapIbSR8Xe2EAutSusPfzTkUDKx18VAbd5NdKbWuB9hlOXmIA6oQbiXi/+/XG2j H5BsIG8eXlhdoJuSZ2uaU2ISoOHQoH6ofTvF+dhB/PzwXaYWC2er5iva4vLVM48yCFadI3 wgsGcKk7OtpqyFLwvw7KhZlj2fPx+aujY5GmtYsrSTQXlgrW4DSuK5tF7Vm058ep/4njgT oY7DnHjelLkmLwveCkT5vZkpxcOmFC/RxLrTMb6wOLqScDd7d5OiNkbRCVCQA5pkZbtMte PA1hGzjqvccX9C5NMZQrd4gqe6fdhS5G9HxCX3PcmCIG0/o5CpK3BqU7BgY+Ew== 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 9F3F832FA4 for ; Sat, 07 Sep 2024 18:58:04 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smyl7-0001xr-T5; Sat, 07 Sep 2024 12:58:01 -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 1smyl7-0001xR-3L for guix-patches@gnu.org; Sat, 07 Sep 2024 12:58:01 -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 1smyl6-0001kU-RB for guix-patches@gnu.org; Sat, 07 Sep 2024 12:58:00 -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=M/gdXunYKSqP4H2+piqrC7ngjEoNNczLZRIZwp1gJQA=; b=naFm9nSv7zmIWYLK1V2B1tiy/e+j+Ft838AHne31u2iEVvq7gxQ5uYZUGuwCFXVGfUS3jOUZ0oV0CYAH8a4siP/SkMv6u+iG4cC+jHb5jf/oG5xuV0N4s0VWZVM8SurqDCvNSfcdJLpuYxuGoo1njpAu7Edl6fGFMmPKUzhvOW0lhwK7mfOeMQhWdlY2DmWzka8TD8fzi3dTa3DkzkOYG6mqzK/mF4GQxNLoHAN9Z6dVvx54OKVySkcovMsqeQYpxcgZxMGBDjslu371hanGQVHkRiJ8ynwj0703fGnT9ui0z0j0fX0iDtm5cuhTS1Wh5JamUq5B/YrFHBpjuEGwdw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smyl7-0007yy-Pi for guix-patches@gnu.org; Sat, 07 Sep 2024 12:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73109] [PATCH 2/2] gnu: Add python-transformers. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Sep 2024 16:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73109 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73109@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 73109-submit@debbugs.gnu.org id=B73109.172572823330591 (code B ref 73109); Sat, 07 Sep 2024 16:58:01 +0000 Received: (at 73109) by debbugs.gnu.org; 7 Sep 2024 16:57:13 +0000 Received: from localhost ([127.0.0.1]:57471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smykL-0007xK-DF for submit@debbugs.gnu.org; Sat, 07 Sep 2024 12:57:13 -0400 Received: from 14.mo550.mail-out.ovh.net ([178.32.97.215]:42673) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smykJ-0007x7-8H for 73109@debbugs.gnu.org; Sat, 07 Sep 2024 12:57:12 -0400 Received: from director8.ghost.mail-out.ovh.net (unknown [10.108.17.234]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4X1K5K0Rzyz1Rml for <73109@debbugs.gnu.org>; Sat, 7 Sep 2024 16:57:09 +0000 (UTC) Received: from ghost-submission-55b549bf7b-bvfjf (unknown [10.110.178.140]) by director8.ghost.mail-out.ovh.net (Postfix) with ESMTPS id C59641FE80; Sat, 7 Sep 2024 16:57:08 +0000 (UTC) Received: from ngraves.fr ([37.59.142.108]) by ghost-submission-55b549bf7b-bvfjf with ESMTPSA id d1pcJuSF3GbVwQkAZ4vtfQ (envelope-from ); Sat, 07 Sep 2024 16:57:08 +0000 X-OVh-ClientIp: 81.67.146.208 Date: Sat, 7 Sep 2024 18:56:55 +0200 Message-ID: <20240907165703.23229-2-ngraves@ngraves.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240907165703.23229-1-ngraves@ngraves.fr> References: <20240907165703.23229-1-ngraves@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 9648117777620525794 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudeifedguddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdffheegkefhkefggfelheffteeigfegiedtudetkeffhfekheevjeefjeeltdeinecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeefuddtleesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtddpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=M/gdXunYKSqP4H2+piqrC7ngjEoNNczLZRIZwp1gJQA=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1725728229; v=1; b=Pg33ZcPItKX8o9EfRRnOkVBo6jzjtgnbfnkQo/8DiswKRr0Pg8+bRo+PbwlkuGuVOO73ubYm q7ncSJ7mW3aAMeiE3I9hmfnRi292iKm56sYYZAEkE6ZxB8kze5lEhTdgIat2nqBtPFHH49AqNPF 1TOrXX+nxpyJRxPsq22RUJL6/jOHGIOr2bOwPkuzMoNGL1/+J1gUOpEJD5E78BXH+pGcMF9lqlC Y1eHKUOOZDW5ArrOe8YlmUUOTDoijX+hGk0EzJVMZCTm2/ucOXCpWXnjADB5qwJ9kqCy5prsvox CtNIbNUb/Yy9xqFqNKeBIfhnlK54QOcuVD97QavZoApAQ== 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.99 X-Migadu-Queue-Id: 9F3F832FA4 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.99 X-TUID: AiFZFgJ7eOvy * gnu/packages/machine-learning.scm (python-transformers): New variable. Change-Id: Ifd7fa3a0f4611d3298ab76ceb44b3aea1397b824 --- gnu/packages/machine-learning.scm | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 412499d424..42842d7d61 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5846,6 +5846,66 @@ (define-public python-tokenizers tokenizers, @code{rust-tokenizers}.") (license license:asl2.0))) +(define-public python-transformers + (package + (name "python-transformers") + (version "4.44.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "transformers" version)) + (sha256 + (base32 "09h84wqqk2bgi4vr9d1m3dsliard99l53n96wic405gfjb61gain")))) + (build-system pyproject-build-system) + ;; The imported package contains ~60 more inputs, but they don't seem + ;; necessary to build a minimal version of the package. + (propagated-inputs + (list python-filelock + python-huggingface-hub + python-numpy + python-pytorch + python-pyyaml + python-regex + python-requests + python-safetensors + python-tokenizers + python-tqdm + tensorflow)) + (home-page "https://github.com/huggingface/transformers") + (synopsis "Machine Learning for PyTorch and TensorFlow") + (description + "This package provides easy download of thousands of pretrained models to +perform tasks on different modalities such as text, vision, and audio. + +These models can be applied on: +@itemize +@item Text, for tasks like text classification, information extraction, +question answering, summarization, translation, and text generation, in over +100 languages. +@item Images, for tasks like image classification, object detection, and +segmentation. +@item Audio, for tasks like speech recognition and audio classification. +@end itemize + +Transformer models can also perform tasks on several modalities combined, such +as table question answering, optical character recognition, information +extraction from scanned documents, video classification, and visual question +answering. + +This package provides APIs to quickly download and use those pretrained models +on a given text, fine-tune them on your own datasets and then share them with +the community on our model hub. At the same time, each python module defining +an architecture is fully standalone and can be modified to enable quick +research experiments. + +Transformers is backed by the three most popular deep learning libraries — +Jax, PyTorch and TensorFlow — with a seamless integration between them. It's +straightforward to train your models with one before loading them for +inference with the other. + +Note: This version doesn't support integration with JAX.") + (license license:asl2.0))) + (define-public python-hmmlearn (package (name "python-hmmlearn") -- 2.45.2