text-gen-python-cpu-base (sha256:b54de7f8b99ab2f00cefba9326e53c7bb093ce71948cbbc28d998bfef8dd7898)
Published 2024-01-30 12:22:53 -05:00 by simcop2387
Installation
docker pull gitea.simcop2387.info/simcop2387/text-gen-python-cpu-base@sha256:b54de7f8b99ab2f00cefba9326e53c7bb093ce71948cbbc28d998bfef8dd7898sha256:b54de7f8b99ab2f00cefba9326e53c7bb093ce71948cbbc28d998bfef8dd7898Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=22.04 |
| ADD file:c646150c866c8b5ece67bc79c610718acf858034fa22502b0dba3d38c53fc9a9 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 | 2024-01-30T15:21:22Z |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.revision | ecdd504ec928091abeaf9e291e073d9d12a9b245 |
| 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
2024-01-30 12:22:53 -05:00
Versions (28)
View all
Container
0
OCI / Docker
linux/amd64
2.8 GiB