今天在Llama-Factory训练模型时,webui报错:
AttributeError: '_lzma.LZMADecompressor' object has no attribute 'needs input'
解决:
我的python安装目录是:/usr/local/python310
修改python代码:/usr/local/python310/lib/python3.10/_compression.py 第96行
if self._decompressor.needs_input:
改为:
if self._decompressor:
改完后重启llama-factory,训练正常