-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make properly pip installable without needing build isolation (uv pip…
… install now works too)
- Loading branch information
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[project] | ||
name = "mamba_ssm" | ||
description = "Mamba state-space model" | ||
readme = "README.md" | ||
authors = [ | ||
{ name = "Tri Dao", email = "[email protected]" }, | ||
{ name = "Albert Gu", email = "[email protected]" } | ||
] | ||
requires-python = ">= 3.7" | ||
dynamic = ["version"] | ||
license = { file = "LICENSE" } # Include a LICENSE file in your repo | ||
keywords = ["cuda", "pytorch", "state-space model"] | ||
classifiers = [ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: Unix" | ||
] | ||
dependencies = [ | ||
"torch", | ||
"ninja", | ||
"einops", | ||
"triton", | ||
"transformers", | ||
"packaging", | ||
"setuptools>=61.0.0", | ||
] | ||
urls = { name = "Repository", url = "https://github.com/state-spaces/mamba"} | ||
|
||
[project.optional-dependencies] | ||
causal-conv1d = [ | ||
"causal-conv1d>=1.2.0" | ||
] | ||
dev = [ | ||
"pytest" | ||
] | ||
|
||
|
||
[build-system] | ||
requires = [ | ||
"setuptools>=61.0.0", | ||
"wheel", | ||
"torch", | ||
"packaging", | ||
"ninja", | ||
] | ||
build-backend = "setuptools.build_meta" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ | |
import torch | ||
from torch.utils.cpp_extension import ( | ||
BuildExtension, | ||
CppExtension, | ||
CUDAExtension, | ||
CUDA_HOME, | ||
) | ||
|
@@ -254,31 +253,13 @@ def run(self): | |
"mamba_ssm.egg-info", | ||
) | ||
), | ||
author="Tri Dao, Albert Gu", | ||
author_email="[email protected], [email protected]", | ||
description="Mamba state-space model", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/state-spaces/mamba", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: Unix", | ||
], | ||
|
||
ext_modules=ext_modules, | ||
cmdclass={"bdist_wheel": CachedWheelsCommand, "build_ext": BuildExtension} | ||
if ext_modules | ||
else { | ||
"bdist_wheel": CachedWheelsCommand, | ||
}, | ||
python_requires=">=3.7", | ||
install_requires=[ | ||
"torch", | ||
"packaging", | ||
"ninja", | ||
"einops", | ||
"triton", | ||
"transformers", | ||
# "causal_conv1d>=1.2.0", | ||
], | ||
} | ||
) |