Add flash-attn package (#42939)
This commit is contained in:
parent
1f63a764ac
commit
c4ce51c9be
33
var/spack/repos/builtin/packages/py-flash-attn/package.py
Normal file
33
var/spack/repos/builtin/packages/py-flash-attn/package.py
Normal file
@ -0,0 +1,33 @@
|
||||
# Copyright 2013-2024 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 PyFlashAttn(PythonPackage):
|
||||
"""
|
||||
This package provides the official implementation of FlashAttention.
|
||||
"""
|
||||
|
||||
pypi = "flash-attn/flash_attn-2.5.4.tar.gz"
|
||||
|
||||
maintainers("aurianer")
|
||||
|
||||
license("BSD")
|
||||
|
||||
version("2.5.5", sha256="751cee17711d006fe7341cdd78584af86a6239afcfe43b9ed11c84db93126267")
|
||||
version("2.5.4", sha256="d83bb427b517b07e9db655f6e5166eb2607dccf4d6ca3229e3a3528c206b0175")
|
||||
|
||||
depends_on("py-setuptools", type="build")
|
||||
|
||||
with default_args(type=("build", "run")):
|
||||
depends_on("py-torch+cuda")
|
||||
depends_on("py-ninja")
|
||||
depends_on("py-einops")
|
||||
depends_on("py-packaging")
|
||||
|
||||
depends_on("py-psutil", type="build")
|
||||
|
||||
depends_on("python@3.7:", type=("build", "run"))
|
Loading…
Reference in New Issue
Block a user