Skip to content

Conversation

@mh-dm
Copy link
Contributor

@mh-dm mh-dm commented Sep 10, 2022

Speeds up initial load by ~1.5s, as tested on 8GB nvidia eGPU setup. Only avoids initial copying, doesn't improve possible image size. Still same max 704x512 before OOM.

havardgulldahl and others added 4 commits September 6, 2022 07:07
Like probably many others, I have a lot of different virtualenvs, one for each project. Most of them are handled by `pyenv`. 
After installing according to these instructions I had issues with ´pyenv`and `miniconda` fighting over the $PATH of my system.
But then I stumbled upon this nice solution on SO: https://stackoverflow.com/a/73139031 , upon which I have based my suggested changes.

It runs perfectly on my M1 setup, with the anaconda setup as a virtual environment handled by pyenv. 

Feel free to incorporate these instructions as you see fit. 

Thanks a million for all your hard work.
Co-authored-by: Henry van Megen <hvanmegen@gmail.com>
Fix: `anaconda3-latest` does not work, specify the correct virtualenv, add missing init.
…odel

Speeds up initial load by ~1.5s, as tested on 8GB nvidia eGPU setup.
Only avoids initial copying, doen't improve possible image size. Still same max 704x512 before OOM.
@lstein lstein changed the base branch from main to development September 10, 2022 13:58
@lstein
Copy link
Collaborator

lstein commented Sep 10, 2022

I"m not sure if you were aware of it, but this fix reduces the VRAM requirements for loading the model by 50%, to 2.17 G (from 4.3G). This probably means we can now load the model and run image generation on 4 GB cards. Congratulations!

Because the PR was directed at main rather than development, I found it was simpler to copy your fix into development and commit it separately. So I'll be closing this PR, but the commit message acknowledges you (@mh-dm) as the author.

@lstein lstein closed this Sep 10, 2022
@mh-dm
Copy link
Contributor Author

mh-dm commented Sep 10, 2022 via email

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

Successfully merging this pull request may close these issues.

5 participants