Passing 'use_auth_token' in the Spacy Config file for NER Training

#2
by krunwal - opened

I am trying to use medbert.de for a fine-tuning NER task. I am aware that medbert.de is a private repository and one needs to use an authentication token to load it.
My question would be, how and where to pass the use_auth_token parameter. The screenshot of the config file is attached below

config_spacy.PNG

I am trying to use medbert.de for a fine-tuning NER task. I am aware that medbert.de is a private repository and one needs to use an authentication token to load it.
My question would be, how and where to pass the use_auth_token parameter. The screenshot of the config file is attached below

config_spacy.PNG

You could try to use the token by embedding it as an environment variable, or login with the HF cli before. I haven't found anything in the spacy docs.

@thedust Thank you for reply. The second option of logging in with the HF cli should create a problem, as it needs us to pass to use the use_auth_token as False.
Could you be a little more specific about using the token as an environment variable ? Unfortunately, I could not find anything in the spacy docs too. Thanks in advance

@thedust I am closing this issue, since the HF cli solution has work after saving the token credentials to git. Thank you for your help.

krunwal changed discussion status to closed

Sign up or log in to comment