Instructions to use facebook/bart-large-mnli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/bart-large-mnli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-mnli") model = AutoModelForSequenceClassification.from_pretrained("facebook/bart-large-mnli", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
File size: 135 Bytes
a4deec4 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:b48c2b60d9a63b6ad67d99720b4d41ecb235287f10fcaeaae412291cdaf28578
size 2041274038
|