Closed border-b closed 6 months ago
Noticed the token is actually retrieved with os.environ['HF_ACCESS_TOKEN']
. So I guess that should work. But I guess it would still be nice to have an option to add the token as an optional argument. Closing the issue.
Hi @border-b,
Yes, the environment variable HF_ACCESS_TOKEN
can be used to get under the gated model.
You can also consider importing SynCode logit processor and then can use all HF transformers API as in this notebook. We haven't added README for that but the notebook example should be clear enough.
Currently we can not use models with gated repos from huggingface since they need authentication. Is there a way to pass the huggingface token to access the gated repos from huggingface?