Instructions to use Salesforce/grappa_large_jnt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Salesforce/grappa_large_jnt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Salesforce/grappa_large_jnt")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Salesforce/grappa_large_jnt") model = AutoModelForMaskedLM.from_pretrained("Salesforce/grappa_large_jnt") - Notebooks
- Google Colab
- Kaggle
OSError: Can't load config for 'Salesforce/grappa_large_jnt'
#3
by fjakob - opened
I am not able to import the model. I am using transformers 4.5.1. When I try to run
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Salesforce/grappa_large_jnt")
model = AutoModelForMaskedLM.from_pretrained("Salesforce/grappa_large_jnt")
I get the following error:
OSError: Can't load config for 'Salesforce/grappa_large_jnt'. Make sure that:
- 'Salesforce/grappa_large_jnt' is a correct model identifier listed on 'https://huggingface.co/models'
- or 'Salesforce/grappa_large_jnt' is the correct path to a directory containing a config.json file
I am operating on a remote server, so I cant simply download all model files via a browser interface. What can I do?