summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-17 03:44:48 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-17 03:44:48 +0000
commit05bd637049433948d715511368fae5ab05011198 (patch)
tree9e67bc93ad017a0433b008527e9f00d953667daa
parent041a05a39649e625c523a11b041d6e99eef0cf16 (diff)
automatic import of deepspeed
-rw-r--r--.gitignore1
-rw-r--r--deepspeed.spec110
-rw-r--r--sources2
3 files changed, 52 insertions, 61 deletions
diff --git a/.gitignore b/.gitignore
index a119ff9..b70e95f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/v0.8.0.tar.gz
+/DeepSpeed-0.14.0.tar.gz
diff --git a/deepspeed.spec b/deepspeed.spec
index 2e0a86c..948a7c4 100644
--- a/deepspeed.spec
+++ b/deepspeed.spec
@@ -1,60 +1,50 @@
-%global commit 0.8.0
-%global shortcommit %(c=%{commit}; echo ${c:0:7})
-
-Name: deepspeed
-Version: 0.8.0
-Release: 1%{?dist}
-Summary: DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.
-
-License: MIT
-URL: https://www.deepspeed.ai/
-Source0: https://github.com/microsoft/DeepSpeed/archive/v%{version}.tar.gz
-
-BuildRequires: gcc
-BuildRequires: gcc-c++
-BuildRequires: cmake
-BuildRequires: python3-devel
-BuildRequires: python3-numpy
-BuildRequires: python3-scipy
-BuildRequires: python3-scikit-learn
-BuildRequires: python3-matplotlib
-BuildRequires: python3-setuptools
-BuildRequires: python3-pip
-BuildRequires: python3-wheel
-BuildRequires: python3-pytorch
-BuildRequires: python3-six
-BuildRequires: python3-tqdm
-BuildRequires: python3-requests
-BuildRequires: python3-yaml
-BuildRequires: python3-regex
-BuildRequires: python3-psutil
-BuildRequires: python3-typing-extensions
-BuildRequires: python3-future
-BuildRequires: python3-filelock
-BuildRequires: python3-importlib-metadata
-BuildRequires: python3-packaging
-BuildRequires: python3-dataclasses
-
-%description
-DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.
-It was developed by Microsoft Research and is widely used in the AI community.
-
-%global debug_package %{nil}
-
-%prep
-%autosetup -n DeepSpeed-%{commit}
-
-%build
-export DEEPSPEED_BUILD_VERSION=%{version}
-export DEEPSPEED_BUILD_NUMBER=1
-python3 setup.py bdist_wheel
-
-%install
-%py3_install
-
-%files
-%{python3_sitelib}/*
-
-%changelog
-* Sat Apr 15 2024 weilaijishu - 0.8.0-1
-- Updated to version 0.8.0
+%global _empty_manifest_terminate_build 0
+%global _unpackaged_files_terminate_build 0
+
+Name: deepspeed
+Version: 0.14.0
+Release: 1
+Summary: DeepSpeed is a deep learning optimization library
+License: BSD
+
+# the url and source0 url here
+URL: https://www.deepspeed.ai/
+Source0: https://github.com/microsoft/DeepSpeed/archive/refs/tags/v%{version}.tar.gz#/DeepSpeed-%{version}.tar.gz
+
+BuildRequires: g++
+BuildRequires: cmake
+BuildRequires: ninja-build
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+BuildRequires: python3-setuptools_scm
+BuildRequires: python3-pytorch
+
+%description
+DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.
+
+%package -n python3-deepspeed
+Summary: %{pkg_summary}
+
+%description -n python3-deepspeed
+DeepSpeed is a deep learning optimization library that makes distributed training easy, efficient, and effective.
+
+%prep
+%autosetup -p1 -n DeepSpeed-%{version}
+
+%build
+%pyproject_build
+
+%install
+%pyproject_install
+
+%files -n python3-deepspeed
+%doc *.md
+%license LICENSE*
+%{python3_sitelib}/deepspeed*
+
+%changelog
+* Mon Apr 15 2024 chelsey<20011128@gmail.com>
+- Initial packaged
diff --git a/sources b/sources
index b74f67a..c8a9d90 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-053d41fda93b477c08f4c41ef69177b3 v0.8.0.tar.gz
+57c4eec4938cb73e4983bab3ea5f9e3a DeepSpeed-0.14.0.tar.gz