ai-gateway-worker-agent-rocm (e1c9d35c678608dc4f79084fc4d5d43a4507da60-7848-1795416842104623827)

Published 2026-11-23 07:59:31 +01:00 by turnercore

Installation

docker pull forge.elephanthand.com/turnercore/ai-gateway-worker-agent-rocm:e1c9d35c678608dc4f79084fc4d5d43a4507da60-7848-1795416842104623827
sha256:91c07dd4afbf363c776ba21271917ba79c5875bdd88275acc36fe90edcfdd5d6

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.version=24.04
ADD file:6c214fc3c3c22122c7eb68f7fb32783df308e60b1eaeb9baf7e4d0cc961d448d in /
CMD ["/bin/bash"]
ARG UBUNTU_SNAPSHOT
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_DISABLE_PIP_VERSION_CHECK=1 PIP_PREFER_BINARY=1 HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 HF_HOME=/tmp/cache/huggingface TORCH_HOME=/tmp/cache/torch OPENCLIP_CACHE_DIR=/tmp/cache/open_clip AI_GATEWAY_MODEL_ROOT=/models HOME=/tmp XDG_CACHE_HOME=/tmp/cache PIP_CACHE_DIR=/tmp/cache/pip TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor YOLO_CONFIG_DIR=/tmp/ultralytics CMAKE_ARGS=-DGGML_VULKAN=ON PATH=/opt/venv/bin:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/bin:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib/llvm/bin:${PATH} LD_LIBRARY_PATH=/opt/venv/lib/python3.12/site-packages/torch/lib:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_libraries/lib:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib/llvm/lib:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib/rocm_sysdeps/lib:/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib/host-math/lib
WORKDIR /app
COPY file:c4d30747abd2e65d70b91286c2e7e6a859a70cbdcd4f5c93947f040e304159aa in /etc/ssl/certs/ca-certificates.crt
|1 UBUNTU_SNAPSHOT=20261106T000000Z /bin/sh -c printf '%s\n' 'Types: deb' "URIs: https://snapshot.ubuntu.com/ubuntu/${UBUNTU_SNAPSHOT}/" 'Suites: noble noble-updates noble-security' 'Components: main restricted universe multiverse' 'Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg' 'Check-Valid-Until: no' > /etc/apt/sources.list.d/ubuntu.sources && printf '%s\n' 'Acquire::Retries "30";' 'Acquire::http::Timeout "15";' 'Acquire::https::Timeout "15";' > /etc/apt/apt.conf.d/80-retries && rm -f /etc/apt/sources.list && timeout -k 30 1200 apt-get -o APT::Update::Error-Mode=any update && timeout -k 30 1800 apt-get dist-upgrade -y --no-install-recommends && timeout -k 30 1800 apt-get install -y --no-install-recommends ca-certificates libdrm-amdgpu1 libdrm2 libgl1 libgomp1 libice6 libatomic1 libpython3.12 libssl3t64=3.0.13-0ubuntu3.16 libnuma1 ocl-icd-libopencl1 openssl=3.0.13-0ubuntu3.16 libquadmath0 libsm6 libstdc++6 libtbb12 libtinfo6 libvulkan1 libglib2.0-0t64 mesa-vulkan-drivers python3-minimal python3.12 zlib1g && cd /tmp && timeout -k 30 1800 apt-get download libc6-dev=2.39-0ubuntu8.9 && dpkg-deb --extract /tmp/libc6-dev_2.39-0ubuntu8.9_amd64.deb / && rm -f /tmp/libc6-dev_2.39-0ubuntu8.9_amd64.deb && timeout -k 30 1800 apt-get download linux-libc-dev=6.8.0-147.147 && dpkg-deb --extract /tmp/linux-libc-dev_6.8.0-147.147_amd64.deb / && rm -f /tmp/linux-libc-dev_6.8.0-147.147_amd64.deb && timeout -k 30 1800 apt-get download libpython3.12-dev=3.12.3-1ubuntu0.17 && dpkg-deb --extract /tmp/libpython3.12-dev_3.12.3-1ubuntu0.17_amd64.deb / && rm -f /tmp/libpython3.12-dev_3.12.3-1ubuntu0.17_amd64.deb && test -f /usr/include/stdlib.h && test -f /usr/include/linux/limits.h && test -f /usr/include/python3.12/Python.h && ln -s libgcc_s.so.1 /usr/lib/x86_64-linux-gnu/libgcc_s.so && test -L /usr/lib/x86_64-linux-gnu/libgcc_s.so && ln -s libnuma.so.1 /usr/lib/x86_64-linux-gnu/libnuma.so && rm -rf /var/lib/apt/lists/*
COPY dir:c29fe2e255333bcc261e96d1058690a382a0ec8ffb235ca394ae0c4bc274ff88 in /opt/venv
COPY file:73e7b8110e87a15b3fda5c1be00bbf2bc3baaba1e3987f7434ff9c5222243cbe in /usr/share/ai-gateway/rocm-runtime-closure.json
COPY dir:62ae4edcc51e327c7153602b29ef045cee7710360d24825dffb6a52ed3375425 in /app
COPY file:d3827d16df5f12adc81a0e6e7f834c37188254112d652909c615ee2dc8b01143 in /tmp/libsndfile.so
|1 UBUNTU_SNAPSHOT=20261106T000000Z /bin/sh -c soundfile_library="$(python3 -c 'from pathlib import Path; import _soundfile_data; print(Path(next(iter(_soundfile_data.__path__))) / "libsndfile_x86_64.so")')" && install -m 0555 /tmp/libsndfile.so "${soundfile_library}" && rm /tmp/libsndfile.so && python3 -m pip check && test ! -e /opt/venv/lib/python3.12/site-packages/_rocm_sdk_libraries/share/miopen/db && find /opt/venv -type d -name __pycache__ -prune -exec rm -rf '{}' + && python3 - <<'PY' import json from pathlib import Path from scripts.prepare_rocm_runtime import verify_ldd_closure report_path = Path("/usr/share/ai-gateway/rocm-runtime-closure.json") report = json.loads(report_path.read_text(encoding="utf-8")) final_ldd = verify_ldd_closure(Path("/opt/venv")) if final_ldd["ldd_missing"]: raise SystemExit( "ROCm final ELF closure missing names: " + json.dumps(final_ldd["ldd_missing"], sort_keys=True) ) report["final_ldd_closure"] = final_ldd report_path.write_text(json.dumps(report, indent=2, sort_keys=True) + "\n") import importlib.metadata as metadata import shutil import subprocess import soundfile import torch assert soundfile.__libsndfile_version__ == "1.2.2" assert "_soundfile_data" in str(soundfile._snd) assert metadata.version("funasr") == "1.3.29+ai.gateway.1" import perth assert perth.PerthImplicitWatermarker is not None, "perth watermarker failed to import" try: metadata.version("diskcache") except metadata.PackageNotFoundError: pass else: raise AssertionError("pickle-backed diskcache must not be installed") assert torch.__version__ == "2.13.0+rocm10.1.0", torch.__version__ assert torch.version.hip == "7.16.26385", torch.version.hip assert torch.version.cuda is None for compiler in ("hipcc", "clang"): executable = shutil.which(compiler) assert executable, compiler subprocess.run([executable, "--version"], check=True, stdout=subprocess.DEVNULL) assert Path( "/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/include" ).is_dir() assert Path( "/opt/venv/lib/python3.12/site-packages/_rocm_sdk_core/lib/llvm/lib/clang/24/include" ).is_dir() from ai_gateway.worker_tts_runtime import ChatterboxTurboRunner from ai_gateway.worker_vision_runtime import YoloSegmentationRunner
|1 UBUNTU_SNAPSHOT=20261106T000000Z /bin/sh -c rm -rf /opt/venv/bin/pip /opt/venv/bin/pip3 /opt/venv/bin/pip3.12 /opt/venv/lib/python3.12/site-packages/pip /opt/venv/lib/python3.12/site-packages/pip-*.dist-info && test ! -e /opt/venv/lib/python3.12/site-packages/pip/_vendor/vendor.txt
|1 UBUNTU_SNAPSHOT=20261106T000000Z /bin/sh -c groupadd --gid 10001 ai-gateway && useradd --uid 10001 --gid 10001 --no-create-home --shell /usr/sbin/nologin ai-gateway && mkdir -p /state && chown 10001:10001 /state && find /app -type d -name __pycache__ -prune -exec rm -rf '{}' + && chmod -R a+rX,a-w /app
ARG SOURCE_REVISION UBUNTU_SNAPSHOT
ENV AI_GATEWAY_SOURCE_REVISION=$SOURCE_REVISION
LABEL org.opencontainers.image.revision=$SOURCE_REVISION
USER 10001:10001
EXPOSE 41910
CMD ["python3", "-m", "ai_gateway.worker_agent"]

Labels

Key Value
io.buildah.version 1.43.1
org.opencontainers.image.revision e1c9d35c678608dc4f79084fc4d5d43a4507da60
org.opencontainers.image.version 24.04