跳到主要内容Skip to main content

TransformerTransformer

Transformer

  • 核心概念Core concepts
  • 第四站 · 看懂Station 4 · Under the Hood
解决什么问题What problem it solves

当前所有主流大模型共用的底层架构。The architecture underneath every mainstream large model today.

这是什么What it is

一种神经网络结构,核心是「注意力机制」,用来处理一整段文本之间的关系。

它能并行处理整句话,而不是一个词一个词往后读——这是它能训练出万亿参数规模的原因。

A neural network structure built around the attention mechanism, handling the relationships across a whole passage of text.

It processes a sentence in parallel rather than one word at a time — which is why it scales to trillions of parameters.

为什么需要知道Why it matters

它是大模型的「根」。理解它,你才能理解上下文窗口、幻觉、KV 缓存这些概念从哪来。It is the root of large models. Understand it and the origin of context windows, hallucination and the KV cache becomes clear.

出处Sources
  • Attention Is All You Need(论文)Attention Is All You Need (paper) ↗
  • Hugging Face 课程(Transformer)How do Transformers work? (Hugging Face NLP course) ↗