HUB
Sign inSign up
vllm logo

swaleio/vllm

By swaleio

•Updated 4 days ago

vLLM offline batch inference for Swale GPU tasks. Backs the vllm-batch task.

Image
0

236

swaleio/vllm repository overview

⁠vllm

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.

  • Base: the official vllm/vllm-openai image (CUDA 13.0, Ubuntu 24.04), whose tag is the vLLM version
  • User: non-root swale (uid 1000; replaces the Ubuntu base image's default uid-1000 user)
  • WORKDIR /mnt/workspace, ENTRYPOINT []

⁠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).

⁠Outputs

The vllm-batch task declares no outputs — results are written to a caller-supplied file path — so nothing is appended to $WORKFLOW_TASK_OUTPUT.

⁠Shared memory

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.

⁠Tags

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.

⁠Building

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:

  • Ubuntu packages: https://launchpad.net/ubuntu/+source/<source-package>/<version>
  • Python packages: https://pypi.org/project/<name>/<version>/#files. The compiler runtime libraries inside some wheels (libgfortran, libgomp, libquadmath) are part of GCC⁠.
  • FFmpeg 8.1.1, which PyNvVideoCodec bundles: in the image, at /usr/local/external/ffmpeg/src
  • FFmpeg, which OpenCV's Python package bundles: https://ffmpeg.org/releases/⁠, in the release OpenCV's build files name for that wheel

We 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⁠.

Tag summary
Recent tags
Content type
Image
Digest
sha256:5f8478afb…
Size
9.3 GB
Last updated
4 days ago
docker pull swaleio/vllm:latest