Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blip2Processor的init方法需要更新 #1905

Open
Alemax067 opened this issue Jan 6, 2025 · 0 comments
Open

Blip2Processor的init方法需要更新 #1905

Alemax067 opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Alemax067
Copy link

Describe the bug/ 问题描述 (Mandatory / 必填)

Blip2Processor的init方法需要更新

根据Blip2的模型仓库,其配置文件在一个月前发生了更新,transformers在版本4.47中已同步更改,但mindnlp.transformers还未更新,具体为配置文件processor_config.json中的num_query_tokens参数

MindNLP中对应代码为:
image

Transformers4.47.1中对应代码为:
image

复现方法为:

from mindnlp.transformers import Blip2Processor
processor = Blip2Processor.from_pretrained('/data/zhangyx/liuzp/blip2/blip2-opt-2.7b')

报错信息为:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant