File tree Expand file tree Collapse file tree 3 files changed +50
-21
lines changed Expand file tree Collapse file tree 3 files changed +50
-21
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ with an efficient hardware-aware design and implementation in the spirit of [Fla
2121
2222- [ Option] ` pip install causal-conv1d>=1.4.0 ` : an efficient implementation of a simple causal Conv1d layer used inside the Mamba block.
2323- ` pip install mamba-ssm ` : the core Mamba package.
24+ - ` pip install mamba-ssm[causal-conv1d] ` : To install core Mamba package and causal-conv1d.
25+ - ` pip install mamba-ssm[dev] ` : To install core Mamba package and dev depdencies.
2426
2527It can also be built from source with ` pip install . ` from this repository.
2628
Original file line number Diff line number Diff line change 1+ [project ]
2+ name = " mamba_ssm"
3+ description = " Mamba state-space model"
4+ readme = " README.md"
5+ authors = [
6+ { name = " Tri Dao" , email = " tri@tridao.me" },
7+ { name = " Albert Gu" , email = " agu@cs.cmu.edu" }
8+ ]
9+ requires-python = " >= 3.7"
10+ dynamic = [" version" ]
11+ license = { file = " LICENSE" } # Include a LICENSE file in your repo
12+ keywords = [" cuda" , " pytorch" , " state-space model" ]
13+ classifiers = [
14+ " Programming Language :: Python :: 3" ,
15+ " License :: OSI Approved :: BSD License" ,
16+ " Operating System :: Unix"
17+ ]
18+ dependencies = [
19+ " torch" ,
20+ " ninja" ,
21+ " einops" ,
22+ " triton" ,
23+ " transformers" ,
24+ " packaging" ,
25+ " setuptools>=61.0.0" ,
26+ ]
27+ urls = { name = " Repository" , url = " https://github.com/state-spaces/mamba" }
28+
29+ [project .optional-dependencies ]
30+ causal-conv1d = [
31+ " causal-conv1d>=1.2.0"
32+ ]
33+ dev = [
34+ " pytest"
35+ ]
36+
37+
38+ [build-system ]
39+ requires = [
40+ " setuptools>=61.0.0" ,
41+ " wheel" ,
42+ " torch" ,
43+ " packaging" ,
44+ " ninja" ,
45+ ]
46+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change 1919import torch
2020from torch .utils .cpp_extension import (
2121 BuildExtension ,
22- CppExtension ,
2322 CUDAExtension ,
2423 CUDA_HOME ,
2524 HIP_HOME
@@ -349,31 +348,13 @@ def run(self):
349348 "mamba_ssm.egg-info" ,
350349 )
351350 ),
352- author = "Tri Dao, Albert Gu" ,
353- author_email = "tri@tridao.me, agu@cs.cmu.edu" ,
354- description = "Mamba state-space model" ,
355351 long_description = long_description ,
356352 long_description_content_type = "text/markdown" ,
357- url = "https://github.com/state-spaces/mamba" ,
358- classifiers = [
359- "Programming Language :: Python :: 3" ,
360- "License :: OSI Approved :: BSD License" ,
361- "Operating System :: Unix" ,
362- ],
353+
363354 ext_modules = ext_modules ,
364355 cmdclass = {"bdist_wheel" : CachedWheelsCommand , "build_ext" : BuildExtension }
365356 if ext_modules
366357 else {
367358 "bdist_wheel" : CachedWheelsCommand ,
368- },
369- python_requires = ">=3.8" ,
370- install_requires = [
371- "torch" ,
372- "packaging" ,
373- "ninja" ,
374- "einops" ,
375- "triton" ,
376- "transformers" ,
377- # "causal_conv1d>=1.4.0",
378- ],
359+ }
379360)
You can’t perform that action at this time.
0 commit comments