deepseek-ai / DeepSeek-VL

DeepSeek-VL: Towards Real-World Vision-Language Understanding
https://huggingface.co/spaces/deepseek-ai/DeepSeek-VL-7B
MIT License
2k stars 188 forks source link

TypeError: Object of type AlignerConfig is not JSON serializable #58

Open JingyuanHan opened 1 month ago

JingyuanHan commented 1 month ago

当我运行代码 vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True) 时会报错 TypeError: Object of type AlignerConfig is not JSON serializable 我的模型文件是huggingface上的1.3B-chat版本

when I run code vl_gpt: MultiModalityCausalLM = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True) it show error like TypeError: Object of type AlignerConfig is not JSON serializable my model is 1.3B-chat version download from huggingface

JingyuanHan commented 1 month ago

好吧,升级transformers库到新版本就可以了