Yibing Liu
Yibing Liu
@luweishuang The is no benchmark. The optimal two costs should depend what training data you use.
@luweishuang I can reproduce this error but haven't figure out why, because few people use ```is_static=True```. And do you succeed to fix it?
@mrfox321 First, the init of scorer only needs to be called once, so we haven't noticed the memory leak yet. Any new findings?
@kiddding No, line 30 is not a bug. Pay attention to https://github.com/PaddlePaddle/DeepSpeech/blob/edaed68f33b7fff2455c26b880340ba680621f5c/decoders/swig/decoder_utils.cpp#L26 When executed to line 30, ```cutoff_len``` should always not be greater than ```cutoff_top_n```.
@bolt163 请用礼貌的用语提issue 此处的报错明显是boost的安装问题,请先确保boost的正确安装。 每一种处理方式都有设计者的考虑,当前安装方式的好处是可以一键安装,坏处就是对于一个经验不足的使用者来说,一旦出现问题定位起来比较麻烦,请理解。
在boost的安装路径下是否能找到这个头文件?如果头文件能找到,但build的时候未能正确包含,可以在此处把头文件路径追加进来 https://github.com/PaddlePaddle/DeepSpeech/blob/1abb9767780799ddcd05c61684bfba764b00cee6/decoders/swig/setup.py#L104-L109
Great,应该是paddle没有正确安装
这种运行失败是一种异常的退出,需要手动将遗留的僵尸进程kill掉,否则这些进程会占用GPU显存,目前还没有一种优雅的方式处理这个问题
@bolt163 并非是内存泄漏,因为在第一个pass的训练用了sortagrad,样本按长短排过序,所以会看到显存随batch数逐渐增长,如果显存不够,会在某个时刻挂掉。这里的正确做法是减小batch size,保证第一个pass能够完整训练,一般来讲后面的pass不会再有问题。
感觉你这并不是实时的显存占用,可能有点滞后。如前所说,memory在第一个pass不断增长是正常现象,如果时间容许,调batch size可以用二分查找的策略