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

Tagged versions of model in new model hub don't work #8521

Closed
brandenchan opened this issue Nov 13, 2020 · 5 comments
Closed

Tagged versions of model in new model hub don't work #8521

brandenchan opened this issue Nov 13, 2020 · 5 comments

Comments

@brandenchan
Copy link
Contributor

brandenchan commented Nov 13, 2020

Our model, deepset/roberta-base-squad2 was originally uploaded under the old style model hub.

I have committed a new version of the deepset/roberta-base-squad2 model onto the model hub using the new git based system introduced in transformers 3.5.0. I have 2 tags (v1.0 and v2.0) that I have also pushed to the repo. The tags show up in the model hub drop down but when I click on either of the tags, it says "Not Found: Error: Invalid rev id".

It seems I cannot load the models when I specify revision=v1.0 or revision=v2.0. If I don't specify a revision, it seems to load a model though I'm not sure which. This is the code I used:

tokenizer = AutoTokenizer.from_pretrained(
  "deepset/roberta-base-squad2",
  revision="v2.0" # tag name, or branch name, or commit hash
)

What steps can I take so that I can access both versions through the model hub website, and by specifying name and revision?

Thanks,
Branden

@julien-c

@julien-c
Copy link
Member

Looking into it right now (cc @Pierrci)

@julien-c
Copy link
Member

looks like we were supporting lightweight tags but not annotated ones.

@julien-c
Copy link
Member

Should be fixed: https://huggingface.co/deepset/roberta-base-squad2/tree/v2.0

@brandenchan
Copy link
Contributor Author

That fixed the problem! Thanks very much

@julien-c
Copy link
Member

Thanks, and please keep the feedback coming! <3

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

2 participants