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
|
@@ -26,6 +26,10 @@ Below is a confusion matrix calculated on zero-shot inferences for the 10 most p
|
|
| 26 |
|
| 27 |
The current version of the fine-tuned model outperforms the base model [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) by 23 percentage points (57% accuracy vs 34% accuracy) in a 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)).
|
| 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 |
|
| 31 |
|
|
|
|
| 26 |
|
| 27 |
The current version of the fine-tuned model outperforms the base model [facebook/bart-large-mnli](https://huggingface.co/facebook/bart-large-mnli) by 23 percentage points (57% accuracy vs 34% accuracy) in a 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)).
|
| 28 |
|
| 29 |
+
The chart below compares the results for the 12 most popular candidate classes in the Test split:
|
| 30 |
+
|
| 31 |
+

|
| 32 |
+
|
| 33 |
The dataset and the model are continously updated as they assist with content publishing on my website [Talking to Chatbots](https://talkingtochatbots)
|
| 34 |
|
| 35 |
|