Recently, I have been using the library causal_conv1d for machine learning programming, and causal_conv1d is a part of the mamba_ssm library. However, I can only run these libraries on NVIDIA GPUs. I am using a MAC machine with an M-series chip (M2 PRO). How can I use the causal_conv1d library on my MAC machine or is there any alternative library available?
I've tried installing PyTorch with the MPS version, but it seems like the causal_conv1d library directly requires support for nvcc and CUDA.
The
causal_conv1dimplementation for Mamba comes from this repo, which implements thecausal_conv1doperation using custom cuda kernels.Cuda kernels can't run on Mac silicon. To run
causal_conv1don Mac silicon, you would need to rewrite the kernels in Metal or another Mac compatible framework.To my knowledge a Mac compatible version does not currently exist.