You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A support for HuggingFace gated model is needed. A gated model can be a model that needs to accept a license to get access. An example can be mistralai/Mistral-7B-Instruct-v0.2. When downloading the model, the user needs to provide a HF token.
Basic example
Take the mistralai/Mistral-7B-Instruct-v0.2 as an example. Once the user click accept the license. They can download the model through the huggingface_hub or git with HuggingFace acces token.
Gated huggingface models can be downloaded if the system has a cached token in place. See huggingface cli login for details. This will cache the token in the user's huggingface XDG cache that the transformers library relies on.
There are other supported methods to provide a token via configuration however I suspect they are less user friendly one such method is adding a token value via entires in hf_args for the generator selected.
Summary
A support for HuggingFace gated model is needed. A gated model can be a model that needs to accept a license to get access. An example can be mistralai/Mistral-7B-Instruct-v0.2. When downloading the model, the user needs to provide a HF token.
Basic example
Take the mistralai/Mistral-7B-Instruct-v0.2 as an example. Once the user click accept the license. They can download the model through the huggingface_hub or git with HuggingFace acces token.
The model url is https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2
Motivation
Recently there are more gated models than before. This will make garak more helpful to deal with more models.
The text was updated successfully, but these errors were encountered: