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")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-mnli") model = AutoModelForSequenceClassification.from_pretrained("facebook/bart-large-mnli") - Inference
- Notebooks
- Google Colab
- Kaggle
how can i fine tune this zero shot classification ?
#40
by siddanth-6365 - opened
I’m attempting to utilize this model for transaction categorization. I have some transactions with the correct category, and I want to fine-tune the model to adapt it to my domain and ensure accurate categorization.
So, how can I fine-tune it? Do I need to consider hypothesis and premise pairs to do so, and how would I go about it? Can anyone provide an example of code?