Skip to content
Exchange

What a serving engine does

1 file2 KB

A look inside

The first lines of serving-engines.md. The whole file is in your library once you get it.

# What a serving engine does

A free card from MenFem's Inference 101, lesson 13: Serving engines: the software between model and chip.
The lesson, with the picture and the examples: https://menfem.com/courses/inference-101/serving-engines

This is what you keep: the engine's jobs on one card, and where to look when a chip serves fewer people than it should.

1. It takes requests from many people and keeps them in a line.
2. It schedules in steps: a finished request leaves and a waiting one joins at the next step.
3. It hands out memory in small pages as each conversation grows, so little sits empty.
4. It writes the next token for everyone on the chip from one read of the model.
5. It keeps the notes from a shared start and reuses them, so the same text is not read twice.
6. Big servers often run vLLM, SGLang or NVIDIA's TensorRT-LLM. One machine at home often runs llama.cpp or Ollama.

**The rule:** Before you buy or rent more chips, check the engine: it decides how many people one chip can serve.

## Used once

From the lesson, on a made-up shop: "A customer asking a one-line question gets an answer straight away, even though someone else's long reply is still being written."

Answer: Scheduling. The engine lets requests join and leave at every step. A short answer does not have to wait for a long one to finish.

## Your turn
…and 10 more lines.

What is inside

  • serving-engines.md2 KB

How to use it

Open it beside the job and go down the 6 lines in order, then check your answer against the rule at the bottom. It is the card from Inference 101, lesson 13 (Serving engines: the software between model and chip), with one worked example from the lesson and a space for your own case.

Run before it was listed

Tested 2026-11-29: Generated from the lesson's own keep card and checked line by line against it; used once on the lesson's made-up example, which is printed in the file.