JARVIS icon indicating copy to clipboard operation
JARVIS copied to clipboard

So Mac can not use this?

Open iwoomi opened this issue 2 years ago • 42 comments

Macs are not using NVIDIA display card, so Mac can not use this right?

iwoomi avatar Apr 05 '23 10:04 iwoomi

I guess you still can, but using hybrid mode only. https://github.com/microsoft/JARVIS#configuration

ekiwi111 avatar Apr 05 '23 10:04 ekiwi111

I guess you still can, but using hybrid mode only. https://github.com/microsoft/JARVIS#configuration

But the server needs Nvidia display card. image

image

xiebruce avatar Apr 05 '23 10:04 xiebruce

There are various ways to configure this package depending on your resource limitations. I am using it on a Mac right now:

image

Fermain avatar Apr 05 '23 15:04 Fermain

There are various ways to configure this package depending on your resource limitations. I am using it on a Mac right now:

image

WX25660405-090513@2x I am also a Mac user and I encountered this issue while running this line of code. Could you please tell me what I should do if it is convenient?

ethanye77 avatar Apr 05 '23 16:04 ethanye77

here‘s my issue image

ethanye77 avatar Apr 05 '23 16:04 ethanye77

The answer to your issue is on line 3 of your screenshot. Install git-lfs and try the model download step again.

Fermain avatar Apr 05 '23 16:04 Fermain

The answer to your issue is on line 3 of your screenshot. Install git-lfs and try the model download step again.

image Thank you. Your solution is very helpful, but after downloading so many files, the progress is still 0%. Is this a normal situation?

ethanye77 avatar Apr 05 '23 19:04 ethanye77

Yes, the LFS objects are rather large. My models folder is 275 GB personally.

ErikDombi avatar Apr 05 '23 20:04 ErikDombi

Are the LFS objects absolutely necessary? Tryna run this on my macbook air lol (16gb ram, 500gb ssd)

davidjhwu avatar Apr 06 '23 09:04 davidjhwu

Are the LFS objects absolutely necessary? Tryna run this on my macbook air lol (16gb ram, 500gb ssd)

No, you can run the lite.yaml configuration to use remote models only, although this is quite limited at the moment. I suggest using an external hard drive or SSD to manage these large models.

Fermain avatar Apr 06 '23 09:04 Fermain

@Fermain So If we deploy JARVIS in macOS, we can only use the lite.yaml(that is inference_mode: huggingface) right? Because if we use inference_mode:local(or inference_mode:hybrid),we should have a Nvidia display card, but Macs have no Nvidia display card, is that right?

iwoomi avatar Apr 06 '23 10:04 iwoomi

@Fermain So If we deploy JARVIS in macOS, we can only use the lite.yaml(that is inference_mode: huggingface) right? Because if we use inference_mode:local(or inference_mode:hybrid),we should have a Nvidia display card, but Macs have no Nvidia display card, is that right?

comment line 298-300(maybe if you didn't reformat this file) in models_server.py file

"midas-control": {sometmodel here}

you can run without nvidia device.

sirlaurie avatar Apr 06 '23 16:04 sirlaurie

I have just downloaded the models on my Mac, I don't have the N display card. And i have started with this models_server.py --config lite.yaml I got the error messages : AssertionError: Torch not compiled with CUDA enabled

comment the

"midas-control": {
            "model": MidasDetector(model_path=f"{local_fold}/lllyasviel/ControlNet/annotator/ckpts/dpt_hybrid-midas-501f0c75.pt")
            }

the models_server started

van0303 avatar Apr 07 '23 02:04 van0303

did you run git lfs install?

sirlaurie avatar Apr 07 '23 05:04 sirlaurie

yes,git lfs installed

xmagicwu avatar Apr 07 '23 05:04 xmagicwu

the version is 3.3.0

xmagicwu avatar Apr 07 '23 05:04 xmagicwu

I mean after you installed git-lfs, you need run git lfs install first

if you did it already, run sh download.sh again

sirlaurie avatar Apr 07 '23 05:04 sirlaurie

Thanks, I'll try it

xmagicwu avatar Apr 07 '23 06:04 xmagicwu

There are various ways to configure this package depending on your resource limitations. I am using it on a Mac right now:

image

@Fermain @ethanye77 Did you encountered this error: https://github.com/microsoft/JARVIS/issues/67

Solving environment: failed with initial frozen solve. Retrying with flexible solve.

xiebruce avatar Apr 07 '23 07:04 xiebruce

Thanks, I'll try it

Hello, have you resolved this issue? I also reported the same error. image

I executed the following command but still reported an error: pip install git-lfs cd models sh download.sh

liujie316316 avatar Apr 08 '23 08:04 liujie316316

I executed the following command but still reported an error: pip install git-lfs cd models sh download.sh

git-lfs is not a pip package. You can use homebrew to install it:

brew install git-lfs

The error message states that this is not installed.

Fermain avatar Apr 08 '23 08:04 Fermain

I executed the following command but still reported an error: pip install git-lfs cd models sh download.sh

git-lfs is not a pip package. You can use homebrew to install it:

brew install git-lfs

The error message states that this is not installed.

OK,Thank you!

liujie316316 avatar Apr 08 '23 09:04 liujie316316

image My device is a mackbook M1, how to solve this problem?

xmagicwu avatar Apr 10 '23 07:04 xmagicwu

Without Nvidia hardware, there is no solution to this particular issue. This system is not designed to run on Apple hardware and can only be used in limited ways on this platform.

Fermain avatar Apr 10 '23 07:04 Fermain

How to use it restrictively?

xmagicwu avatar Apr 10 '23 08:04 xmagicwu

The readme contains instructions for using the model with the lite.yaml config file instead of the full config.yaml file. Add your API keys to this lite file, and run this instead of config.

Fermain avatar Apr 10 '23 08:04 Fermain

image My device is a mackbook M1, how to solve this problem?

checkout my first post in this issue:

https://github.com/microsoft/JARVIS/issues/39#issuecomment-1499319851

you don't need to change config.yaml to lite.yaml

sirlaurie avatar Apr 10 '23 08:04 sirlaurie

图像 我的设备是mackbook M1,如何解决这个问题?

查看我在本期中的第一篇文章:

#39(评论)

你不需要config.yaml改成lite.yaml

image Did it work successfully?

xmagicwu avatar Apr 10 '23 08:04 xmagicwu

it did

sirlaurie avatar Apr 10 '23 08:04 sirlaurie

@sirlaurie I missed that comment, very helpful - thanks

Fermain avatar Apr 10 '23 08:04 Fermain