New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integration with the Hugging Face Hub #24
Comments
Hello @osanseviero, |
Yes, we have a guide for this at https://huggingface.co/docs/hub/models-adding-libraries My suggestion is to begin with adding one-two models manually, then add downstream functionality to download models from the Hub. The automatic |
Hi @osanseviero,
Uploading a model to the HubAny Pythae model can be easily uploaded using the method >>> my_vae_model.push_to_hf_hub(hf_hub_path="your_hf_username/your_hf_hub_repo") Note: If Downloading models from the HubEquivalently, you can download or reload any Pythae model directly from the Hub using the method >>> from pythae.models import AutoModel
>>> my_downloaded_vae = AutoModel.load_from_hf_hub(hf_hub_path="path_to_hf_repo") |
This is very very cool, nice work 🥳 🤗 One recommendation: Models have model cards which are just |
Re-opening this issue to add model cards and tags |
Hi @osanseviero, ---
tags:
- pythae
--- Is there any other way to add the library label automatically when pushing the model without using the Thank you for your help! |
Yes, the way we add metadata is by creating a |
Are there any more tasks to take on for this issue to close it? I'm happy to help out! |
Hi @NimaBoscarino, |
The PR is now merged. Thanks a lot for your contribution! |
Cool! Thanks for letting me know! |
Is your feature request related to a problem? Please describe.
As I train models, I would like to easily be able to share them with other people and document them well. I would also like to be able to access other trained models from the community.
Describe the solution you'd like
I would like to have an integration with the Hugging Face Hub (disclaimer: I'm a member of the OS team there). I would like to be able to do
model.push_to_hub("osanseviero/my_vae")
and get a model directly in the Hub. Some of the benefits of sharing models through the Hub:The text was updated successfully, but these errors were encountered: