-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
honor upcast_attention
model setting
#2365
Conversation
No joy. Got a CUDA out of memory error as soon as rendering started. Test program:
Stack trace:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately I'm now getting a CUDA out of memory error during the generation process. The GPU was idle with 12 GB of free memory at the time.
@lstein, does it work if you use a smaller image size? and by "work" I mean "produce an image at all" — SD 2.1 really isn't pretty when running below its 768px default size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good - reading the logic makes sense, but i didn't test it - pending lstein's issue above i won't press "merge"
I'll try with a few different sizes, but 512x512 didn't work.
…On Thu, Jan 19, 2023 at 1:50 AM Kevin Turner ***@***.***> wrote:
Unfortunately I'm now getting a CUDA out of memory error during the
generation process. The GPU was idle with 12 GB of free memory at the time.
@lstein <https://github.com/lstein>, does it work if you use a smaller
image size?
and by "work" I mean "produce an image at all" — SD 2.1 really isn't
pretty when running below its 768px default size.
—
Reply to this email directly, view it on GitHub
<#2365 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA3EVLNFRCURMURQMP442LWTDP37ANCNFSM6AAAAAAT7WFLEE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Lincoln Stein*
Head, Adaptive Oncology, OICR
Senior Principal Investigator, OICR
Professor, Department of Molecular Genetics, University of Toronto
Tel: 416-673-8514
Cell: 416-817-8240
***@***.***
*E**xecutive Assistant*
Michelle Xin
Tel: 647-260-7927
***@***.*** ***@***.***>*
*Ontario Institute for Cancer Research*
MaRS Centre, 661 University Avenue, Suite 510, Toronto, Ontario, Canada M5G
0A3
@OICR_news
<https://can01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Foicr_news&data=04%7C01%7CMichelle.Xin%40oicr.on.ca%7C9fa8636ff38b4a60ff5a08d926dd2113%7C9df949f8a6eb419d9caa1f8c83db674f%7C0%7C0%7C637583553462287559%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=PS9KzggzFoecbbt%2BZQyhkWkQo9D0hHiiujsbP7Idv4s%3D&reserved=0>
| www.oicr.on.ca
*Collaborate. Translate. Change lives.*
This message and any attachments may contain confidential and/or privileged
information for the sole use of the intended recipient. Any review or
distribution by anyone other than the person for whom it was originally
intended is strictly prohibited. If you have received this message in
error, please contact the sender and delete all copies. Opinions,
conclusions or other information contained in this message may not be that
of the organization.
|
768x768 - crashes with the memory error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently unusable due to out of memory errors on images of 512x512 and higher.
Interesting, 512px works here within 12 GB. I did add But then how is it that #2335 works for you at full precision? cuz that runs out of memory for me too. |
I have no idea. Even without #2335, if I comment out I think we've previously established that we are on the same versions of torch and CUDA - 1.13.1 and 11.7? |
I'm getting discouraged that we're doing all this debugging work to get a model running that nobody likes much anyway. It looks like PyPi has binary wheel builds for xformers on Windows and Linux. I'm thinking of adding this to |
Can't rely on xformers to fix everything, because
|
obsoleted by #2385 |
brings our attention code in line with huggingface/diffusers#1590
hopefully fixes #2329 float16 support for SD 2.1