mej7.comHow AI Works

Encoder

Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.

In the original transformer, the bidirectional stack that reads the source. Decoder-only models used for chat skip this stack.

In one paragraph. In the original transformer, the bidirectional stack that reads the source. Decoder-only models used for chat skip this stack.

Related terms

Full glossary