Instructions to use prajjwal1/roberta-large-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prajjwal1/roberta-large-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="prajjwal1/roberta-large-mnli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("prajjwal1/roberta-large-mnli") model = AutoModelForSequenceClassification.from_pretrained("prajjwal1/roberta-large-mnli") - Notebooks
- Google Colab
- Kaggle
Missing merges.txt
#2
by zhangyi0105 - opened
When i use the model downloaded at local device, like this:
model_name_or_path = "./property/roberta-large-mnli"
tokenizer = AutoTokenizer.from_pretrained(model_name_or_path)
There is a error arise:
with open(merges_file, encoding="utf-8") as merges_handle:
TypeError: expected str, bytes or os.PathLike object, not NoneType
It needs the "merges.txt" file.