Instructions to use ModelTC/roberta-base-qnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ModelTC/roberta-base-qnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ModelTC/roberta-base-qnli")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ModelTC/roberta-base-qnli") model = AutoModelForSequenceClassification.from_pretrained("ModelTC/roberta-base-qnli", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 129 Bytes
779f1d8 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:5d7e533e6f8c4ac84cdae12c2f7145c2b1bc77abace1df22bc26571bc3b6082a
size 3055
|