Instructions to use reddgr/zero-shot-prompt-classifier-bart-ft with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reddgr/zero-shot-prompt-classifier-bart-ft with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="reddgr/zero-shot-prompt-classifier-bart-ft")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("reddgr/zero-shot-prompt-classifier-bart-ft") model = AutoModelForSequenceClassification.from_pretrained("reddgr/zero-shot-prompt-classifier-bart-ft", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -24,7 +24,7 @@ Below is a confusion matrix calculated on zero-shot inferences for the 10 most p
|
|
| 24 |
|
| 25 |

|
| 26 |
|
| 27 |
-
As of the first version of the model uploaded to hub, the fine-tuned version outperforms the base model [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) by
|
| 28 |
|
| 29 |
The dataset and the model are continously updated as they assist with content publishing on my website [Talking to Chatbots](https://talkingtochatbots)
|
| 30 |
|
|
|
|
| 24 |
|
| 25 |

|
| 26 |
|
| 27 |
+
As of the first version of the model uploaded to hub, the fine-tuned version outperforms the base model [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) by 17 percentage points (51% accuracy vs 34% accuracy) in this test set with 10 candidate zero-shot classes (the most frequent categories in the test split of [reddgr/nli-chatbot-prompt-categorization](https://huggingface.co/datasets/reddgr/nli-chatbot-prompt-categorization) at the time of the first model upload).
|
| 28 |
|
| 29 |
The dataset and the model are continously updated as they assist with content publishing on my website [Talking to Chatbots](https://talkingtochatbots)
|
| 30 |
|