Files
atc-GPU/scripts/activate-model.sh
mo c154c94c6d Add GPU Lab configs, docs, and runbooks for VM303.
Mirror gpu-lab compose files and model-manager catalog from GPU-Dev; document Dockhand mapping and SGLang cutover target.
2026-06-04 02:24:57 +02:00

8 lines
300 B
Bash
Executable File

#!/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 <model-id>}"
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