This is
DeBERTa-v3-base
fine-tuned with multi-task learning on 600+ tasks of the
tasksource collection
.
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 for arbitrary labels [ZS].
Natural language inference [NLI]
Hundreds of previous tasks with tasksource-adapters [TA].
Further fine-tuning on a new task or tasksource task (classification, token classification or multiple-choice) [FT].
[ZS] Zero-shot classification pipeline
from transformers import pipeline
classifier = pipeline("zero-shot-classification",model="sileod/deberta-v3-base-tasksource-nli")
text = "one day I will see the world"
candidate_labels = ['travel', 'cooking', 'dancing']
classifier(text, candidate_labels)
NLI training data of this model includes
label-nli
, a NLI dataset specially constructed to improve this kind of zero-shot classification.
[NLI] Natural language inference pipeline
from transformers import pipeline
pipe = pipeline("text-classification",model="sileod/deberta-v3-base-tasksource-nli")
pipe([dict(text='there is a cat',
text_pair='there is a black cat')]) #list of (premise,hypothesis)# [{'label': 'neutral', 'score': 0.9952911138534546}]
[TA] Tasksource-adapters: 1 line access to hundreds of tasks
# !pip install tasknetimport tasknet as tn
pipe = tn.load_pipeline('sileod/deberta-v3-base-tasksource-nli','glue/sst2') # works for 500+ tasksource tasks
pipe(['That movie was great !', 'Awful movie.'])
# [{'label': 'positive', 'score': 0.9956}, {'label': 'negative', 'score': 0.9967}]
The list of tasks is available in model config.json.
This is more efficient than ZS since it requires only one forward pass per example, but it is less flexible.
This model ranked 1st among all models with the microsoft/deberta-v3-base architecture according to the IBM model recycling evaluation.
https://ibm.github.io/model-recycling/
Software and training details
The model was trained on 600 tasks for 200k steps with a batch size of 384 and a peak learning rate of 2e-5. Training took 15 days on Nvidia A30 24GB gpu.
This is the shared model with the MNLI classifier on top. Each task had a specific CLS embedding, which is dropped 10% of the time to facilitate model use without it. All multiple-choice model used the same classification layers. For classification tasks, models shared weights if their labels matched.
deberta-v3-base-tasksource-nli huggingface.co is an AI model on huggingface.co that provides deberta-v3-base-tasksource-nli's model effect (), which can be used instantly with this sileod deberta-v3-base-tasksource-nli model. huggingface.co supports a free trial of the deberta-v3-base-tasksource-nli model, and also provides paid use of the deberta-v3-base-tasksource-nli. Support call deberta-v3-base-tasksource-nli model through api, including Node.js, Python, http.
deberta-v3-base-tasksource-nli huggingface.co is an online trial and call api platform, which integrates deberta-v3-base-tasksource-nli's modeling effects, including api services, and provides a free online trial of deberta-v3-base-tasksource-nli, you can try deberta-v3-base-tasksource-nli online for free by clicking the link below.
sileod deberta-v3-base-tasksource-nli online free url in huggingface.co:
deberta-v3-base-tasksource-nli is an open source model from GitHub that offers a free installation service, and any user can find deberta-v3-base-tasksource-nli on GitHub to install. At the same time, huggingface.co provides the effect of deberta-v3-base-tasksource-nli install, users can directly use deberta-v3-base-tasksource-nli installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
deberta-v3-base-tasksource-nli install url in huggingface.co: