[GH-ISSUE #58] TypeError: Object of type AlignerConfig is not JSON serializable #45

Open
opened 2026-10-26 21:09:05 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @JingyuanHan on GitHub (Jul 25, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL/issues/58

当我运行代码 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

Originally created by @JingyuanHan on GitHub (Jul 25, 2024). Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-VL/issues/58 当我运行代码 `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
Author
Owner

@JingyuanHan commented on GitHub (Jul 25, 2024):

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

<!-- gh-comment-id:2250261244 --> @JingyuanHan commented on GitHub (Jul 25, 2024): 好吧,升级transformers库到新版本就可以了
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/DeepSeek-VL#45
No description provided.