text-gen-python-cpu-base (sha256:e5a9c8f3a4953228e7fa90780cf0d711e0cb9ecbfa74856c35f4593f1c8a8250)

Published 2024-03-18 07:43:19 -04:00 by simcop2387

Installation

docker pull gitea.simcop2387.info/simcop2387/text-gen-python-cpu-base@sha256:e5a9c8f3a4953228e7fa90780cf0d711e0cb9ecbfa74856c35f4593f1c8a8250
sha256:e5a9c8f3a4953228e7fa90780cf0d711e0cb9ecbfa74856c35f4593f1c8a8250

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:21c2e8d95909bec6f4acdaf4aed55b44ee13603681f93b152e423e3e6a4a207b in /
CMD ["/bin/bash"]
RUN /bin/sh -c apt-get update && apt install --no-install-recommends -y git vim build-essential python3-dev python3-venv && apt full-upgrade -y && rm -rf /var/lib/apt/lists/* # buildkit
LABEL maintainer=Your Name <your.email@example.com>
LABEL description=Docker image for GPTQ-for-LLaMa and Text Generation WebUI
RUN /bin/sh -c apt-get update && apt-get install --no-install-recommends -y python3-dev libportaudio2 libasound-dev git python3 python3-pip make g++ ffmpeg && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c pip3 install virtualenv # buildkit
RUN /bin/sh -c mkdir /app # buildkit
WORKDIR /app
ADD https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h /tmp/skipcache # buildkit
RUN /bin/sh -c git clone --recurse-submodules https://gitea.simcop2387.info/simcop2387/text-generation-webui-mirror . # buildkit
ARG WEBUI_VERSION
RUN |1 WEBUI_VERSION= /bin/sh -c test -n "${WEBUI_VERSION}" && git reset --hard ${WEBUI_VERSION} || echo "Using provided webui source" # buildkit
RUN |1 WEBUI_VERSION= /bin/sh -c virtualenv /app/venv # buildkit
RUN |1 WEBUI_VERSION= /bin/sh -c . /app/venv/bin/activate && pip3 install --upgrade pip setuptools wheel && pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu # buildkit
RUN |1 WEBUI_VERSION= /bin/sh -c . /app/venv/bin/activate && pip3 install -r requirements.txt # buildkit
COPY python-base/build-exts.sh /build-exts.sh # buildkit
RUN |1 WEBUI_VERSION= /bin/sh -c /build-exts.sh # buildkit
RUN |1 WEBUI_VERSION= /bin/sh -c . /app/venv/bin/activate && python3 -m nltk.downloader all # buildkit
ENV OPENEDAI_EMBEDDING_MODEL=jinaai/jina-embeddings-v2-base-en
ENV CLI_ARGS=
CMD ["/bin/sh" "-c" ". /app/venv/bin/activate && python3 server.py ${CLI_ARGS}"]

Labels

Key Value
description Docker image for GPTQ-for-LLaMa and Text Generation WebUI
maintainer Your Name <your.email@example.com>
org.opencontainers.image.created 2024-03-18T10:53:19Z
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision ca1d11f6b54b768d29a995c4e2fbdc39dd43b9cb
org.opencontainers.image.source https://gitea.simcop2387.info/simcop2387/text-gen-base.git
org.opencontainers.image.url https://gitea.simcop2387.info/simcop2387/text-gen-base
org.opencontainers.image.version 22.04
Details
Container
2024-03-18 07:43:19 -04:00
0
OCI / Docker
linux/amd64
3 GiB
Versions (28) View all
latest 2024-05-30
build-38 2024-05-30
build-36 2024-05-23
build-35 2024-05-21
build-28 2024-03-18