HUB
Sign inSign up
mergekit logo

swaleio/mergekit

By swaleio

•Updated 3 days ago

mergekit model merging on PyTorch CUDA for Swale tasks. Backs the mergekit task.

Image
0

68

swaleio/mergekit repository overview

⁠mergekit

Swale-built image backing the mergekit task definition. It installs mergekit⁠, the model-merging toolkit, and the Hugging Face stack it loads models with, on top of the official PyTorch CUDA runtime, so a workflow can merge models from a YAML config without a build step.

  • Base: the official PyTorch CUDA runtime image (pytorch/pytorch, CUDA 13.0, cuDNN 9)
  • Installed: mergekit, Transformers, Accelerate, PEFT and the Hugging Face Hub client, at the versions pinned in requirements.txt⁠
  • User: non-root swale (uid 1000)
  • WORKDIR /mnt/workspace, no ENTRYPOINT

⁠Invocation

The image declares no entrypoint, so a task definition's exec.args are the full command line: ["mergekit-yaml", "<config>", "<output_dir>", "--device", "cpu"]. The image also has mergekit's other commands on PATH, such as mergekit-moe and mergekit-extract-lora.

⁠Compute

Merging runs on the CPU by default. On a GPU compute type, --device cuda runs the merge arithmetic on the GPU.

⁠License

mergekit is licensed under the GNU Lesser General Public License 3.0, which adds permissions to the GNU General Public License 3.0. The image carries both texts in /usr/share/licenses/mergekit/, and mergekit's unmodified Python source is installed in it, under /usr/local/lib/python3.12/dist-packages/mergekit.

⁠Tags

Each tag is the version of mergekit the image packages, such as 0.1.5. 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/mergekit:dev images/mergekit

Merging a change under images/mergekit publishes the image under its next tag; task definitions reference it by digest.


Built from images/mergekit⁠ 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⁠. mergekit is licensed under the GNU LGPL 3.0; the LGPL 3.0 and GPL 3.0 texts ship inside the image in /usr/share/licenses/mergekit.

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. /usr/share/licenses adds that of python-etcd, whose package ships none, and Intel's for the Math Kernel Library built into PyTorch. Source code for its GPL and LGPL components:

  • Ubuntu packages: https://launchpad.net/ubuntu/+source/<source-package>/<version>
  • Python packages, mergekit among them: https://pypi.org/project/<name>/<version>/#files. The compiler runtime libraries inside some wheels (libgfortran, libgomp, libquadmath) are part of GCC⁠.

We also provide that source code on request: see Third-party software⁠.

It also contains NVIDIA and Intel software, which is not open source. Each licenses its software 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:da81157e2…
Size
3.3 GB
Last updated
3 days ago
docker pull swaleio/mergekit:latest