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

Colab not working #112

Closed
xyzzart opened this issue Jul 14, 2023 · 12 comments
Closed

Colab not working #112

xyzzart opened this issue Jul 14, 2023 · 12 comments
Labels
error Something isn't working

Comments

@xyzzart
Copy link

xyzzart commented Jul 14, 2023

is it only me or its slowed generating after update? i use 2.1 model and it takes me 3 minutes to generate 1 image 960x960. as far as i remeber i was able to generate even bigger resolutions faster. im talking about mixing mode

@seruva19
Copy link
Owner

I don't think any of 2.1 inference methods changed, I only upgraded diffusers to include 2.2 support. If there will be more reports about slowdowns, I will do tests against multiple versions of the app.

@seruva19 seruva19 added the question Further information is required label Jul 15, 2023
@xyzzart
Copy link
Author

xyzzart commented Jul 19, 2023

I don't think any of 2.1 inference methods changed, I only upgraded diffusers to include 2.2 support. If there will be more reports about slowdowns, I will do tests against multiple versions of the app.
i think nobody useses 2.1 model now) today im getting errors with higher resolution (1158x960)..and it just stop the colab
image

@seruva19
Copy link
Owner

That's strange, but, frankly speaking, I never tested 2.1 in colab with resolutions higher than 768x768. I will look into it in a few days, though I have no idea what can be the problem.

@xyzzart
Copy link
Author

xyzzart commented Jul 19, 2023

That's strange, but, frankly speaking, I never tested 2.1 in colab with resolutions higher than 768x768. I will look into it in a few days, though I have no idea what can be the problem.

it was working a time ago...also it generated way faster than now. ok,maybe you can check that issue in near future/

@xyzzart
Copy link
Author

xyzzart commented Jul 19, 2023

image

That's strange, but, frankly speaking, I never tested 2.1 in colab with resolutions higher than 768x768. I will look into it in a few days, though I have no idea what can be the problem.

(( sorry for being annoying but something wrong with 2.1 model. im getting error everytime now( even with low resolution.It was working some hours ago( im using mixing feature

@seruva19
Copy link
Owner

seruva19 commented Jul 19, 2023

You're right, it looks like the colab crashes because RAM usage becomes too high and it fails to load model. And it actually fails to load 2.2 diffusers model on launch too, but manages to run it when weights are already loaded (on second attempt). Very weird. I'll definitely check this out later.

@seruva19 seruva19 added needs research Requires further research and removed question Further information is required labels Jul 19, 2023
@seruva19 seruva19 changed the title too sloww generating >>> Colab not working Jul 20, 2023
@xyzzart
Copy link
Author

xyzzart commented Jul 21, 2023

any luck of fixing this issue?(

@seruva19
Copy link
Owner

I haven't yet figured out exact origin of the problem (namely, why RAM usage spikes on model initial launch so hard that it exceeds colab's 12.7 Gb). There was a recent update in Google cloud services, and this was one of the factors that led to error; another one is still high memory usage of the app itself.

Here is a temporary workaround that may help: start runtime, but then activate "Use fallback runtime version" in command palette. I was able to launch 2.1 vanilla model with that.

@xyzzart
Copy link
Author

xyzzart commented Jul 21, 2023

I haven't yet figured out exact origin of the problem (namely, why RAM usage spikes on model initial launch so hard that it exceeds colab's 12.7 Gb). There was a recent update in Google cloud services, and this was one of the factors that led to error; another one is still high memory usage of the app itself.

Here is a temporary workaround that may help: start runtime, but then activate "Use fallback runtime version" in command palette. I was able to launch 2.1 vanilla model with that.

thanks. it works!

@Blucknote
Copy link

@seruva19
Copy link
Owner

I don't think so, because trick with switching to legacy environment succeeds.
Also 2.2 model works too (by relaunching the last cell after crash).
These errors did not happen until recent colab environment upgrade to Ubuntu 22.04. There seems to be a fix that might (I am actually not sure 🙂) cure it, it is described here: TheLastBen/fast-stable-diffusion#2359, I will try to adapt it.
Also I need to test against older versions of the app, it is possible I somehow made some mistake in code that increases RAM usage too much.

@seruva19
Copy link
Owner

seruva19 commented Aug 2, 2023

I updated colab with fix proposed by almfahd41 in #125.
After that I was able to generate vanilla 2.1 images without switching to legacy runtime, no RAM overflow.

@seruva19 seruva19 added error Something isn't working and removed needs research Requires further research labels Aug 2, 2023
@seruva19 seruva19 closed this as completed Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants