Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple M2 compatibility #94

Open
deysurya opened this issue Apr 24, 2024 · 7 comments
Open

Apple M2 compatibility #94

deysurya opened this issue Apr 24, 2024 · 7 comments

Comments

@deysurya
Copy link

After lots of research I ended into following error while trying to run Gradio:

RuntimeError: Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx

Is NVIDIA GPU is a must to run this code locally ?

@xzqjack
Copy link
Contributor

xzqjack commented Apr 24, 2024

@deysurya Hi, this issue is related to #60 . The latest graidio supports spaces.gpu decorator, which maybe bound with gpu.

we will add new app_xxx.py, before that, you can annotate @spaces.GPU(duration=180)

@xzqjack
Copy link
Contributor

xzqjack commented Apr 24, 2024

@deysurya as for apple or cpu, we didnt test with that, make sure you can run script command successfully with device cpu firstly.

@deysurya
Copy link
Author

Hi @xzqjack ,
Thanks much for looking into this. I think I had added another comments earlier after your last comments, but I do not see it here for some reason. I am new to the world of diffusion and please forgive my ignorance. However, as you have requested to "annotate @spaces.GPU(duration=180)", should I do it in app,py in gradio directory ? I see the line "@spaces.GPU(duration=180)" in line 39 and 60 of the same code.
Thanks,

@deysurya
Copy link
Author

deysurya commented May 1, 2024

@deysurya as for apple or cpu, we didnt test with that, make sure you can run script command successfully with device cpu firstly.

It would be great if you can provide some examples of the commands you have mentioned here.

@deysurya
Copy link
Author

deysurya commented May 4, 2024

Hi @xzqjack , it looks like 'mmpose' depends on 'CUDA' is the problem. if we try to run "mim install "mmpose>=1.1.0" , it will not work on MAC m2. Any idea/thoughts/ suggestions?

@xzqjack
Copy link
Contributor

xzqjack commented May 10, 2024

@deysurya The official mmpose say that macos should build mmpose from source code.
https://mmpose.readthedocs.io/en/latest/installation.html

@deysurya
Copy link
Author

Hi @xzqjack ,
Thanks much for looking into this. In the link https://mmpose.readthedocs.io/en/latest/installation.html I have found following line :
"MMPose works on Linux, Windows and macOS. It requires Python 3.7+, CUDA 9.2+ and PyTorch 1.8+."

Do we have CUDA for Apple M2 based machine ? Please let me know if you have any thoughts.
I will try to check with mmpose site help also.

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants