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

Using low_cpu_mem_usage=True or a device_map requires Accelerate: pip install accelerate #77

Open
margo2130 opened this issue Sep 28, 2024 · 10 comments

Comments

@margo2130
Copy link

hi, do you know why i see this:
Using low_cpu_mem_usage=True or a device_map requires Accelerate: pip install accelerate
workflow:
1.json

@LubuLubu2
Copy link

Same, using comfyui portable and installed it via manager.

@margo2130
Copy link
Author

margo2130 commented Sep 28, 2024

Same, using comfyui portable and installed it via manager.

thanks. Which one should i donwload?
where should i go on manage? i have it also.
should i download from github also?
image

@LubuLubu2
Copy link

Same, using comfyui portable and installed it via manager.

thanks. Which one should i donwload? where should i go on manage? i have it also. should i download from github also? image

i don't know dude, i'm saying i have the same problem as you. mine gives the same error

@kijai
Copy link
Owner

kijai commented Sep 28, 2024

Added accelerate to the requirements, try re-installing now.

@margo2130
Copy link
Author

Added accelerate to the requirements, try re-installing now.

Thank you. it is solved very good.
i have one another question please.
image
i want to install this model.
i think this model is here:
https://huggingface.co/gokaygokay/Florence-2-Flux-Large/tree/main

i don't know how and where should i install it?
i thought if i click "Queue Prompt" cmd automatically download it but it didn't. i don't know how to add this model manually. thanks.

@kijai
Copy link
Owner

kijai commented Sep 28, 2024

Added accelerate to the requirements, try re-installing now.

Thank you. it is solved very good.
i have one another question please.
image
i want to install this model.
i think this model is here:
https://huggingface.co/gokaygokay/Florence-2-Flux-Large/tree/main

i don't know how and where should i install it?
i thought if i click "Queue Prompt" cmd automatically download it but it didn't. i don't know how to add this model manually. thanks.

The auto download node is a different one, that one in your screenshot looks for models in the ComfyUI/models/LLM -folder.

@LubuLubu2
Copy link

LubuLubu2 commented Sep 28, 2024

I am still getting the error

1
2

Edit: it was the accelerate version that was causing problems. i added ">=0.26.0" to your req.txt and ran the command. it fixed it.

@Newaiguy
Copy link

Newaiguy commented Oct 4, 2024

Have you solved the problem? I had the same problem

@LubuLubu2
Copy link

Have you solved the problem? I had the same problem

I changed accelerate to accelerate>=0.26.0 in requirements.txt and it installed it currectly.

it looks like this:
transformers>=4.39.0
matplotlib
timm
pillow >= 10.2.0
peft
accelerate>=0.26.0

@chinesewitcher
Copy link

Added accelerate to the requirements, try re-installing now.

Can you further explain which file should be modified

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

5 participants