Skip to content

Commit

Permalink
fix(python): remove pin to setuptools, pin python version (#4395)
Browse files Browse the repository at this point in the history
fix(setuptools): remove pin

Signed-off-by: Ettore Di Giacinto <[email protected]>
  • Loading branch information
mudler authored Dec 16, 2024
1 parent 037e803 commit 7ca0e2d
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion backend/python/autogptq/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
intel-extension-for-pytorch
torch
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
2 changes: 1 addition & 1 deletion backend/python/bark/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ intel-extension-for-pytorch
torch
torchaudio
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
transformers
accelerate
5 changes: 4 additions & 1 deletion backend/python/common/libbackend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
# LIMIT_TARGETS="cublas12"
# source $(dirname $0)/../common/libbackend.sh
#

PYTHON_VERSION="3.10"

function init() {
# Name of the backend (directory name)
BACKEND_NAME=${PWD##*/}
Expand Down Expand Up @@ -88,7 +91,7 @@ function getBuildProfile() {
# always result in an activated virtual environment
function ensureVenv() {
if [ ! -d "${EDIR}/venv" ]; then
uv venv ${EDIR}/venv
uv venv --python ${PYTHON_VERSION} ${EDIR}/venv
echo "virtualenv created"
fi

Expand Down
2 changes: 1 addition & 1 deletion backend/python/coqui/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intel-extension-for-pytorch
torch
torchaudio
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
transformers
accelerate
coqui-tts
2 changes: 1 addition & 1 deletion backend/python/diffusers/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ intel-extension-for-pytorch
torch
torchvision
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
diffusers
opencv-python
transformers
Expand Down
1 change: 1 addition & 0 deletions backend/python/openvoice/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jieba==0.42.1
gradio==3.48.0
langid==1.1.6
llvmlite==0.43.0
setuptools
1 change: 0 additions & 1 deletion backend/python/parler-tts/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ intel-extension-for-pytorch
torch
torchaudio
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
transformers
accelerate
1 change: 1 addition & 0 deletions backend/python/parler-tts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
grpcio==1.68.1
certifi
llvmlite==0.43.0
setuptools
2 changes: 1 addition & 1 deletion backend/python/rerankers/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ accelerate
torch
rerankers[transformers]
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
2 changes: 1 addition & 1 deletion backend/python/sentencetransformers/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
intel-extension-for-pytorch
torch
optimum[openvino]
setuptools==69.5.1 # https://github.com/mudler/LocalAI/issues/2406
setuptools
accelerate
sentence-transformers==3.3.1
transformers
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ transformers
accelerate
torch
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
2 changes: 1 addition & 1 deletion backend/python/transformers/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
grpcio==1.68.1
protobuf
certifi
setuptools==69.5.1 # https://github.com/mudler/LocalAI/issues/2406
setuptools
3 changes: 1 addition & 2 deletions backend/python/vall-e-x/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ intel-extension-for-pytorch
accelerate
torch
torchaudio
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
optimum[openvino]
3 changes: 2 additions & 1 deletion backend/python/vall-e-x/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
grpcio==1.68.1
protobuf
certifi
certifi
setuptools
2 changes: 1 addition & 1 deletion backend/python/vllm/requirements-intel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ accelerate
torch
transformers
optimum[openvino]
setuptools==75.1.0 # https://github.com/mudler/LocalAI/issues/2406
setuptools
bitsandbytes

0 comments on commit 7ca0e2d

Please sign in to comment.