VGen icon indicating copy to clipboard operation
VGen copied to clipboard

can i run gradio_app.py on my local RTX4090 machine?

Open frankchieng opened this issue 2 years ago • 4 comments

i run the gradio_app.py on ubuntu with RTX4090,when i upload the image and generate the video it render error as below:

RuntimeError:CUDA out of memory.Tried to allocate 1.07 GiB (GPU 0; 23.65 GiB total capacity; 18.79 GiB already allocated; 671.44MiB free;20.70 GiB reserved in total by Pytorch)

how can i run successfully on my local machine?

frankchieng avatar Jan 10 '24 04:01 frankchieng

Hi, thanks for your attention to our work. You can try the solution here.

Steven-SWZhang avatar Jan 11 '24 07:01 Steven-SWZhang

Hi, thanks for your attention to our work. You can try the solution here.

i can run inference when i set model = model.half().to(gpu), which i mean i don't know how to run gradio succesfully in local,i just figure out there is no pretrained model yet,just use the pipeline

frankchieng avatar Jan 11 '24 08:01 frankchieng

Hi, thanks for your attention to our work. You can try the solution here.

btw,can we use accelerate and deepspeed zero 3 if we wanna to save GPU for inference?any solution

frankchieng avatar Jan 12 '24 05:01 frankchieng

Hi, thanks for your attention to our work. You can try the solution here.

i thought this issue can be closed,i just figure out run gradio on RTX 4090 local machine with cog predict,thx

frankchieng avatar Jan 17 '24 08:01 frankchieng