Fix: force torch CPU-only build to avoid 5-8GB NVIDIA CUDA packages
Without [tool.uv.sources] binding torch to the pytorch-cpu index, docling/layoutparser pull the full CUDA torch from PyPI, which includes nvidia-nccl, nvidia-cusparselt, nvidia-cudnn etc (~5-8GB of GPU libs useless on CPU-only servers). This caused "no space left on device" during Docker layer extraction on the production server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1fe15a1cec
commit
f9ae1c9b3a
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ name = "pytorch-cpu"
|
|||
url = "https://download.pytorch.org/whl/cpu"
|
||||
explicit = true
|
||||
|
||||
[tool.uv.sources]
|
||||
torch = { index = "pytorch-cpu" }
|
||||
torchvision = { index = "pytorch-cpu" }
|
||||
torchaudio = { index = "pytorch-cpu" }
|
||||
|
||||
[tool.setuptools.packages.find]
|
||||
where = ["."]
|
||||
include = ["api*", "enums*", "models*", "services*", "constants*", "utils*", "scripts*", "workers*", "migrations*"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue