1694439208 / GOT-OCR-Inference

研究GOT-OCR-项目落地加速,不限语言
53 stars 4 forks source link

Converting to GGUF error | 转换为 `GGUF` 时的错误 #1

Open tchlux opened 1 month ago

tchlux commented 1 month ago

When running python3 convert_hf_to_gguf.py GOT-OCR2_0, I'm encountering the error:

ValueError: Can not map tensor 'model.mm_projector_vary.bias'

Did you encounter this issue or find a solution to it?


运行 python3 convert_hf_to_gguf.py GOT-OCR2_0 时,我遇到了以下错误:

ValueError: Can not map tensor 'model.mm_projector_vary.bias'

你是否遇到过这个问题,或者找到了解决办法?

1694439208 commented 1 month ago

你转换的是自己微调的模型吗,原始结构并没有这个如果确认模型没有这个层,可以在278行忽略 https://github.com/1694439208/GOT-OCR-Inference/blob/2621f8640ca2f86bf875145b110737217c1066a7/convert_hf_to_gguf.py#L285