liveBook · Manning

Transformer architecture

As explained in Data Analysis with LLMs

The Transformer is a neural-network architecture designed to model relationships in sequences, especially sequences with variable-length inputs or outputs.

The Transformer is a neural-network architecture particularly useful for learning relationships in sequences with variable-length inputs or outputs, such as text documents. It is a dominant architecture for generative AI. section 1.1

Most current language models use similar Transformer architectures, but can differ in training, text representation, and how they are offered. Those differences can affect cost and output quality for a particular task. section 8.0

Variable-length text

A text document illustrates a sequence whose length can vary; GPT’s broader uses include summarizing documents and writing code. section 1.1

How Data Analysis with LLMs covers it

How deep it goes
Defines its sequence-learning role and broad prevalence without describing internal components or implementation.
Examples
Illustrates variable-length sequences with text documents and names document summarization and code writing as GPT tasks.
How it connects
Connects Transformers with generative AI, language models, GPT, and pretraining.

Also explained in

Compare how 28 books explain transformer architecture →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Analysis with LLMs. The section links point to the parts of the book it draws on.