minigpt4安装的一系列问题

问题一

合并权重:

python -m fastchat.model.apply_delta --base /data/qq/llama2-7b-chat-hf  --target /data/qq/MiniGPT-4/vicuna_weights/ --delta /data/qq/vicuna-7b-delta-v0

在这里插入图片描述
fastchat版本与模型版本 不兼容

解决方法:
第一种:用低版本fastchat
第二种:vicuna别用v0

问题二

HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, 
'-' and '.' cannot start or end the name, max length is 96: ''.

把模型权重路径中用’-'的全改了。

问题三

在web端测试时出现胡言乱语的情况
原因是:minigpt4/configs/models/minigpt4.yaml文件时,误将llama_model指向了vicuna的delta文件。