The Hugging Face Hub hosts hundreds of thousands of pretrained models. pipeline('sentiment-analysis') or pipeline('zero-shot-classification') gives a working model in one line; the Auto* classes (AutoTokenizer, AutoModelForSequenceClassification) load any architecture by name.
Families: encoder-only (BERT, RoBERTa, DeBERTa) for classification, NER and embeddings; decoder-only (GPT, LLaMA, Mistral) for generation; encoder–decoder (T5, BART) for translation and summarisation.
Read the model card: training data, intended use, licence, known limitations.
from transformers import pipeline
clf = pipeline("zero-shot-classification", model="facebook/bart-large-mnli")
clf("The refund never arrived", candidate_labels=["billing", "shipping", "account"])Going deeper
The Auto classes read config.json to instantiate the right architecture; AutoModelForX adds the right task head. device_map='auto' spreads big models across available devices.
Check a model's licence before use: many open-weight models restrict commercial use or require attribution.