yuanzhoulvpi2017 / zero_nlp

中文nlp解决方案(大模型、数据、模型、训练、推理)
MIT License
3.04k stars 369 forks source link

train_llava保存processor的时候出现错误 #184

Open 1ittlesnow opened 2 months ago

1ittlesnow commented 2 months ago

qwen_model_name_or_path = "/data/workspace/huggingface/Qwen2-1.5B-Instruct" autoprocessor = AutoProcessor.from_pretrained(clip_model_name_or_path) autoprocessor.save_pretrained("huggingface/model003")

通过这个保存了processor之后

autoprocessor1 = AutoProcessor.from_pretrained("huggingface/model001") 只能通过AutoProcessor加载,不能通过llavaProcessor加载