Datasets:
Download scripts/deploy_model.sh from inclusionAI/LingSante-MedGuard: direct link, hf CLI and curl.
- Browser
- Download file 624 Bytes
-
https://huggingface.co/datasets/inclusionAI/LingSante-MedGuard/resolve/main/scripts/deploy_model.sh
- Command line
-
hf download hf://datasets/inclusionAI/LingSante-MedGuard/scripts/deploy_model.sh
-
curl -L -o deploy_model.sh https://huggingface.co/datasets/inclusionAI/LingSante-MedGuard/resolve/main/scripts/deploy_model.sh
624 Bytes
| # Serve a local model through a vLLM OpenAI-compatible endpoint. | |
| set -euo pipefail | |
| if [[ "${1:-}" == "--help" || $# -lt 1 ]]; then | |
| echo 'Usage: bash deploy_model.sh MODEL [additional vLLM options]' | |
| echo 'Environment: HOST (127.0.0.1), PORT (8000), TP (1), MODEL_NAME (LingSante MedGuard), VLLM_API_KEY (optional)' | |
| exit 0 | |
| fi | |
| MODEL="$1" | |
| shift | |
| exec "${PYTHON_BIN:-python3}" -m vllm.entrypoints.openai.api_server \ | |
| --model "$MODEL" \ | |
| --served-model-name "${MODEL_NAME:-LingSante MedGuard}" \ | |
| --host "${HOST:-127.0.0.1}" \ | |
| --port "${PORT:-8000}" \ | |
| --tensor-parallel-size "${TP:-1}" \ | |
| "$@" | |