💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Bump Torch CPU version
davidmezzettid4030edf58f1
diff --git a/docker/base/Dockerfile b/docker/base/Dockerfileindex 3cad841d..e3023ed7 100644--- a/docker/base/Dockerfile+++ b/docker/base/Dockerfile@@ -27,7 +27,7 @@ RUN \# Install txtai project and dependenciesln -s /usr/bin/python${PYTHON_VERSION} /usr/bin/python && \python -m pip install --no-cache-dir -U pip wheel setuptools && \- if [ -z ${GPU} ] && { [ -z ${TARGETARCH} ] || [ ${TARGETARCH} = "amd64" ] ;}; then pip install --no-cache-dir torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html; fi && \+ if [ -z ${GPU} ] && { [ -z ${TARGETARCH} ] || [ ${TARGETARCH} = "amd64" ] ;}; then pip install --no-cache-dir torch==2.4.1+cpu torchvision==0.19.1+cpu -f https://download.pytorch.org/whl/torch -f https://download.pytorch.org/whl/torchvision; fi && \python -m pip install --no-cache-dir txtai${COMPONENTS} && \python -c "import sys, importlib.util as util; 1 if util.find_spec('nltk') else sys.exit(); import nltk; nltk.download(['punkt', 'punkt_tab', 'averaged_perceptron_tagger_eng'])" && \\diff --git a/docs/install.md b/docs/install.mdindex 60d0e0ab..d9186266 100644--- a/docs/install.md+++ b/docs/install.md@@ -148,7 +148,7 @@ The default install adds PyTorch with GPU support. There are a number of depende```pip install txtai torch==[version]+cpu \--f https://download.pytorch.org/whl/torch_stable.html+-f https://download.pytorch.org/whl/torch```Where `[version]` is the version of PyTorch (such as 2.3.1). The [txtai-cpu](https://hub.docker.com/r/neuml/txtai-cpu) image on Docker Hub uses this method to reduce the image size.