diff options
author | CoprDistGit <infra@openeuler.org> | 2024-03-31 02:04:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-03-31 02:04:13 +0000 |
commit | 1184fa3ca2e957dae0013bc2da7e0a3fadd4b0d8 (patch) | |
tree | 1a45c4b083589def60226465566af2c5a761e653 | |
parent | 1600c4f7079abd67920dcbfbc0e835d66076b537 (diff) |
automatic import of transformers
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | sources | 1 | ||||
-rw-r--r-- | transformers.spec | 64 |
3 files changed, 66 insertions, 0 deletions
@@ -0,0 +1 @@ +/v4.39.0.tar.gz @@ -0,0 +1 @@ +ee67a15fa896751c244882aefd446a8d v4.39.0.tar.gz diff --git a/transformers.spec b/transformers.spec new file mode 100644 index 0000000..9e898fd --- /dev/null +++ b/transformers.spec @@ -0,0 +1,64 @@ +%define _unpackaged_files_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 + +Requires: python3-filelock +Requires: python3-packaging +Requires: python3-numpy +Requires: python3-pyyaml +Requires: python3-regex +Requires: python3-requests +Requires: python3-safetensors +Requires: python3-tqdm + +%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. + + +# pkg section 1 +%package -n python3-transformers +Summary: a python3-lib provides transformers functionality +Provides: python3-transformers +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description -n python3-transformers +python3-transformers provides APIs for transformers realize. + +# pkg section 2 +%package -n help +Summary: docs for the transformers +Provides: python3-transformers-doc + +%description -n help +description for the doc of the python3-transformers + +%prep +%autosetup -p1 -n transformers-%{version} + +%build +%pyproject_build + +%install +# rm -rf $RPM_BUILD_ROOT +%pyproject_install + +%files -n python3-transformers +%doc *.md +%license LICENSE +%{_bindir}/transformers-cli +%{python3_sitelib}/transformers/* +%{python3_sitelib}/transformers-%{version}.dist-info/* + + +%changelog +* Sat Mar 30 2024 youser<1328699220@qq.com> +- pkg init |