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

enable_sequential_cpu_offload error! #137

Open
tmrjlu opened this issue Jun 15, 2023 · 2 comments
Open

enable_sequential_cpu_offload error! #137

tmrjlu opened this issue Jun 15, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tmrjlu
Copy link

tmrjlu commented Jun 15, 2023

python launch.py --config configs/prolificdreamer.yaml --train --gpu 5,6 system.prompt_processor.prompt="a DSLR photo of a blue car" data.batch_size=2 data.width=128 data.height=128 system.guidance.enable_sequential_cpu_offload=true

the error :
NotImplementedError: Cannot copy out of meta tensor; no data!

@bennyguo
Copy link
Collaborator

Hi! I haven't tested enable_sequential_cpu_offload on stable-diffusion-vsd-guidance yet. I'll label this issue as bug but it's of low priority. Which model of GPU are you using for running this? Also note that data.batch_size under the multi-GPU setting is the batch size for each GPU, so if you want to reduce VRAM usage, please use data.batch_size=1.

@bennyguo bennyguo added the bug Something isn't working label Jun 15, 2023
@Abrahm1234
Copy link

I was curious about this also i currently only have a NVIDIA GeForce RTX 3060 12GiB vram. with AMD Ryzen 7 5700G with Radeon Graphics × 16 Memory:31.1 GiB available. I was curious on how to utilize my CPU effectively to run larger models such as the dreamfusion-if.yaml that I am currently not capable of running? any suggestion would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants