DeepSeek-VL icon indicating copy to clipboard operation
DeepSeek-VL copied to clipboard

TypeError: Object of type AlignerConfig is not JSON serializable

Open JingyuanHan opened this issue 1 year ago • 1 comments
trafficstars

当我运行代码 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 avatar Jul 25 '24 10:07 JingyuanHan

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

JingyuanHan avatar Jul 25 '24 12:07 JingyuanHan