8 lines
300 B
Bash
8 lines
300 B
Bash
|
|
#!/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
|