sayef / fsner

Few-shot Named Entity Recognition
119 stars 6 forks source link

Huggingface token required #12

Open codebyte17 opened 1 year ago

codebyte17 commented 1 year ago

When i run the following command : fsner trainer --pretrained-model fsner-bert-base-uncased --mode xample-batch-ratio 1/3 --max-epochs 25 --device cpu --gpus -1 --strategy ddp

Issue: Repository Not Found for url: https://huggingface.co/fsner-bert-base-uncased/resolve/main/tokenizer_config.json. Please make sure you specified the correct repo_id and repo_type. If you are trying to access a private or gated repo, make sure you are authenticated. Invalid username or password.

and

File "C:\Users\xyz\Desktop\fsner-master\vene\Lib\site-packages\transformers\utils\hub.py", line 433, in cached_file
raise EnvironmentError( OSError: fsner-bert-base-uncased is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models' If this is a private repository, make sure to pass a token having permission to this repo with use_auth_token or log in with huggingface-cli login and pass use_auth_token=True. (vene) PS C:\Users\Skipper\Desktop\fsner-master\src\fsner>