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
21
21
22
22
- [ Option] ` pip install causal-conv1d>=1.4.0 ` : an efficient implementation of a simple causal Conv1d layer used inside the Mamba block.
23
23
- ` 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.
24
26
25
27
It can also be built from source with ` pip install . ` from this repository.
26
28
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 19
19
import torch
20
20
from torch .utils .cpp_extension import (
21
21
BuildExtension ,
22
- CppExtension ,
23
22
CUDAExtension ,
24
23
CUDA_HOME ,
25
24
HIP_HOME
@@ -349,31 +348,13 @@ def run(self):
349
348
"mamba_ssm.egg-info" ,
350
349
)
351
350
),
352
- author = "Tri Dao, Albert Gu" ,
353
- author_email = "tri@tridao.me, agu@cs.cmu.edu" ,
354
- description = "Mamba state-space model" ,
355
351
long_description = long_description ,
356
352
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
+
363
354
ext_modules = ext_modules ,
364
355
cmdclass = {"bdist_wheel" : CachedWheelsCommand , "build_ext" : BuildExtension }
365
356
if ext_modules
366
357
else {
367
358
"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
+ }
379
360
)
You can’t perform that action at this time.
0 commit comments