mamba icon indicating copy to clipboard operation
mamba copied to clipboard

How does the code run on the Macbook

Open 524125153 opened this issue 1 year ago • 3 comments

My current device is only Macbook, its corresponding chip is M1 chip, and there is no cuda, in this case, I can not run this code?

524125153 avatar Aug 29 '24 01:08 524125153

Exactly right. You need to have Cuda to use mamba; I've had the same experience as you a while back (luckily I use our university HPC cluster, so do have the needed GPU). You could run it on Google Colab or Kaggle if you want, just watch out since you'll have limited GPU time.

Anri-Lombard avatar Sep 01 '24 06:09 Anri-Lombard

You can run mamba-minimal on a Mac: https://github.com/johnma2006/mamba-minimal.git

josmithiii avatar Sep 01 '24 09:09 josmithiii

I am trying to run something called zonos and it fails because mamba_ssm doesn't work for m1 osx.

➜  Zonos git:(main) uv run python3 sample.py 
Traceback (most recent call last):
  File "/Users/b/study/ml/voice/cloning/zonos/Zonos/sample.py", line 3, in <module>
    from zonos.model import Zonos
  File "/Users/b/study/ml/voice/cloning/zonos/Zonos/zonos/model.py", line 8, in <module>
    from mamba_ssm.utils.generation import InferenceParams
ModuleNotFoundError: No module named 'mamba_ssm'
➜  Zonos git:(main) uv add mamba_ssm        

is there a setting for this package to work on CPU only?

dataf3l avatar Feb 11 '25 23:02 dataf3l