# Zero shot learning classification

**URL:** <https://discuss.huggingface.co/t/zero-shot-learning-classification/2707>\
**Category:** Beginners\
**Created:** [December 8, 2020, 8:41pm UTC](https://discuss.huggingface.co/t/zero-shot-learning-classification/2707 "2020-12-08T20:41:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MoritzLaurer](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/moritzlaurer/32/18932_2.png) [@MoritzLaurer](https://discuss.huggingface.co/u/MoritzLaurer)\
**Post date:** [December 8, 2020, 9:15pm UTC](https://discuss.huggingface.co/t/zero-shot-learning-classification/2707/2 "2020-12-08T21:15:40Z")

</div>

When you select the tag zero-shot-classification in the model hub ([see here](https://huggingface.co/models?filter=zero-shot-classification)) you can see all the models for the task. The default in the pipeline is `facebook/bart-large-mnli` (see [source code here](https://github.com/huggingface/transformers/blob/master/src/transformers/pipelines.py#L2790))

Hugging Face’s zero-shot classification is always based on models pre-trained on Natural Language Inference datasets (like mnli). So under the hood, it’s actually doing an NLI classification, it’s just abstracting that part away for you ([see details and further links here](https://discuss.huggingface.co/t/new-pipeline-for-zero-shot-text-classification/681))

---

_[View the full topic](https://discuss.huggingface.co/t/zero-shot-learning-classification/2707)._
