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

can' t load tokenizer for 'gpt2', why? #21

Open
mxwcqu opened this issue Mar 29, 2023 · 5 comments
Open

can' t load tokenizer for 'gpt2', why? #21

mxwcqu opened this issue Mar 29, 2023 · 5 comments

Comments

@mxwcqu
Copy link

mxwcqu commented Mar 29, 2023

GPT2Tokenizer.from_pretrained('gpt2'),can' t load tokenizer for 'gpt2'

@baofff
Copy link
Collaborator

baofff commented Mar 29, 2023

You can download it manually from huggingface: https://huggingface.co/gpt2 .
Then you replace 'gpt2' to the local directory where files are saved.

@mxwcqu
Copy link
Author

mxwcqu commented Mar 29, 2023

thank you

@shuishui616
Copy link

Hello! I had the same problem. But I've put the weights -autoencoder_kl.pth, caption_decoder.pth and uvit_v1.pth in the models folder. What should I do?

@Wanbi1
Copy link

Wanbi1 commented Sep 28, 2023

Hello! I had the same problem. But I've put the weights -autoencoder_kl.pth, caption_decoder.pth and uvit_v1.pth in the models folder. What should I do?

Same problem for me. Waiting for help.

@Wanbi1
Copy link

Wanbi1 commented Sep 28, 2023

You can download it manually from huggingface: https://huggingface.co/gpt2 . Then you replace 'gpt2' to the local directory where files are saved.

Knock Knock

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

4 participants