summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-03-31 02:26:14 +0000
committerCoprDistGit <infra@openeuler.org>2024-03-31 02:26:14 +0000
commit31b4a0d852882625bee82ea1d165a2fa9639c0df (patch)
tree92da5c810cacc265e5ac35928a52ccda51330eb9
parent1184fa3ca2e957dae0013bc2da7e0a3fadd4b0d8 (diff)
automatic import of transformers
-rw-r--r--transformers.spec11
1 files changed, 6 insertions, 5 deletions
diff --git a/transformers.spec b/transformers.spec
index 9e898fd..3b217e4 100644
--- a/transformers.spec
+++ b/transformers.spec
@@ -1,12 +1,13 @@
-%define _unpackaged_files_terminate_build 0
+%global _empty_manifest_terminate_build 0
Name: transformers
Version: 4.39.0
Release: 1%{?dist}
Summary: Transformers provides thousands of pretrained models to perform tasks on different modalities.
License: Apache-2.0
URL: https://huggingface.co/docs/transformers/index
-Source0: https://github.com/huggingface/transformers/archive/refs/tags/v4.39.0.tar.gz
+Source0: https://github.com/huggingface/%{name}/archive/refs/tags/v%{version}.tar.gz
+Requires: python3-pytorch
Requires: python3-filelock
Requires: python3-packaging
Requires: python3-numpy
@@ -15,6 +16,8 @@ Requires: python3-regex
Requires: python3-requests
Requires: python3-safetensors
Requires: python3-tqdm
+Requires: python3-tokenizers
+Requires: python3-huggingface-hub
%description
transformers is a popular library for natural language processing (NLP) tasks, especially in the domain of transfer learning for NLP. The transformers library provides pre-trained models (such as BERT, GPT, RoBERTa, etc.) that can be easily fine-tuned on custom datasets for tasks like text classification, question answering, text generation, and more.
@@ -29,7 +32,7 @@ BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
-
+BuildRequires: python3-setuptools_scm
%description -n python3-transformers
python3-transformers provides APIs for transformers realize.
@@ -37,7 +40,6 @@ python3-transformers provides APIs for transformers realize.
%package -n help
Summary: docs for the transformers
Provides: python3-transformers-doc
-
%description -n help
description for the doc of the python3-transformers
@@ -56,7 +58,6 @@ description for the doc of the python3-transformers
%license LICENSE
%{_bindir}/transformers-cli
%{python3_sitelib}/transformers/*
-%{python3_sitelib}/transformers-%{version}.dist-info/*
%changelog