Closed zhangyukun230 closed 23 hours ago
Hi @zhangyukun230 its not clear to me what resources are using that memory. However, in more recent versions of Gradio, we automatically release memory that is being held due to gr.State
after 1 hour, and you can also do specific unloading of objects using the gr.Blocks.unload()
event listener. Can you try upgrading to the latest version of Gradio?
I think it would be worth adding a section in docs about this @freddyaboulton as we get this a lot
Yes will work on some docs !
Describe the bug
I started a service using Gradio, and as more web pages were opened, the system's memory usage increased. Even if I close these web pages, the memory resources are still very large. On a 32c machine, after more than a dozen requests, memory overflow causes the process to be forcibly killed
Have you searched existing issues? 🔎
Reproduction
Screenshot
Logs
No response
System Info
Severity
I can work around it