when they say some transformer is a decoder only, how does cross attention work if…
- User
when they say some transformer is a decoder only, how does cross attention work if nothing is passed to the encoder?
- Assistant
A transformer model is typically composed of two main components: the encoder and the decoder. The encoder processes the input sequence and generates a set of hidden states that capture the meaning of the input. The decoder then uses these hidden states to generate the output sequence.
In the case of a transformer that is only a decoder, the encoder is typically not used. Instead, the decoder processes the input sequence directly and generates the output sequence.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.