← All drills

Running and Hosting Models

What you'll be able to do

Decide where a model should run and what it will cost, the question every team faces once a model leaves the notebook, using numbers you measured yourself instead of rules of thumb.

⌁ Every company that puts a language model into a product makes this choice between running it themselves, on rented or owned hardware, and paying a hosted service per token, and it is revisited as traffic grows.
Start this internship
Create an account to unlock the 4 sections, the workbench, and askThili.
Begin

Sections

1. Why this course: from what you teach to where a model runs
🔒 locked
2. What a Model Needs: Memory, Batching and Bandwidth
🔒 locked
3. Four Ways to Serve One Model
🔒 locked
4. Rent or Pay per Token?
🔒 locked

Dig deeper

📄Efficient Memory Management for Large Language Model Serving with PagedAttention (Kwon et al., 2023, SOSP, arXiv:2309.06180)
paper
🔗Ollama API reference (the local HTTP API shown in Four Ways to Serve One Model)
docs
🔗Ollama OpenAI-compatible API (the chat-completions request shape)
docs
🔗llama.cpp server (serving a GGUF model locally)
docs
🔗EleutherAI Pythia-70m model card (the small model measured in the lessons)
article