kernels-bot commited on
Commit
4dd4fdc
·
verified ·
1 Parent(s): bdb71e9

Uploaded using `kernel-builder`.

Browse files
Files changed (1) hide show
  1. README.md +26 -9
README.md CHANGED
@@ -1,16 +1,33 @@
1
  ---
 
2
  license: apache-2.0
3
- tags:
4
- - kernel
5
  ---
6
 
7
- ## Mamba
8
 
9
- Mamba state space kernels + models from [state-spaces/mamba](https://github.com/state-spaces/mamba).
10
 
11
- ## Warning
 
 
12
 
13
- Some functionality is dependent on `einops` and `transformers`, however we
14
- currently don't have any way of defining these dependencies yet. The scope
15
- of the Hub kernel is probably too large (should maybe only contain the
16
- selective-scan and Triton kernels).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: kernels
3
  license: apache-2.0
 
 
4
  ---
5
 
6
+ This is the repository card of kernels-community/mamba-ssm that has been pushed on the Hub. It was built to be used with the [`kernels` library](https://github.com/huggingface/kernels). This card was automatically generated.
7
 
8
+ ## How to use
9
 
10
+ ```python
11
+ # make sure `kernels` is installed: `pip install -U kernels`
12
+ from kernels import get_kernel
13
 
14
+ kernel_module = get_kernel("kernels-community/mamba-ssm")
15
+ selective_scan_fn = kernel_module.selective_scan_fn
16
+
17
+ selective_scan_fn(...)
18
+ ```
19
+
20
+ ## Available functions
21
+ - `selective_scan_fn`
22
+ - `mamba_inner_fn`
23
+ - `falcon_mamba_inner_fn`
24
+ - `selective_state_update`
25
+ - `mamba_chunk_scan_combined`
26
+ - `mamba_split_conv1d_scan_combined`
27
+ - `Mamba`
28
+ - `Mamba2`
29
+ - `MambaLMHeadModel`
30
+
31
+ ## Benchmarks
32
+
33
+ No benchmark available yet.