unload_model
Evict a model's resident weights to free GPU memory on a remote MLX server. The model stays registered for reload, reclaiming unified memory after heavy generation.
Instructions
Free a model's GPU memory on the remote mlx-serve server.
The model stays registered (it can be reloaded later); only its resident weights are evicted. Useful after heavy media generation to reclaim unified memory.
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": "unload_model"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes |