# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shainaraza](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shainaraza/32/2854_2.png) [@shainaraza](https://discuss.huggingface.co/u/shainaraza)\
**Post date:** [December 8, 2020, 8:41pm UTC](https://discuss.huggingface.co/t/zero-shot-learning-classification/2707/1 "2020-12-08T20:41:34Z")

</div>

Is huggingface zero shot learning classification based on some pre-trained checkpoints?

---

<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))

---

<div class="post-metadata">

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

</div>

thanks for the useful information @MoritzLaurer
