PaddlePaddle / PaddleHub

Awesome pre-trained models toolkit based on PaddlePaddle. (400+ models including Image, Text, Audio, Video and Cross-Modal with Easy Inference & Serving)【安全加固,暂停交互,请耐心等待】
https://www.paddlepaddle.org.cn/hub
Apache License 2.0
12.72k stars 2.08k forks source link

hub Out of memory in a simple programm!! #682

Open LeeYongchao opened 4 years ago

LeeYongchao commented 4 years ago

Out of memory error on GPU 0. Cannot allocate 29.883057MB memory on GPU 0, available memory is only 22.750000MB.

Please check whether there is any other process using GPU 0.

  1. If yes, please stop them, or start PaddlePaddle on another GPU.
  2. If no, please decrease the batch size of your model.

    at (/paddle/paddle/fluid/memory/allocation/cuda_allocator.cc:69)

Jsooooooo commented 1 year ago

这么久过去了,还是没看到有解决啊

我的解决方式比较粗暴,开子进程跑这个推理,监控这个子进程,爆内存爆显存就杀掉重开

Jsooooooo commented 1 year ago

我的也是,显存不大,碰到大点的直接就卡死了,提问了但是现在找不到提问的帖子了,只能来这里蹭热度了,请解决一下呗,不然这个放服务器上是不可能了,只能自己玩

是的,大家都是这个问题!!! hub servering 起来,模型上显卡,占用大概500M 别人请求一下,显存占用4G,返回请求结果, 然后显存不下降。。。。。

你好,请问这个问题解决没?我也遇到了

开子进程跑推理,爆显存就杀掉重开

langzigaoi commented 1 year ago

我当时直接换更大内存显卡

在 2023-10-19 11:20:36,"Eric" @.***> 写道:

这么久过去了,还是没看到有解决啊

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Alwin4Zhang commented 12 months ago

一个问题搞几年了没解决,还想发展生态呢,逗

cmathx commented 4 months ago

内存泄漏的问题,感觉就没有解决啊。这样还怎么成为工业界可用的工具

y455471846b commented 4 months ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我已收到,我会尽快给您回复的……