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

ImportError: enable_model_cpu_offload requires accelerate v0.17.0 or higher #3795

Open
wuyuze99 opened this issue Jun 20, 2024 · 1 comment
Labels
User Support A user needs help with something, probably not a bug.

Comments

@wuyuze99
Copy link

Hello everyone,

I am new to using ComfyUI. When I click 'Queue Prompt', I keep getting an error stating "no accelerate", even though I have already installed accelerate v0.31.0.

no_accelerate
pip_list

I found a suggestion in this GitHub issue to replace pipe.enable_model_cpu_offload() with pipe.to("cuda"). However, for me, it just gets stuck after "Loading pipeline components...: 100%" is finished, meaning there is no error code, but also no further output.

Any guidance or suggestions would be greatly appreciated!

@RandomGitUser321
Copy link

RandomGitUser321 commented Jun 21, 2024

Are you sure that you're showing the list of the comfy venv and not your system install of python? To check comfy's venv, you'd need to run RESTOFYOURPATH\ComfyUI\python_embeded\python -m pip list to show it. Any time you want to install or upgrade something for comfy, you need to call that exact \ComfyUI\python_embeded\python -m pip STUFF otherwise, you'll likely just be changing stuff with your global install of python.

So what you'd need to run would be c:\comfyui_windows_portable\comfyui\python_embeded\python -m pip install accelerate and if that doesn't work, add --upgrade to the end of that command

Here's an example of what I mean showing the difference:
image

@mcmonkey4eva mcmonkey4eva added the User Support A user needs help with something, probably not a bug. label Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support A user needs help with something, probably not a bug.
Projects
None yet
Development

No branches or pull requests

3 participants