Push_to_hub() from HuggingFaceEstimator in AWS Sagemaker
Hi,I guess there is an easy answer but I did not find it.Use case: I did train a model in a HF Training DLC in AWS SageMaker through aHuggingFaceEstimator.fit(). Now, I would like to upload this trained model to the model hub of Hugging Face.What is the equivalent  code to themodel.push_to_hub()for a HuggingFaceEstimator in AWS Sagemaker?
2021-12-06T07:41:04Z
Hello,If you want to push your model to the Hugging Face Hub you can do this directly inside thetrain.pyas shown here:notebooks/sagemaker/14_train_and_push_to_hub at master · huggingface/notebooks · GitHubor you need to download themodel.tar.gzand push it to hub afterwardsDocumentation. There is currently no method inside thesagemaker-sdkto push models to the hub after training.