# Zero shot learning classification

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fzero-shot-learning-classification%2F2707%3E%5C
**Category:** Beginners\
**Created:** [December 8, 2020, 8:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fzero-shot-learning-classification%2F2707 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMoritzLaurer)%5C
**Post date:** [December 8, 2020, 9:15pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fzero-shot-learning-classification%2F2707%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-pipeline-for-zero-shot-text-classification%2F681))

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fzero-shot-learning-classification%2F2707)._
