mirror of
https://github.com/deepseek-ai/DeepSeek-VL.git
synced 2026-11-05 00:47:24 +00:00
[GH-ISSUE #58] TypeError: Object of type AlignerConfig is not JSON serializable #45
Labels
No labels
enhancement
environment
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-VL#45
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 likeTypeError: Object of type AlignerConfig is not JSON serializablemy model is 1.3B-chat version download from huggingface@JingyuanHan commented on GitHub (Jul 25, 2024):
好吧,升级transformers库到新版本就可以了