LLamaFactory 微调Qwen-VL-3B时报错如下:
TypeError: argument of type 'NoneType' is not iterable
修改方式如下所示:
进入\src\llamafactory文件夹,打开cli.py文件
在文件头添加如下语句
from transformers import modeling_utils
if not hasattr(modeling_utils, "ALL_PARALLEL_STYLES") or modeling_utils.ALL_PARALLEL_STYLES is None:
modeling_utils.ALL_PARALLEL_STYLES = ["tp", "none","colwise",'rowwise']