HarmonyFidelisHarmonyFidelis
登录
AI 基础LLM 原理LLM 技能评估术语表构建器程序
Aura 学院

第 2 节 · 机制

大语言模型如何工作

LLM 根据上下文预测 Token。它生成概率较高的延续,默认并不会查询一个保证正确的事实库。

初级至中级25 分钟

学完后你可以

  • Explain tokens, embeddings, attention and the Transformer at a practical level.
  • Separate pretraining, post-training and inference.
  • Predict why context length, sampling and external memory affect results.

Vue interactive

Explorez cette leçon à votre rythme

Choisissez une vue. Le détail n’apparaît que lorsque vous le demandez.

Interaction locale · aucune donnée envoyée

Concept 1 / 5

Tokenization

Text is split into learned units called tokens. A token is not always a word; spelling, language and formatting change token counts and costs.

常见混淆

Afficher +Réduire −
  • A token is not a stable word unit, so word counts and token counts are not interchangeable.
  • A larger context window does not guarantee uniform attention; important evidence can still be missed.
  • Post-training can shape behavior, but it does not turn generated probabilities into guaranteed truth.

关键词

Afficher +Réduire −
  • token
  • tokenizer
  • embedding
  • attention
  • Transformer
  • pretraining
  • SFT
  • RLHF
  • DPO
  • inference

一手研究

Voir les sources +Réduire −
Attention Is All You NeedPrimary paper introducing the Transformer architecture.SentencePiecePrimary paper on language-independent subword tokenization from raw text.Training language models to follow instructionsPrimary paper on supervised fine-tuning and reinforcement learning from human feedback.Direct Preference OptimizationPrimary paper presenting direct optimization from preference pairs.Lost in the MiddleStudy of how language models use information placed at different context positions.
上一节: AI、机器学习与深度学习下一节: LLM 工程技能