Instructions to use Azma-AI/deberta-base-multi-label-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azma-AI/deberta-base-multi-label-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Azma-AI/deberta-base-multi-label-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Azma-AI/deberta-base-multi-label-classifier") model = AutoModelForSequenceClassification.from_pretrained("Azma-AI/deberta-base-multi-label-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| # Model Card for DeBERTa-v3-base-tasksource-nli | |
| This is [DeBERTa-v3-base](https://hf.co/microsoft/deberta-v3-base) fine-tuned with multi-task learning on 600 tasks. | |
| This checkpoint has strong zero-shot validation performance on many tasks (e.g. 70% on WNLI), and can be used for: | |
| - Zero-shot entailment-based classification pipeline (similar to bart-mnli), see [ZS]. | |
| - Natural language inference, and many other tasks with tasksource-adapters, see [TA] | |
| - Further fine-tuning with a new task (classification, token classification or multiple-choice). | |
| # [ZS] Zero-shot classification pipeline | |
| ```python | |
| from transformers import pipeline | |
| classifier = pipeline("zero-shot-classification",model="Azma-AI/deberta-base-multi-label-classifier") | |
| text = "one day I will see the world" | |
| candidate_labels = ['travel', 'cooking', 'dancing'] | |
| classifier(text, candidate_labels) | |