Skip to main content

Glossary

Selected terms from the official Transformers glossary, rewritten for quick reference.

Adapted for this playbook from the 🤗 Transformers documentation by Hugging Face. Official page: https://huggingface.co/docs/transformers/glossary. Images © Hugging Face (documentation-images) unless noted. This is not a substitute for the upstream docs — verify against the current version.

Covers Hugging Face pages: glossary

TermMeaning
Attention maskMarks which tokens are real vs padding
Auto classFactory that reads config.json and loads the right class
CheckpointSaved weights (+ config/preprocessor)
Decoder-onlyCausal LM architecture (GPT-style)
Encoder-onlyBidirectional encoder (BERT-style)
Encoder–decoderSeq2seq (T5, Whisper, BART)
Feature extractorAudio (and some vision) preprocessor
FinetuningUpdating pretrained weights on downstream data
Hubhuggingface.co model/dataset/space hosting
Hidden stateLayer activations
KV cacheCached keys/values for faster decoding
PipelineHigh-level inference API
ProcessorMultimodal preprocessor bundle
TokenizerText ↔ token ids
TrainerHigh-level training loop

Full glossary: Hugging Face glossary.

Discussion

Comments​

Share feedback or questions about this page. No account required.

Loading comments…