unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 73266@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#73266] [PATCH 9/9] gnu: Add python-spacy-curated-transformers.
Date: Sun, 15 Sep 2024 10:57:14 +0200	[thread overview]
Message-ID: <20240915085720.13323-9-ngraves@ngraves.fr> (raw)
In-Reply-To: <20240915085720.13323-1-ngraves@ngraves.fr>

* gnu/packages/machine-learning.scm (python-spacy-curated-transformers): New variable.

Change-Id: Id4b67b2ea2de4745831c3536124304860e9764d8
---
 gnu/packages/machine-learning.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index e80412ed41..3afc224e7c 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -1292,6 +1292,37 @@ (define-public python-sentence-transformers
 models, to achieve maximal performance on your specific task.")
     (license license:asl2.0)))
 
+(define-public python-spacy-curated-transformers
+  (package
+    (name "python-spacy-curated-transformers")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "spacy-curated-transformers" version))
+       (sha256
+        (base32 "1hsqaai666yy9xzj14azli0hgipdkkc5x7xwszh58ndvxsij3dq3"))))
+    (build-system pyproject-build-system)
+    (arguments (list #:tests? #f))  ; Missing python-cupy dependency
+    (propagated-inputs (list python-curated-tokenizers
+                             python-curated-transformers
+                             python-cutlery
+                             python-fsspec
+                             python-pytorch
+                             python-spacy
+                             python-thinc))
+    (home-page "https://github.com/explosion/spacy-curated-transformers")
+    (synopsis "Curated transformer models for spaCy pipelines")
+    (description "This package provides transformer models for @code{spaCy}
+pipelines.  It allows you to use pretrained models based on one of the
+following architectures to power your spaCy pipeline: ALBERT, BERT, CamemBERT,
+RoBERTa, XLM-RoBERTa.  It provides all the features supported by
+spacy-transformers such as support for Hugging Face Hub, multi-task learning,
+the extensible config system and out-of-the-box serialization, as well as deep
+integration into spaCy, which lays the groundwork for deployment-focused
+features such as distillation and quantization.")
+    (license license:expat)))
+
 (define-public python-spacy-legacy
   (package
     (name "python-spacy-legacy")
-- 
2.46.0





      parent reply	other threads:[~2024-09-15  9:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15  8:11 [bug#73266] [PATCH 0/9] Add python-spacy-curated-transformers Nicolas Graves via Guix-patches via
2024-09-15  8:57 ` [bug#73266] [PATCH 1/9] gnu: Add python-azure-storage-file-datalake Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 2/9] gnu: Add python-cloudpathlib Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 3/9] gnu: Add python-weasel Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 4/9] gnu: python-thinc: Update to 8.2.2 Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 5/9] gnu: python-spacy: Update to 3.7.5 Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 6/9] gnu: Add python-cutlery Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 7/9] gnu: Add python-curated-transformers Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` [bug#73266] [PATCH 8/9] gnu: Add python-curated-tokenizers Nicolas Graves via Guix-patches via
2024-09-15  8:57   ` Nicolas Graves via Guix-patches via [this message]

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=20240915085720.13323-9-ngraves@ngraves.fr \
    --to=guix-patches@gnu.org \
    --cc=73266@debbugs.gnu.org \
    --cc=ngraves@ngraves.fr \
    /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).