Sign inSign up

ls250824/comfyui-runtime2

By ls250824

Updated 3 days ago

ComfyUI base image with CUDA runtime support

Image
Machine learning & AI
0

805

ls250824/comfyui-runtime2 repository overview

comfyui-runtime2

Information

  • Docker base image for ComfyUI inference with GPU (CUDA) acceleration.
  • This image does not start any services; use ls250824/run-x for that.
  • Based on ls250824/pytorch-cuda-ubuntu-runtime:09092026.
  • That base image already integrates the official pytorch/pytorch:2.10.0-cuda12.8-cudnn9-runtime image; do not install PyTorch or CUDA again in this image.
  • Includes native llama.cpp b10218 and llama-cpp-python 0.3.34 as separate installations so their shared libraries cannot override each other.

Websites

Images on Docker

  • If the image is less than one day old, it might not be tested yet or might still be updated.

Latest Image Setup

Image
ComponentVersion
OSUbuntu 24.04 x86_64
Python3.12.x
PyTorch2.10.0
Torchvision0.25.0
Torchaudio2.10.0
CUDA12.8
cuDNN9
Triton3.6.0
onnxruntime-gpu1.22.0
ComfyUI0.36.0
Native llama.cppb10218
CodeServerlatest
Wheels
PackageVersion
flash_attn2.8.4
llama-cpp-python0.3.34
sageattention2.2.0
torch_generic_nms0.1
Native llama.cpp

The image downloads and installs it under /opt/llama.cpp. The included commands, such as llama-cli, llama-server, and llama-bench, are available through PATH.

The archive is built for CUDA 12.8 on Linux x86_64. Its binaries use an embedded relative RPATH for the libraries in /opt/llama.cpp/lib. llama-cpp-python continues to use its package-local libraries. Do not set LD_LIBRARY_PATH=/opt/llama.cpp/lib or LLAMA_CPP_LIB_PATH globally and do not add this directory to ld.so.conf.

Optimised
ArchitectureCompute CapabilityNative Build TargetExamples
Ampere8.6sm_86RTX 3090, RTX A5000, RTX A6000, A40
Ada Lovelace8.9sm_89RTX 4090, RTX 6000 Ada, L40, L40S
Blackwell12.0sm_120RTX 5090, RTX PRO 6000

Build Constraints (/constraints.txt)

numpy<2
onnxruntime-gpu==1.22.*
onnxruntime==0
flash-attn==2.8.4
llama-cpp-python==0.3.34
sageattention==2.2.0
typer==0.21.1
click==8.*
huggingface_hub>=1.24.0

Adding ComfyUI-Manager Internal Version Instead of Legacy

WORKDIR /ComfyUI
RUN --mount=type=cache,target=/root/.cache/pip \
    python -m pip install --no-cache-dir --root-user-action ignore -c /constraints.txt \
    matrix-nio \
    -r manager_requirements.txt

Docker Speedup

export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1

Tag summary

Content type

Image

Digest

sha256:7426bfb96

Size

7.3 GB

Last updated

3 days ago

docker pull ls250824/comfyui-runtime2:16092026