text-gen-python-cpu-base (sha256:11e3bef25f1cf4bccb3a72f6764cbc50947d94d8fb9bfffa0ea9d89525ce8ae9)
Published 2024-05-30 09:14:39 -04:00 by simcop2387
Installation
docker pull gitea.simcop2387.info/simcop2387/text-gen-python-cpu-base@sha256:11e3bef25f1cf4bccb3a72f6764cbc50947d94d8fb9bfffa0ea9d89525ce8ae9sha256:11e3bef25f1cf4bccb3a72f6764cbc50947d94d8fb9bfffa0ea9d89525ce8ae9Image layers
| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.ref.name=ubuntu |
| LABEL org.opencontainers.image.version=23.10 |
| ADD file:870c43eadc01423c5bc11fc4422ee10b05cae0f50c997f8e380e0ed25c6c0b11 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 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 python3 -m venv /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-05-30T12:54:18Z |
| org.opencontainers.image.ref.name | ubuntu |
| org.opencontainers.image.revision | 45d597a641c01f71e627700d118e5bc3043e8c45 |
| 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 | 23.10 |
Details
2024-05-30 09:14:39 -04:00
Versions (28)
View all
Container
0
OCI / Docker
linux/amd64
3.2 GiB