Software that runs models
A model on its own just sits there. Something has to bring it to life. Today's block: the software that runs models.
Chapters
- 0:00Introduction
- 0:06Where this fits: The AI stack
- 0:10Start here: Three things
- 0:21The job: From file to chat
- 0:31Five names: Meet the family
- 0:52Choosing: Start with you
- 1:01vLLM settings: Turning the knobs
- 1:12Wrap up
Read the transcript
Introduction
A model on its own just sits there. Something has to bring it to life.
Where this fits: The AI stack
Today's block: the software that runs models.
Start here: Three things
To use a model you need three things: the model itself, a model server to run it, and somewhere to type your questions. The video called Getting a model shows each step.
The job: From file to chat
You start with the model's weights and settings. Software loads them, runs the maths and manages memory. Then your apps send it questions and get replies.
Five names: Meet the family
vLLM aims for fast, memory savvy serving. TensorRT LLM is NVIDIA's library for its GPUs. SGLang serves language and multimodal models. llama.cpp runs on a wide range of hardware. And Ollama helps you get open models running.
Choosing: Start with you
How to choose? Does it support your model and its format? Does it run well on your hardware? And how many people will use it?
vLLM settings: Turning the knobs
In vLLM, these set how much GPU memory it may use, how long the context can be, how many GPUs share the work, and which number format it uses.
--gpu-memory-utilization
--max-model-len
--tensor-parallel-size
--dtypeWrap up
Pick what fits you, then measure it.
Sources
- github.com/vllm-project/vllm
- github.com/NVIDIA/TensorRT-LLM
- github.com/sgl-project/sglang
- github.com/ggml-org/llama.cpp
- github.com/ollama/ollama
- docs.vllm.ai/en/stable/configuration/engine_args
- docs.vllm.ai/en/stable/configuration/optimization