Created
August 13, 2020 18:19
-
-
Save epwalsh/bcc92279942e9a8db0e545170f11a134 to your computer and use it in GitHub Desktop.
How to upload transformer weights and tokenizers from AllenNLP models to HuggingFace's model hub: step 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transformer_dir = "~/my-cool-transformer" | |
transformer_embedder.transformer_model.save_pretrained(transformer_dir) | |
tokenizer.tokenizer.save_pretrained(transformer_dir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment