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

Published 2023-12-14 15:57:58 -05:00 by simcop2387

Installation

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

Image layers

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=22.04
ADD file:36d444e2cede3abe58191dcf28890b874c0908f5259bf7e8855338555701c4c5 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
RUN |1 WEBUI_VERSION= /bin/sh -c . /app/venv/bin/activate && pip install --no-deps --force-reinstall -U 'sentence_transformers @ git+https://github.com/wizardforcel/sentence-transformers@master-1' # buildkit
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 2023-12-14T20:36:45Z
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision 59152b7afd8e46e840778eef5b2427c819308e52
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
2023-12-14 15:57:58 -05:00
2
OCI / Docker
linux/amd64
2.6 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