Upload a custom model from existing github repo

Hi :hugs:
I have a custom pytorch model on a github repo, I wonder how can I upload/link this model/repo into a hugging-face model repo?
Do I have to create a repo on hugging-face as well and manually sync both repos everytime I make a commit to the github repo?
Is there any tutorial?

I’m aware of the PyTorchModelHubMixin class, but this is for the model compatibility level. I want to update my github’s repo and have everything synced on the hugging-face repo.

Hi,

This can be achieved using Webhooks: Webhooks. It allows you to automatically train a HF model for instance whenever a HF dataset gets uploaded.

1 Like