LM Studio: per-model defaults
model_defaultsSave and manage per-model load defaults such as context length, TTL, GPU offload, and parallel slots, and view or clear them when not specified elsewhere.
Instructions
Save default load settings for a model: context length, TTL, GPU offload, parallel slots. load_model, chat, sessions and tasks use them whenever a setting is not given. With only model it shows that model's defaults, without arguments all of them; clear: true removes them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "model_defaults"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gpu | No | GPU offload: "off", "max" or a ratio such as "0.5". | |
| ttl | No | Unload automatically after this many idle seconds. | |
| clear | No | Remove the saved defaults of this model. | |
| model | No | Model key from list_models. | |
| parallel | No | How many predictions may run at the same time. | |
| context_length | No | Context window to load the model with, e.g. 262144. |