跳到主要内容Skip to main content

推理Inference

Inference

  • 核心概念Core concepts
  • 第一段 · 进门Stage 1 · Getting In
  • 引用核验 2026-11-09refs checked 2026-11-09
解决什么问题What problem it solves

训练完之后,真正拿来回答你问题的过程。The model you trained is now answering real queries — a different phase with different costs.

这是什么What it is

用一个已经训练好的模型做计算、产出结果的过程。

和训练相反:训练需要大量算力,推理是持续的小规模计算。

Running a trained model to produce an answer. Often confused with "reasoning", but inference simply means using the model.

Training runs forward, backward and update; inference only runs forward, so it needs far less memory and compute, but still generates token by token.
训练要做前向 + 反向 + 更新;推理只做前向,所以显存和算力需求小得多,但仍是逐 token 生成。Training runs forward, backward and update; inference only runs forward, so it needs far less memory and compute, but still generates token by token.
为什么需要知道Why it matters

你每次和模型对话、每次它在本地生成内容,用的都是推理。算速度和成本时说的也是它。Training and inference have different cost structures. It explains why a model can be cheap to make and expensive to serve.

出处Sources
  • 本地推理的速度受什么影响What affects local inference speed ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →