Skip to content

Pytorch reserved memory issue #133

Answered by nateraw
shlabada asked this question in Q&A
Discussion options

You must be logged in to vote

You've run out of GPU memory. Looks like you have 6GB available...not sure this will be enough. But, you might be able to make it work with attention slicing...call .enable_attention_slicing() on the pipeline right after you initialize it and then try again to see if you're able to make it work

Also make sure to try with batch_size=1 for minimal example.

from stable_diffusion_videos import StableDiffusionWalkPipeline

from diffusers.models import AutoencoderKL
from diffusers.schedulers import LMSDiscreteScheduler
import torch

pipe = StableDiffusionWalkPipeline.from_pretrained(
    'runwayml/stable-diffusion-v1-5',
    vae=AutoencoderKL.from_pretrained(f"stabilityai/sd-vae-ft-ema"),
    t…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by shlabada
Comment options

You must be logged in to vote
2 replies
@nateraw
Comment options

@shlabada
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants