Chao Song

Results 3 comments of Chao Song

> I extract the `self_ref_v0.cu` and `SRWMlayer` from source code, and incorporate them into my own model. I get > > ``` > ImportError: cannot import name 'self_ref' from 'xx.layers'...

嗯,我之所以关注到这个问题,是发现clear按钮好像不起作用。我试了几种方式都不行,官方issue也有:https://github.com/gradio-app/gradio/issues/885,下面给出的解决方案我也试了,也不行。你有更好的办法吗?

> 你可以用我们的chat,chat里面实现了比较丰富的按钮 对于流式生成过程GPU显存不释放你们有什么好的解决办法吗?我看你们代码里(chat.py)只是抛出了这个问题,torch.cuda.empty_cache()好像并没有起作用,显存仍然是满的