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

[Question]: Error loading layoutlmv2-base-uncased: Missing model_state.pdparams file #9868

Open
swaranM opened this issue Feb 13, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@swaranM
Copy link

swaranM commented Feb 13, 2025

请提出你的问题

I'm trying to load the layoutlmv2-base-uncased model using PaddleNLP with the following code:

from paddlenlp.transformers import AutoModel
model = AutoModel.from_pretrained("layoutlmv2-base-uncased")

However, I get the following error:
OSError: Can't load the model for 'layoutlmv2-base-uncased'. If you were trying to load it from 'https://paddlenlp.bj.bcebos.com'

I checked the URL specified in the source code:
https://bj.bcebos.com/paddlenlp/models/transformers/layoutlmv2/layoutlmv2-base-uncased/model_state.pdparams

But when I access it directly, I receive this response:
{"code":"NoSuchKey","message":"The specified key does not exist.","requestId":"09e81b26-52b8-4863-acc1-925b5bea24c8"}

Could someone please advise on:

Whether this is a known issue,
How to correctly download the model,
Or if there's an alternative URL/resource for the layoutlmv2-base-uncased model?

@swaranM swaranM added the question Further information is requested label Feb 13, 2025
@RobbyWei
Copy link

同样遇到楼主相同的问题,请问如何解决

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

No branches or pull requests

3 participants