📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is a decoder in a Transformer?

A. The part that generates output tokens one by one, attending to previous output and encoder context ✅
B. The part that only reads input
C. The part that trains the model
D. The part that deletes tokens

Correct Answer: A. The part that generates output tokens one by one, attending to previous output and encoder context

Explanation

Decoders produce sequences autoregressively, as in GPT-style models.