-
Notifications
You must be signed in to change notification settings - Fork 632
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
push_to_hub_keras should support multiple models #533
Comments
I'm currently working on this for GAN sprint in which you'd have to push two models to one repository. (leaving notes to myself)
The widget will never work anyway if the pipeline is not overridden so it's fine imo. |
I think following is better so people can name the folders (when we do list it's more like model_0, model_1 etc)
Which looks like this: If no one has strong design opinions (I'd rather have you have them 😅) I'll fix the plot path in the model card and write tests. |
I feel only the following sections are needed:
Maybe before 4, we can have a section saying "this repository consists of X models". Then before 4 and before 6, have a heading with "Further information for model A|B". WDYT? We could do this by breaking the readme function a bit I feel. |
Makes sense, I will change the card generation procedure. Thanks a lot for the input. |
Sure, I like this idea 😄 . Would be very helpful especially in the case of GANs. I'd really be curious to know if other folks want this feature. As for model card, I think we can either do what @osanseviero is describing, or just leave it as-is. I'm guessing this would only be used when models are trained together. People probably shouldn't be dumping unrelated models in the same repo and we don't want to encourage that. |
Yes, good point @nateraw. TBH since this is not a feature for which I expect significantly high usage, I think we can go as-is and iterate if we see significant usage |
@merveenoyan (cc @osanseviero @nateraw) I'm jumping into the discussion, hope it's not outdated 😬 Since |
@Wauplin we decided not to go with it, it wasn't cumbersome anyway it was just a matter of pairing two models that were trained according to each other. assume you run experiments with a pipeline that has CNN model and an RNN model, it's a little cumbersome if someone is serializing these models in two different repositories, as in, you do different experiments, so your monday CNN should be with monday RNN and from the repository you should be able to tell that.
so when user is loading these models, they'll load them separately. My solution have one repository that has two models:
So when someone loads it, they can load it with one line of code. Also pinging @sayakpaul since we discussed about this for dreambooth event (a case where there's two models that belong together). |
Hi @merveenoyan , thanks for reopening the topic! Explanation are clear to me 😄 That said, not sure what should live in |
It's a minor UX improvement for
push_to_hub_keras
.Some applications like RL or non-transformers encoder-decoder networks (CNN encoder RNN decoder) have multiple models instead of one model.
We could pass a list to
model
, get the model names and save those models individually under different folders and push. (check if list or a model with isinstance first)An alternative is
git pull
everytime we push withpush_to_hub_keras
(which is cumbersome in a notebook) and call push_to_hub_keras repeatedly for every model.cc: @osanseviero
The text was updated successfully, but these errors were encountered: