Runtimes

1 min readMarkdown
  1. 4.1What is a runtime, and what sits under my app?Your chat app sits on a runtime, which sits on an engine that does the maths on your hardware. Two apps running the same model can differ in speed because their engines differ.
  2. 4.2What is llama.cpp?llama.cpp is the open-source engine under most local AI apps. It reads GGUF files and runs on almost any hardware.
  3. 4.3What is MLX?MLX is Apple's machine learning framework for Apple silicon. On a Mac it is often the fastest way to run a model.
  4. 4.4How do I use Ollama?Ollama runs in the background, keeps a library of models and serves an API on your machine. Watch its default context length, which is too small for agents.
  5. 4.5How do I use LM Studio as a server?LM Studio is a desktop app that also runs a local server and a command line. It lets you pick MLX or llama.cpp per model and is free but closed source.
  6. 4.6When do I need vLLM or SGLang?When several people or agents share one model at once. These servers batch requests together and keep throughput high under load.
  7. 4.7What is BaseRT?BaseRT is an inference engine from Base Compute for Apple silicon, NVIDIA's GB10 and AMD's Strix chips. It reads its own .base format and serves models through the Superfluid server.
  8. 4.8What other runtimes are there?A dozen more runtimes each fill a niche. One paragraph and one use-it-when line for each.
  9. 4.9How do I call a local model from code?Point any OpenAI-compatible client at your local server with a dummy key. That base URL and a model name is the whole integration.
  10. 4.10How do I make it faster?Get the whole model onto the GPU first, because nothing else comes close. After that, the right backend and a right-sized context give the most back.
  11. 4.11How do I benchmark my own setup?Measure prompt reading and answer writing separately, warm and cold, with the same prompts every time. Distrust any number that does not state its model file and build.
  12. 4.12Which runtime should I use?Start with a desktop app, move to a background server when you want an API, and drop to the engine when you want control. The table below sorts it by platform and need.