summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-accelerate/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-accelerate/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-accelerate/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-accelerate/package.py b/var/spack/repos/builtin/packages/py-accelerate/package.py
new file mode 100644
index 0000000000..3456c55ac2
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-accelerate/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PyAccelerate(PythonPackage):
+ """A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision."""
+
+ homepage = "https://github.com/huggingface/accelerate"
+ pypi = "accelerate/accelerate-0.16.0.tar.gz"
+
+ version("0.16.0", sha256="d13e30f3e6debfb46cada7b931af85560619b6a6a839d0cafeeab6ed7c6a498d")
+
+ depends_on("py-setuptools", type="build")
+ depends_on("py-numpy@1.17:", type=("build", "run"))
+ depends_on("py-packaging@20:", type=("build", "run"))
+ depends_on("py-psutil", type=("build", "run"))
+ depends_on("py-pyyaml", type=("build", "run"))
+ depends_on("py-torch@1.4:", type=("build", "run"))