Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] setuptools 70.0.0 breaks PyTorch 2.1 #2406

Closed
fakezeta opened this issue May 25, 2024 · 0 comments · Fixed by #2414
Closed

[BUG] setuptools 70.0.0 breaks PyTorch 2.1 #2406

fakezeta opened this issue May 25, 2024 · 0 comments · Fixed by #2414
Labels
bug Something isn't working dependencies unconfirmed

Comments

@fakezeta
Copy link
Collaborator

LocalAI version:
2.16

Environment, CPU architecture, OS, and Version:
docker

Describe the bug
As described in #4376 PyTorch <2.2 is not working with setuptools 70.0.0
This impact most of python backend.

Logs

Error: cannot import name 'packaging' from 'pkg_resources' (/build/backend/python/transformers/venv/lib/python3.10/site-packages/pkg_resources/__init__.py)

Additional context
Bumping Pytorch for all the builds is not possible due to Intel still not releasing PyTorch 2.2+ package. We should fix the version to setuptools==69.5.1 until we can safely bump PyTorch to 2.2+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies unconfirmed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant