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

model download issue #59

Open
Kkkassini opened this issue Apr 30, 2024 · 5 comments
Open

model download issue #59

Kkkassini opened this issue Apr 30, 2024 · 5 comments

Comments

@Kkkassini
Copy link

model = AutoModel.from_pretrained("mPLUG/DocOwl1.5-Omni")

throws KeyError: 'mplug_docowl'

@HAWLYQ
Copy link
Collaborator

HAWLYQ commented Apr 30, 2024

Hi, @Kkkassini , please run inference code with our model as the instruction in DocOwl1.5

For example

model_path='./mPLUG/DocOwl1.5-Omni'
docowl=DocOwlInfer(ckpt_path=model_path, anchors='grid_9', add_global_img=True)
print('load model from ', model_path)

image='./DocDownstream-1.0/imgs/DUE_Benchmark/DocVQA/pngs/rnbx0223_193.png'
query='What is the Compound Annual Growth Rate (CAGR) for total assets?'
answer=docowl.inference(image, query)
print(answer)```

@Kkkassini
Copy link
Author

Hi, @Kkkassini , please run inference code with our model as the instruction in DocOwl1.5

For example

model_path='./mPLUG/DocOwl1.5-Omni'
docowl=DocOwlInfer(ckpt_path=model_path, anchors='grid_9', add_global_img=True)
print('load model from ', model_path)

image='./DocDownstream-1.0/imgs/DUE_Benchmark/DocVQA/pngs/rnbx0223_193.png'
query='What is the Compound Annual Growth Rate (CAGR) for total assets?'
answer=docowl.inference(image, query)
print(answer)```

Thanks, but I still get

Repo id must be in the form 'repo_name' or 'namespace/repo_name': './mPLUG/DocOwl1.5-stage1'. Use repo_type argument if needed.

Should I download it before?

@HAWLYQ
Copy link
Collaborator

HAWLYQ commented May 2, 2024

Hi, @Kkkassini , please run inference code with our model as the instruction in DocOwl1.5
For example

model_path='./mPLUG/DocOwl1.5-Omni'
docowl=DocOwlInfer(ckpt_path=model_path, anchors='grid_9', add_global_img=True)
print('load model from ', model_path)

image='./DocDownstream-1.0/imgs/DUE_Benchmark/DocVQA/pngs/rnbx0223_193.png'
query='What is the Compound Annual Growth Rate (CAGR) for total assets?'
answer=docowl.inference(image, query)
print(answer)```

Thanks, but I still get

Repo id must be in the form 'repo_name' or 'namespace/repo_name': './mPLUG/DocOwl1.5-stage1'. Use repo_type argument if needed.

Should I download it before?

Yes, you should download the model before~

@AR-javis
Copy link

AR-javis commented May 8, 2024

@HAWLYQ are you planning to add support for mplug_docowl architecture in transformers library in the future? HF throws architecture not supported error.

@HAWLYQ
Copy link
Collaborator

HAWLYQ commented May 8, 2024

@HAWLYQ are you planning to add support for mplug_docowl architecture in transformers library in the future? HF throws architecture not supported error.

Hi, @AR-javis we temporarily don't plan to support mplug_docowl in the transformers library~ we may consider it in the next version update. Thanks for your advice~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants