Download projects/oui-max/scripts/vllm_probe.sh from LevelUp2x/adaptai: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/projects/oui-max/scripts/vllm_probe.sh
- Command line
-
hf download hf://datasets/LevelUp2x/adaptai/projects/oui-max/scripts/vllm_probe.sh
-
curl -L -o vllm_probe.sh https://huggingface.co/datasets/LevelUp2x/adaptai/resolve/main/projects/oui-max/scripts/vllm_probe.sh
469 Bytes
| set -euo pipefail | |
| PORT=${1:?port} | |
| ALIAS=${2:?alias} | |
| echo "[probe] models list:" >&2 | |
| curl -sS http://127.0.0.1:$PORT/v1/models | jq -r '.data[0].id' || true | |
| echo "[probe] chat test:" >&2 | |
| curl -sS http://127.0.0.1:$PORT/v1/chat/completions \ | |
| -H 'Content-Type: application/json' \ | |
| -d "{\"model\":\"$ALIAS\",\"messages\":[{\"role\":\"user\",\"content\":\"Say hi\"}],\"max_tokens\":16}" \ | |
| | jq -r '.choices[0].message.content // .error.message' | |