OlivierCR:

text_generator.save_pretrained('modeldir')


Hi,
Thank you for your comment
this give me this error
HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/model2/resolve/main/config.json