← Glossary
Glossary
What is Encoder?
In transformers, an encoder uses bidirectional self-attention so each position can attend to all positions. BERT is encoder-only. Good for understanding tasks (classification, NER) but not generation.
What people say
The input part