summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-04-16 03:12:09 +0000
committerCoprDistGit <infra@openeuler.org>2024-04-16 03:12:09 +0000
commit8ebd34e52543c91103065cb6b0f392aee3a69fa2 (patch)
treeef6ef0ba248b99d97df890868c38944ab1ec8adb
parent943ae339c2df4334c8585c398f48592c17869953 (diff)
automatic import of colossalai
-rw-r--r--.gitignore1
-rw-r--r--colossalai.spec71
-rw-r--r--sources1
3 files changed, 73 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..654162d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v0.3.6.tar.gz
diff --git a/colossalai.spec b/colossalai.spec
new file mode 100644
index 0000000..9e10dd2
--- /dev/null
+++ b/colossalai.spec
@@ -0,0 +1,71 @@
+%global _empty_manifest_terminate_build 0
+%global _unpackaged_files_terminate_build 0
+
+# using global macro to speed up the spec editing
+%global pkg_name colossalai
+%global version 0.3.6
+%global pkg_summary %{expand:ColossalAI is a PyTorch-based library for large-scale training of deep learning models.}
+%global pkg_desc %{expand:%{pkg_summary}}
+%global open_license Apache-2.0
+
+Name: %{pkg_name}
+Version: %{version}
+Release: 1
+Summary: %{pkg_summary}
+License: %{open_license}
+
+# the url and source0 url here
+URL: https://www.colossalai.org/
+Source0: https://github.com/hpcaitech/ColossalAI/archive/refs/tags/v0.3.6.tar.gz
+
+# build requires
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-hatchling
+BuildRequires: python3-setuptools_scm
+
+BuildRequires: python-pytorch
+
+# higharchy desc
+%description
+%{pkg_summary}
+
+# sub pkg section 1
+%package -n python3-%{pkg_name}
+Summary: %{pkg_summary}
+
+%description -n python3-%{pkg_name}
+%{pkg_desc}
+
+# pkg section: help optional
+# %package -n help
+# Summary: docs for the transformers
+# Provides: python3-transformers-doc
+# %description -n help
+# description for the doc of the python3-transformers
+
+# the name here should match the name of the dir of the source code zip
+# which got from the .tar.gz unzipped
+%prep
+%autosetup -p1 -n ColossalAI-%{version}
+
+# using python poject build, supplied by setup.py or pyproject.toml
+%build
+%pyproject_build
+
+# using python project install, supplied by setup.py or pyproject.toml
+%install
+%pyproject_install
+
+# point out the files here
+%files -n python3-%{pkg_name}
+%doc *.md
+%license LICENSE*
+%{python3_sitelib}/%{pkg_name}*
+
+
+%changelog
+* Mon Apr 15 2024 youser<1328699220@qq.com>
+- pkg init
diff --git a/sources b/sources
new file mode 100644
index 0000000..40303fb
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5954209324067405ea6f8010d269ff25 v0.3.6.tar.gz