C.W.K.
Stream
Lesson 05 of 05 · published

Engines and Ecosystem

~20 min · ollama, llamacpp, vllm, lm-studio

Level 0Downloader
0 XP0/41 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

The engine landscape in one screen

ToolRoleBest for
OllamaLocal server with REST API + CLIApp integration, daily driver, fallback path
llama.cppFoundational C/C++ inference engineCustom builds, embedded, raw control
LM StudioDesktop GUI app for local modelsExploration, beginners, model comparison
mlx-lmPython API on top of MLXApple Silicon power users, custom pipelines
vLLMThroughput-optimized batched serverMulti-user serving, high QPS
TGI (Text Generation Inference)HuggingFace's production serverHF-native deploys, sharded multi-GPU
HuggingFace HubModel registryWhere almost every open model lives

What this quest emphasizes

Ollama is the spine of this quest because it's the simplest correct path from nothing installed to local model behind a stable HTTP API. Most everything we build later — streaming, tool use, vision, the adapter pattern — is shown against Ollama's API and then mapped to the others. The serving track later demystifies vLLM, llama.cpp server, and TGI as variants of the same idea.

Don't conflate engine with model

The engine runs the model. The model is the weight file (GGUF / MLX / safetensors). You can run the same Qwen 2.5 7B model in Ollama, llama.cpp server, LM Studio, or mlx-lm. Pick the engine that fits your operational shape; the model itself is portable.

Code

One model, four engines·bash
# Same Qwen 2.5 7B Instruct, four ways:

# 1. Ollama (background daemon + REST API)
ollama pull qwen2.5:7b
curl http://localhost:11434/api/chat -d '{"model":"qwen2.5:7b","messages":[{"role":"user","content":"hi"}],"stream":false}'

# 2. llama.cpp server (manual GGUF)
# (after building llama.cpp)
./llama-server -m qwen2.5-7b-instruct-q4_k_m.gguf -c 4096

# 3. LM Studio (GUI)
# Pick the model in the LM Studio UI and click "Local server"

# 4. mlx-lm (Apple Silicon, MLX format)
mlx_lm.generate --model mlx-community/Qwen2.5-7B-Instruct-4bit --prompt "hi" 

External links

Exercise

Install Ollama if you haven't. Then list which other engines from the table you actually have any reason to install in the next 30 days, and one sentence each on why. Resist installing them just because they exist.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.