In LM Studio, where do per-model default load settings live, what do they fix, and which loads inherit them?
answer
- a gear, not a global setting
- My Models tab, per model
- GPU offload, context length, flash attention
- change at load, optionally save
- lms load inherits them too
basics
~20 sPer-model defaults are set from the gear icon on a model in My Models: GPU offload, context length, flash attention and more. Every later load of that model in LM Studio, lms load included, starts from them.
solid answer
~40 sIn LM Studio, open **My Models** and click the gear icon on a model to edit its default load settings. The docs name GPU offload, context size and whether to use flash attention as the typical reasons to set them. When the model is loaded anywhere in the app, including through `lms load`, those settings are used. In the load dialog you can change settings for one load, and LM Studio offers to save the change as the new default rather than overwriting it silently. Without defaults, LM Studio picks load parameters for your hardware, with GPU offload determined automatically. Defaults are the way to make a setting that works stick for every client of that model.
go deeper
Recall the gear icon in My Models and the three headline settings: GPU offload, context length and flash attention.
Explain that loads anywhere in the app, lms load included, inherit the defaults, and that a load-time change is only saved if you choose to save it.
Show you pin a known-good context and offload per model so scripted and GUI loads match, and know which settings an MLX build ignores.
Decide where load policy should live for a team, in each user's defaults or in a published model.yaml, weighing control against machines that differ.
## What a per-model default is Loading a model in LM Studio applies **load settings**, the choices fixed for as long as the model stays in memory: how much of it runs on the GPU, how long a context it can hold, and which engine optimisations are on. Without any configuration, LM Studio chooses load parameters it expects to suit your hardware, and leaves **GPU offload** to be decided automatically. A **per-model default** overrides that automatic choice for one model. It is a saved set of load settings attached to that model, used every time it loads. ## Where you set them 1. Open the **My Models** tab. 2. Click the **gear icon** next to the model. 3. Edit the default parameters in the dialog that opens. The same gear also holds a model's **prompt template override**, for the rare model whose file lacks usable template metadata. There is a second route, too. When you load a model you can change its settings for that one load, by turning on manual choice of load parameters in the model loader. LM Studio then lets you **save those changes as the model's default**. Changing a setting at load time does not overwrite the default unless you choose to save it. ## What they are for LM Studio's docs list three reasons to set defaults, and each one maps to a real failure: | Setting | Why pin it per model | The symptom without it | |---|---|---| | **GPU offload** | A large model needs a specific split to fit next to everything else | Slow generation from layers on the CPU, or a refused load | | **Context length** | A coding or agent tool needs long prompts; LM Studio's integration guides ask for more than about 25k tokens for coding agents | Prompts truncated or rejected by a context too small for the tool | | **Flash attention** | It can lower memory use and speed up generation | A load that only fits with it, failing whenever someone forgets it | Two engine details matter here: - **Flash attention is a llama.cpp setting.** LM Studio documents it, and also KV-cache offload, eval batch size and expert count, as taking effect only on its llama.cpp-based engine, which means GGUF builds. A default saved on an MLX build has no visible effect for these. - **Some options depend on others.** In the SDK's load configuration, quantizing the value cache requires flash attention to be enabled. ## Which loads inherit them The docs say the defaults are used "when the model is loaded anywhere in the app (including through `lms load`)". In practice that covers: - loads from the Chat tab's model loader; - loads started from the terminal with `lms load` and no overriding flags. That is why defaults beat tuning each load by hand. A teammate who loads the model from a script gets the same context length you tested in the GUI. ## Defaults that travel with a model Per-model defaults are set in your copy of the app. A related mechanism ships with a model: **`model.yaml`**, the format LM Studio's catalog entries are written in (its docs page is marked Draft). It has a `config.load` section that bakes in load-time fields, for example `llm.load.contextLength`, and the docs say it "works similarly to Per Model Defaults". Use it when you publish a model and want its sensible load settings to come with it. ## Common mistakes - Setting a long context in the GUI once, then wondering why a scripted load gets something else. The setting was a one-off change, never saved as the default. - Expecting flash attention or KV-cache options to matter for an MLX build. - Pinning a GPU offload that fits one machine and copying it to a machine with less memory. Which flags `lms load` accepts, and how a server request picks a model to load, are separate topics on the CLI and the server.
- When would you bake load settings into a model.yaml instead of relying on per-model defaults?When the settings must travel with the model rather than live in one person's app. A `model.yaml` (its docs page is marked Draft) can carry a `config.load` section, for example `llm.load.contextLength`, and LM Studio says this works similarly to per-model defaults. Publishing it gives everyone who pulls that model the same starting load settings.
- You saved a flash-attention default, but nothing changed for one model. Why?Check which build it is. LM Studio documents flash attention as taking effect only on its llama.cpp-based engine, so an MLX build ignores it. For a GGUF build, confirm the change was saved as the default, not just applied to one load in the loader.
- Per-model defaults apply only to loads from the Chat tab, not to lms load.
- Changing a setting in the load dialog silently overwrites the saved default.
- Without defaults, LM Studio loads every model with GPU offload switched off.
- A flash-attention default speeds up MLX builds the same way as GGUF builds.
- Per-model defaults are one global setting shared by every model.