preload_model
Preloads an Ollama model into VRAM to keep it loaded for warm inference, reducing latency on subsequent requests.
Instructions
Preload a model into VRAM for warm inference. Sends an empty chat request with keep_alive to keep the model loaded during the session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "preload_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The model name to preload (must be already installed via pull_model) | |
| keep_alive | No | Duration to keep the model loaded (optional, default: "-1" = permanent). Examples: "5m", "1h", "-1" |