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

use with transformers #13

Open
vinnitu opened this issue Oct 2, 2020 · 0 comments
Open

use with transformers #13

vinnitu opened this issue Oct 2, 2020 · 0 comments

Comments

@vinnitu
Copy link

vinnitu commented Oct 2, 2020

from transformers import AutoTokenizer, AutoModelForCausalLM

path = './gpt2/m_checkpoint-3364613'

tokenizer = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path)

image

OSError: Model name './gpt2/m_checkpoint-3364613' was not found in tokenizers model name list (gpt2, gpt2-medium, gpt2-large, gpt2-xl, distilgpt2). We assumed './gpt2/m_checkpoint-3364613' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.json', 'merges.txt'] but couldn't find such vocabulary files at this path or url.

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

1 participant