ltp icon indicating copy to clipboard operation
ltp copied to clipboard

出现了这个bug: RuntimeError: CUDA out of memory. Tried to allocate 7.46 GiB (GPU 0; 10.76 GiB total capacity; 758.05 MiB already allocated; 7.45 GiB free; 772.00 MiB reserved in total by PyTorch)

Open ghliu521 opened this issue 3 years ago • 8 comments

ghliu521 avatar Jul 30 '21 07:07 ghliu521

ltp很吃GPU资源吗?

ghliu521 avatar Jul 30 '21 07:07 ghliu521

应该是batch开的太大了?

AlongWY avatar Aug 02 '21 01:08 AlongWY

应该是batch开的太大了?

我代码使用的是keras,就是ltp这个库依赖的是pytorch和transformer...

ghliu521 avatar Aug 02 '21 07:08 ghliu521

ltp很吃GPU资源吗?

请问你解决了吗? 我在初始化的时候也遇到了这个问题,重装ltp也没用

Gavingx avatar Apr 13 '22 03:04 Gavingx

ltp很吃GPU资源吗?

请问你解决了吗? 我在初始化的时候也遇到了这个问题,重装ltp也没用

我记得当时是ltp操作转换的列表太大了。。。

ghliu521 avatar Apr 13 '22 07:04 ghliu521

batch调小点,再debug看下代码,跟keras没关

geasyheart avatar Apr 13 '22 08:04 geasyheart

batch调小点,再debug看下代码,跟keras没关

我只是用这个进行分词,得到词性,哪里来的batch?

ghliu521 avatar Apr 13 '22 11:04 ghliu521

lz是不是开了多线程,少开几个会好一点

conan1024hao avatar Apr 26 '22 05:04 conan1024hao