Instructions to use replicate/mamba-ssm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Kernels
How to use replicate/mamba-ssm with Kernels:
# !pip install kernels from kernels import get_kernel # a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones kernel = get_kernel("replicate/mamba-ssm", version=1) - Notebooks
- Google Colab
- Kaggle
Download build.toml from replicate/mamba-ssm: direct link, hf CLI and curl.
- Browser
- Download file 1.07 kB
-
https://huggingface.co/replicate/mamba-ssm/resolve/main/build.toml
- Command line
-
hf download hf://replicate/mamba-ssm/build.toml
-
curl -L -o build.toml https://huggingface.co/replicate/mamba-ssm/resolve/main/build.toml
1.07 kB
| [general] | |
| name = "mamba_ssm" | |
| backends = ["cuda"] | |
| python-depends = ["einops"] | |
| [torch] | |
| src = [ | |
| "torch-ext/torch_binding.cpp", | |
| "torch-ext/torch_binding.h", | |
| ] | |
| [kernel.selective_scan] | |
| backend = "cuda" | |
| depends = ["torch"] | |
| src = [ | |
| "selective-scan/reverse_scan.cuh", | |
| "selective-scan/selective_scan.cpp", | |
| "selective-scan/selective_scan.h", | |
| "selective-scan/selective_scan_bwd_bf16_complex.cu", | |
| "selective-scan/selective_scan_bwd_bf16_real.cu", | |
| "selective-scan/selective_scan_bwd_fp16_complex.cu", | |
| "selective-scan/selective_scan_bwd_fp16_real.cu", | |
| "selective-scan/selective_scan_bwd_fp32_complex.cu", | |
| "selective-scan/selective_scan_bwd_fp32_real.cu", | |
| "selective-scan/selective_scan_bwd_kernel.cuh", | |
| "selective-scan/selective_scan_common.h", | |
| "selective-scan/selective_scan_fwd_bf16.cu", | |
| "selective-scan/selective_scan_fwd_fp16.cu", | |
| "selective-scan/selective_scan_fwd_fp32.cu", | |
| "selective-scan/selective_scan_fwd_kernel.cuh", | |
| "selective-scan/static_switch.h", | |
| "selective-scan/uninitialized_copy.cuh", | |
| ] | |