You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Option]`pip install causal-conv1d>=1.2.0`: an efficient implementation of a simple causal Conv1d layer used inside the Mamba block.
@@ -45,6 +32,8 @@ Other requirements:
45
32
- PyTorch 1.12+
46
33
- CUDA 11.6+
47
34
35
+
For AMD cards, see additional prerequisites below.
36
+
48
37
## Usage
49
38
50
39
We expose several levels of interface with the Mamba model.
@@ -217,6 +206,19 @@ However, some frameworks may have post-initialization hooks (e.g. setting all bi
217
206
If this is the case, you may have to add custom logic (e.g. this [line](https://github.com/state-spaces/mamba/blob/f0affcf69f06d1d06cef018ff640bf080a11c421/mamba_ssm/modules/mamba_simple.py#L104) turns off re-initializing in our trainer, but would be a no-op in any other framework)
218
207
that is specific to the training framework.
219
208
209
+
## Additional Prerequisites for AMD cards
210
+
211
+
### Patching ROCm
212
+
213
+
If you are on ROCm 6.0, run the following steps to avoid errors during compilation. This is not required for ROCm 6.1 onwards.
214
+
215
+
1. Locate your ROCm installation directory. This is typically found at `/opt/rocm/`, but may vary depending on your installation.
216
+
217
+
2. Apply the Patch. Run with `sudo` in case you encounter permission issues.
0 commit comments