What does inference mean in production ML?
PICTURE THIS: 1, 2, 2, 8
Simple meaning
Inference is running a trained model on new inputs to produce predictions, scores, or embeddings.
WHY — Train vs Serve instead of guessing?
Why interviewers care about Train vs Serve:
separate people who only read docs from people who shipped.
and tied to MLOps work.
Name the idea, why it exists, then one short example.
End with when you use it and one common pitfall.
STEPS — What happens with tokens?
Before the model can read a sentence, it goes through these steps:
- 1Inference is running a
trained model on new inputs to produce predictions, scores, or embeddings.
- 2It can be batch,
near-real-time, or online depending on latency needs.
- 3Production inference also includes
validation of inputs, logging, and fallbacks when the model or features fail.
- 4Context mix
Attention looks at nearby tokens together.
- 5Next token
The model scores what should come next.
- 6Decode
IDs turn back into readable text.
EXAMPLE — See it in action
Here's a short line you can speak, broken into clear beats:
Note: Adapt this scaffold to your own project — keep it under 60–90 seconds.
Key takeaway
Inference is running a trained model on new inputs to produce predictions, scores, or embeddings. It can be batch, near-real-time, or online depending on latency needs.