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
Commit History
-
Adding ONNX file of this model
Verified signatureBeep boop I am the [ONNX export bot 🤖🏎️](https://huggingface.co/spaces/onnx/export). On behalf of [UAMNG](https://huggingface.co/UAMNG), I would like to add to this repository the model converted to ONNX. What is ONNX? It stands for "Open Neural Network Exchange", and is the most commonly used open standard for machine learning interoperability. You can find out more at [onnx.ai](https://onnx.ai/)! The exported ONNX model can be then be consumed by various backends as TensorRT or TVM, or simply be used in a few lines with 🤗 Optimum through ONNX Runtime, check out how [here](https://huggingface.co/docs/optimum/main/en/onnxruntime/usage_guides/models)!81ac29d
-
Update README.md (#22)
- Update README.md (2ce57c184aab62bc6ee5fe4f17192f57c185c569) Co-authored-by: Rian Dolphin <rdolphin@users.noreply.huggingface.co>d7645e1
-
Adding `safetensors` variant of this model (#5)
- Adding `safetensors` variant of this model (ce49c685ce050ea4a821cfdb1418eceacf39e88d) Co-authored-by: Nicolas Patry <Narsil@users.noreply.huggingface.co>9fc9c4e
-
Update README.md
c626438
-
add flax model
df7df4d
-
Move tokenizer.json from roberta-large
6a35c49
-
Migrate model card from transformers-repo
Read announcement at https://discuss.huggingface.co/t/announcement-all-model-cards-will-be-migrated-to-hf-co-model-repos/2755 Original file history: https://github.com/huggingface/transformers/commits/master/model_cards/facebook/bart-large-mnli/README.md231de06
-
Update rust_model.ot
a4deec4
-
Update vocab.json
210c835 -
Update merges.txt
bffd62b -
Update tokenizer_config.json
e96ffdb
-
Update config.json
048916a
-
Update config.json
a9aaa74
-
Update config.json
e086d2b
-
Update pytorch_model.bin
18895f3 -
initial commit
6797198