EleutherAI lm-evaluation-harness on vLLM for Swale GPU tasks. Backs the lm-eval task.
452
Swale-built image backing the lm-eval task definition. It is the official
vLLM image with the EleutherAI
evaluation harness
installed on top, so a workflow can benchmark a model on a GPU with vLLM as
the inference backend.
vllm/vllm-openai image (CUDA 13.0, Ubuntu 24.04)lm-eval, at the version pinned in
requirements.txt — the lm_eval
CLI, which drives the bundled vLLM engine as its inference backendswale (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: ["lm_eval", ...].
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 lm-eval 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 lm-eval the image packages, such as 0.4.12. 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/lm-eval:dev images/lm-eval
Merging a change under images/lm-eval publishes the image under its next tag;
task definitions reference it by digest.
Built from images/lm-eval 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. The LM Evaluation Harness is MIT-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/lm-eval:latest