reserve
Claim GB of GPU VRAM for non-Ollama jobs so other sessions see capacity is taken; TTL expiry clears stale claims.
Instructions
Reserve gb GB of VRAM — a claim on capacity, not on a named model.
Use this for non-Ollama GPU work (a training run, a diffusion job) so other
sessions can see the VRAM is spoken for. pid is advisory. Reservations
expire by TTL like claims, so a crashed session never leaves one stuck.
COOPERATIVE: this gates vram-mcp's own warm(), but vram-mcp cannot
intercept an Ollama auto-load triggered by a direct /api/generate call
from another process.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gb | Yes | ||
| pid | No | ||
| owner | Yes | ||
| purpose | Yes | ||
| ttl_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gb | Yes | ||
| ok | Yes | ||
| model | Yes | ||
| detail | Yes | ||
| reason | Yes | ||
| outcome | Yes | ||
| summary | Yes | ||
| claim_id | Yes | ||
| expires_at | Yes |