CogVLM icon indicating copy to clipboard operation
CogVLM copied to clipboard

加载cogvlm-chat-hf模型报错 Error while deserializing header: MetadataIncompleteBuffer

Open xxWeiDG opened this issue 9 months ago • 1 comments

System Info / 系統信息

与官方需求的环境相同

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • [X] The official example scripts / 官方的示例脚本
  • [ ] My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

代码为 model = AutoModelForCausalLM.from_pretrained( 'THUDM/cogvlm-chat-hf', torch_dtype=torch.bfloat16, low_cpu_mem_usage=True, trust_remote_code=True ).to('cuda').eval() 报错信息为 image

Expected behavior / 期待表现

正常运行

xxWeiDG avatar May 21 '24 06:05 xxWeiDG