CurioChecking the API

Answers from your own sources, with the page to prove it.

Add PDFs, web pages, videos and notes, or name a topic to learn. Curio answers only from those sources, cites every claim, and turns them into lessons for your level.

You asked

How many layers does the Transformer encoder have?

The encoder is a stack of six identical layers, each with a self-attention sub-layer and a feed-forward network1.

1Attention Is All You Needpage 3