Loading...
Transformers process all tokens in parallel with attention, which trains much faster on GPUs and handles long-range links in text better than RNNs.
Most current LLMs are based on the transformer, though other architectures, like state space models, are also being explored.
Encoders read the whole input to build representations, useful for classification and embeddings. Decoders generate text token by token, as chat LLMs do.