Instructions to use OFA-Sys/ofa-huge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OFA-Sys/ofa-huge with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OFA-Sys/ofa-huge", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Getting HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/OFA-huge/resolve/main/vocab.json
#2
by dutta18 - opened
Im trying to use the OFA-huge from the huggingface but on loading the tokenizer I'm greeted with this error.
HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/OFA-huge/resolve/main/vocab.json
on this lines
ckpt_dir='./OFA-huge'
tokenizer = OFATokenizer.from_pretrained(ckpt_dir)
Why it is showing me "Unauthorized" ? What is the correct checkpoint path ?