新权重无法使用 AttributeError: 'LlavaConfig' object has no attribute 'X'

#10
by Hugging-xinl - opened

Traceback (most recent call last):
File "/home/ubuntu/Indentify/autodl/autodl-tmp/Video-LLaVA-7B/Video_llava.py", line 274, in
Audio_modellist = init(args.LLaVA_model_path)
File "/home/ubuntu/Indentify/autodl/autodl-tmp/Video-LLaVA-7B/Video_llava.py", line 56, in init
Audio_modellist = load_pretrained_model(
File "/home/ubuntu/Indentify/autodl/autodl-tmp/Video-LLaVA-7B/Video-LLaVA/llava/model/builder.py", line 142, in load_pretrained_model
X = model.config.X
File "/home/ubuntu/.conda/envs/video/lib/python3.10/site-packages/transformers/configuration_utils.py", line 261, in getattribute
return super().getattribute(key)
AttributeError: 'LlavaConfig' object has no attribute 'X'

之前的权重加载后没有问题,但更新model-0000x-of-00002.safetensor后无法使用,是我版本出现了问题,还是下载的权重有问题

Sign up or log in to comment