vLLM offline batch inference for Swale GPU tasks. Backs the vllm-batch task.
236
Swale-built image backing the vllm-batch task definition. It is the official
vLLM image with its server entrypoint reset, so a
workflow can run offline batch inference on a GPU.
vllm/vllm-openai image (CUDA 13.0, Ubuntu 24.04),
whose tag is the vLLM versionswale (uid 1000; replaces the Ubuntu base image's
default uid-1000 user)WORKDIR /mnt/workspace, ENTRYPOINT []The base image's ENTRYPOINT launches the OpenAI-compatible API server; this
image resets it to empty (ENTRYPOINT []), so a task definition's
exec.args form the full command line: ["vllm", "run-batch", ...].
The vllm-serve task runs a server, so it uses the official image directly.
Hugging Face authentication is not the image's job: a definition that needs it
maps its token input to HF_TOKEN via its own exec.env (an omitted token
resolves to an empty HF_TOKEN, which the Hugging Face stack treats as no
token).
The vllm-batch task declares no outputs — results are written to a
caller-supplied file path — so nothing is appended to $WORKFLOW_TASK_OUTPUT.
vLLM's tensor-parallel workers exchange tensors through /dev/shm, so shared
memory sizing matters when a model is sharded across several GPUs. The platform
provides a default shm size; single-GPU workloads run fine with it.
Each tag is the version of vLLM the image packages, such as 0.25.0. A
rebuild that keeps that version, to pick up a fixed base image or wrapper,
adds -r1, -r2, and so on. A tag is never reused; latest follows the
newest publish.
From the repository root:
docker build -t swaleio/vllm:dev images/vllm
Merging a change under images/vllm publishes the image under its next tag;
task definitions reference it by digest.
Built from images/vllm in the
swaleio/task-definitions repository. For how a task definition
references an image, see the
task definition reference
in the Swale documentation.
The Dockerfile is covered by the MIT License. vLLM is Apache-2.0-licensed.
This image also contains software from other projects, each under its own
license. The license texts those projects ship are inside the image:
/usr/share/doc/<package>/copyright for Ubuntu packages and the *.dist-info
directory of each Python package. Source code for its GPL and LGPL components:
https://launchpad.net/ubuntu/+source/<source-package>/<version>https://pypi.org/project/<name>/<version>/#files. The
compiler runtime libraries inside some wheels (libgfortran, libgomp,
libquadmath) are part of GCC./usr/local/external/ffmpeg/srcWe also provide that source code on request: see Third-party software.
It also contains NVIDIA software, which is not open source. NVIDIA licenses it
under the
NVIDIA Deep Learning Container License,
a copy of which is at /NGC-DL-CONTAINER-LICENSE, and licenses the NVIDIA
Python packages inside under their own agreements. You accept those terms by
pulling or using this image: see
Third-party software.
It also contains Intel software, which is not open source: Intel's Math Kernel Library, built into PyTorch, and its Integrated Performance Primitives, built into OpenCV. Intel licenses them under its own terms, which you accept by pulling or using this image: see Third-party software.
docker pull swaleio/vllm:latest