InferenceAI

Enter at least two characters to search.

Start free
Research library/Transformers and LLMs

TRANSFORMERS AND LLMS · 2017

Transformer

Follow a sequence through embeddings, attention, residual connections, and position-wise computation.

ORIGINAL RESEARCHAttention Is All You Need

Vaswani et al. · 2017

Open source paper ↗
INTERACTIVE ARCHITECTURE01 / 07
Token IDs
Contextual representations

STAGE 01

Token + position embeddings

x + p

Map token IDs to vectors and add order information.

LIVE ATTENTION LAB

Choose a query token to see its normalized attention across the sequence.

softmax(QKᵀ / √dₖ)
AI
30%
models
26%
learn
23%
context
21%

The query from AI is compared with every key. The resulting weights mix the value vectors. These illustrative vectors are fixed for this demo.

TAKE THE NEXT STEP

Turn understanding into practice

Explore the original paper, then apply the core idea in a coding challenge. Architecture diagrams here are teaching simplifications, not executable model implementations.