How to get config.json from .pt loaded model?
Hi, i have a .pt model loaded, and i would like now to upload It to hugging face-hub. But according to this tutorialModel sharing and uploading — transformers 3.2.0 documentationi need:a config.json file, a pytorch_model.bin file, a special_tokens_map.json, etc…How can i get these files from my .pt saved model?Thanks in advanced.
2022-04-11T11:06:42Z
Hello, can you save and push your model and tokenizer withmodel.save_pretrained(directory)andtokenizer.save_pretrained()? The files should be in the specified directory.