In LM Studio, how are the inference engines shipped and updated separately from the app, and when does that bite?
answer
- engines are separate packages
- hot-swappable since 0.3.0
- one selected engine per model format
- update touches selected runtimes unless --all
- a feature gated on a runtime version
basics
~20 sLM Studio packages its engines (llama.cpp, MLX) as separate runtimes, downloadable and hot-swappable without an app update since LM Studio 0.3.0. One runtime is selected per model format, and an outdated or CPU-only runtime explains missing features or GPU use.
solid answer
~40 sLM Studio's **LM Runtimes** are individually packaged engines, such as `llama.cpp`, that run particular model formats. Since LM Studio 0.3.0 you can download and hot-swap them without a full app update, from the runtime manager (`Cmd`/`Ctrl` + `Shift` + `R`) or with `lms runtime`. A runtime is selected per model format. `lms runtime update` checks only the selected runtimes unless you pass `--all`, then selects the new version. It bites in three places. A feature can be gated on a runtime version: Max Concurrent Predictions needs the llama.cpp runtime v2.0.0. The selected build may not see your GPU, which `lms runtime survey` reports. And an air-gapped machine cannot fetch runtimes at all.
code
bash · 5 lineslms runtime ls # what is installed
lms runtime survey # can the selected engines see the GPU?
lms runtime update --dry-run # plan only: selected runtimes, current -> target
lms runtime update --yes # apply without a prompt (needed in scripts)
lms runtime select --latest # point selections at the newest installed versionsgo deeper
Recall that LM Studio's engines, such as llama.cpp and MLX, are separate runtimes you can update without updating the app.
Explain per-format selection, what lms runtime update covers by default, and why a feature can need a newer runtime than you have.
Show the diagnosis for an idle GPU or two machines behaving differently: survey the selected engine, compare installed runtimes, and update with dry-run then yes in scripts.
Weigh pinning engine versions across a team against tracking updates, given reproducibility, new model support and offline customers.
## Engines are not the app LM Studio is a shell around **inference engines**, the libraries that execute a model. Its docs call them **LM Runtimes**: individually packaged software libraries that run certain formats of models, such as `llama.cpp` for GGUF files, plus the MLX engine on Apple Silicon. **Since LM Studio 0.3.0**, runtimes can be downloaded and **hot-swapped without a full LM Studio update**. That split has consequences. Two machines on the same app version can run different engine versions, and an engine update can change behaviour while the app version stays put. ## Selecting a runtime LM Studio keeps a **selection per model format**: one chosen engine and version for GGUF, one for MLX, and so on. When `lms runtime select` sets an engine, it reports which format it was selected for. Several versions can be installed side by side, and you choose among them. The tools: | Command | What it does | |---|---| | `lms runtime ls` | Lists installed runtimes | | `lms runtime get` | Downloads a runtime; queries like `llama.cpp`, `llama.cpp:cuda` or `[email protected]` narrow the match | | `lms runtime select` | Sets the active engine for a format; `--latest` picks the newest installed version | | `lms runtime update` | Updates installed runtimes, and selects the new version | | `lms runtime remove` | Uninstalls runtime packs | | `lms runtime survey` | Surveys the hardware the selected engines can use | In the app, the runtime manager opens with `Cmd` + `Shift` + `R` on a Mac or `Ctrl` + `Shift` + `R` on Windows and Linux. ## How `lms runtime update` behaves The update command is written to be safe by default: - **It only checks the selected runtimes** unless you pass `-a` / `--all`. Its own message says "Pass --all to include all". - **`--dry-run`** prints the update plan, current version to target, without downloading anything. - **It asks for confirmation.** In a non-interactive shell, such as a provisioning script, it refuses and exits unless you pass `-y` / `--yes`. - **`--channel`** queries another channel, for example `stable` or `beta`. - **After downloading, it updates the selection**, so the next load uses the new version. Because older versions can stay installed, rolling back means selecting the previous version again. ## When it bites 1. **A feature gated on the engine.** LM Studio's parallel-requests page says Max Concurrent Predictions, set in the loader's advanced settings and 4 by default, works on the llama.cpp engine and needs the GGUF runtime upgraded to **llama.cpp v2.0.0**. An up-to-date app with an old runtime will not have it. 2. **The wrong build for the hardware.** On a Windows desktop with an RTX card, the selected llama.cpp runtime has to be one that can use that GPU. `lms runtime survey` shows each selected engine's view of the hardware, with statuses such as "GPU driver unsupported" or "No supported GPUs". A model that loads but never touches the GPU often traces back here, not to the model. 3. **No network.** Checking for and downloading runtimes needs connectivity. An air-gapped install has to get its runtimes while it is still connected, the same as its models. 4. **Drift between teammates.** If two machines behave differently on the same model and app version, compare `lms runtime ls` before anything else. ## A short routine before blaming the model When a model behaves differently than it did last week, or than on a colleague's machine: 1. `lms runtime ls`: note the engine and version selected for the model's format. 2. `lms runtime survey`: confirm the selected engine sees the GPU you expect. 3. `lms runtime update --dry-run`: see whether a newer version exists for what you have selected. 4. Change one thing, either update or select an older version, and retest the same prompt. Doing it in that order keeps an engine change from being confused with a model or settings change. ## Where this stops Max Concurrent Predictions is a load setting here. How batching many requests raises throughput is a separate serving topic. Which GGUF quantizations a runtime can execute belongs to the GGUF format material.
- On a Windows RTX desktop, a GGUF model loads but the GPU stays idle. What do you check in the runtimes?Run `lms runtime survey` to see whether the selected llama.cpp engine detects the card, or reports something like a driver it does not support. Then `lms runtime ls` shows which build is installed and selected. Get and select a GPU-capable build, for example by querying `llama.cpp:cuda`, and check the model's GPU offload setting as well.
- How do you update runtimes in a provisioning script without surprises?Run `lms runtime update --dry-run` first to log the plan. Then run `lms runtime update --yes`, because without `--yes` the command refuses to prompt in a non-interactive shell and exits. Remember it covers only selected runtimes unless you add `--all`, and that it switches the selection to the new version.
- Getting a newer llama.cpp engine always means reinstalling the whole LM Studio app.
- lms runtime update updates every installed runtime by default.
- LM Studio selects one runtime globally, shared by every model format.
- Runtimes download on demand even when the machine has no network.
- The app version alone tells you which engine version a machine runs.
Assumes LM Studio's docs and the lms source as fetched on 2026-10-04; runtimes are hot-swappable since LM Studio 0.3.0, and Max Concurrent Predictions needs the llama.cpp runtime v2.0.0.