#!/usr/bin/env bash # Activate a model via GPU Lab API (run on VM303 or with curl to :9000) set -euo pipefail MODEL_ID="${1:?Usage: activate-model.sh }" curl -sf -X POST "http://127.0.0.1:9000/api/activate/${MODEL_ID}" echo curl -sf "http://127.0.0.1:8010/v1/models" | python3 -m json.tool