Skip to content

CICD-446 · vLLM deployment ​

Encyclopedia · GPU and inference infrastructure · All snippets

Previous · CICD-445 · Next · CICD-447

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters MODEL_DIR, VLLM_IMAGE.

2. Copy the snippet ​

bash
docker run --rm --gpus all --ipc=host -p 127.0.0.1:8000:8000 -v "${MODEL_DIR:?}:/model:ro" "${VLLM_IMAGE:?}" --model /model --served-model-name lab

3. How it works ​

Docker mounts the approved model read-only and starts an inference server on a loopback-published port. Wait for model readiness before sending requests.

4. Verify the result ​

Use a dedicated trusted runner and an approved vLLM image digest. Probe /v1/models from a second step or terminal.

Validation version-dependent (Bash parse). Status definitions.