How can I download my private model?
I subscribe huggingface for private model repository.I upload my model but how can I use my model?I can`t use it because when I use it with model name(eg, kykim/bert-kor-large) for fine-tuning, command line shows that this is not listed inhuggingface.co/models.Thanks.
2020-12-30T08:02:15Z
cc@julien-c
2020-12-30T09:24:53Z
@kykimThanks for your question/feedback, this is helpful!Can you copy the command you’re launching here?To instantiate a private model fromtransformersyou need to add ause_auth_token=Trueparam (should be mentioned when clicking the “Use in transformers” button on the model page):tokenizer = AutoTokenizer.from_pretrained("username/model_name", use_auth_token=True)

model = AutoModelForMaskedLM.from_pretrained("username/model_name", use_auth_token=True)If you’re using a fine-tuning script, for now you will have to modify it to add this parameter yourself (to all thefrom_pretrained()calls).We’ll make sure to update the code in the repo in the coming weeks too (cc@sgugger)
2020-12-30T22:01:13Z
julien-c:use_auth_token=TrueShould we try to use the auth_token by default when the user is logged in?
2021-01-05T08:01:25Z
It works.I also useAutoConfig.from_pretrained(model_name), which also needsuse_auth_token.Thanks a lot!