Open not-lain opened 3 days ago
@not-lain thanks for making this. Let me know if you want me to do this or if you want any help :)
Honestly, I'm a bit overwhelmed lately and I could use some help. Feel free to open a PR and tag me and I'll see if I have any reviews. I was thinking of doing something like this to ensure backward compatibility
def push_to_hub(...,private=None,...) :
if private is not None :
self.args.hub_private_repo = private
but feel free to ignore this and build it your own way. Thanks in advance
Feature request
Adding another parameter to the
trainer.push_to_hub
calledprivate
Motivation
a user at https://discuss.huggingface.co/t/how-to-push-trained-models-and-save-it-privately-on-hub/25538/10 has requested this, and although setting
hub_private_repo
training argument to True is a good alternative, but I agree with them on the basis that we need a unifiedpush_to_hub
method.Your contribution
I can submit a PR