Janus icon indicating copy to clipboard operation
Janus copied to clipboard

Could not run the model locally in Apple Silicon M2

Open nagarjunr opened this issue 11 months ago • 4 comments

Janus % python --version Python 3.11.11

System: Apple Macbook Pro 2022 Apple Silicon M2 16GB RAM

Errors: Janus % pip install -e .[gradio]

python demo/app_januspro.py zsh: no matches found: .[gradio] Traceback (most recent call last): File "/Janus/demo/app_januspro.py", line 1, in import gradio as gr ModuleNotFoundError: No module named 'gradio'

nagarjunr avatar Jan 29 '25 05:01 nagarjunr

手动安装一下gradio就行了,但是我m2能够打开gui,chat却半天跑不出结果,看gpu占用发现模型没有在运行

konpoku avatar Jan 29 '25 06:01 konpoku

手动安装一下gradio就行了,但是我m2能够打开gui,chat却半天跑不出结果,看gpu占用发现模型没有在运行

(translation, gpt) Manually installing Gradio should be enough, but on my M2, I can open the GUI, while the chat takes forever to generate a result. Checking the GPU usage, I found that the model isn’t running.

please use english. 谢谢.

fedorzajac avatar Jan 29 '25 07:01 fedorzajac

Mac上运行加个引号:pip install -e ".[gradio]"

fifthbeatles avatar Jan 29 '25 13:01 fifthbeatles

januspro 1/7B: https://github.com/takahirosir/Janus

vaiden avatar Jan 29 '25 15:01 vaiden