-
Notifications
You must be signed in to change notification settings - Fork 106
chore(backend): evaluate torch 2.11.0 to close the remaining low-severity advisories #382
Copy link
Copy link
Open
Labels
backendFastAPI, database, storage, and API workFastAPI, database, storage, and API workdependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementNew feature, improvement, or enhancement request.New feature, improvement, or enhancement request.gssoc26Related to GirlScript Summer of Code 2026.Related to GirlScript Summer of Code 2026.level:advancedGSSoC difficulty level: advanced. Base contributor points: 55.GSSoC difficulty level: advanced. Base contributor points: 55.mlModel inference, embeddings, OCR, captions, and search relevanceModel inference, embeddings, OCR, captions, and search relevancesecuritySecurity-sensitive maintenanceSecurity-sensitive maintenancestatus: availableOpen for contributors to pick upOpen for contributors to pick uptestingAutomated tests or manual QA coverageAutomated tests or manual QA coveragetype:devopsDevOps, CI/CD, deployment, or infrastructure PR. GSSoC type bonus: +15 points.DevOps, CI/CD, deployment, or infrastructure PR. GSSoC type bonus: +15 points.
Description
Metadata
Metadata
Assignees
Labels
backendFastAPI, database, storage, and API workFastAPI, database, storage, and API workdependenciesPull requests that update a dependency filePull requests that update a dependency fileenhancementNew feature, improvement, or enhancement request.New feature, improvement, or enhancement request.gssoc26Related to GirlScript Summer of Code 2026.Related to GirlScript Summer of Code 2026.level:advancedGSSoC difficulty level: advanced. Base contributor points: 55.GSSoC difficulty level: advanced. Base contributor points: 55.mlModel inference, embeddings, OCR, captions, and search relevanceModel inference, embeddings, OCR, captions, and search relevancesecuritySecurity-sensitive maintenanceSecurity-sensitive maintenancestatus: availableOpen for contributors to pick upOpen for contributors to pick uptestingAutomated tests or manual QA coverageAutomated tests or manual QA coveragetype:devopsDevOps, CI/CD, deployment, or infrastructure PR. GSSoC type bonus: +15 points.DevOps, CI/CD, deployment, or infrastructure PR. GSSoC type bonus: +15 points.
Context
After the dependency sweep (#377, #379, #381) the repo is down to 5 open Dependabot alerts from 96. Four of them are torch, and they need a decision rather than a lockfile change.
Current state:
torch==2.9.1,torchvision==0.24.1.Why 2.13.0 is impossible right now
[tool.uv.sources]pulls torch from the pinned PyTorch indexes:pytorch-cpupublishes up to 2.13.0pytorch-cu128publishes up to 2.11.0Since the
nvidiaextra resolves against cu128, any pin above 2.11.0 makesfind-backend[nvidia]unsatisfiable on every platform. That is exactly why Dependabot's #369 failedhardware-accel-matrixon all three runners and had to be closed. #121/#122 stay open until cu128 ships 2.13.0 — nothing to do here but wait.What this issue is actually for: 2.9.1 → 2.11.0
2.11.0 exists on both indexes, so it would resolve and would close #85 and #87. It was deliberately not done in #377 because it is a two-minor-version jump under the whole ML stack, and mock-mode tests do not exercise any of it.
Needs validating against real inference before merging:
transformers>=5.5.0(captioning / SigLIP)open-clip-torch>=2.24.0(embeddings)timm>=0.9.16ultralytics>=8.2.0(YOLO detection)insightface==0.7.3(faces — the usual first thing to break on a torch bump)torchvisionneeds to move to the matching 0.26.0Acceptance criteria
torch==2.11.0,torchvision==0.26.0inbackend/pyproject.tomluv sync --group dev --lockedresolves on Linux, macOS, and Windows (watchhardware-accel-matrix)docker compose up --build, not the mock profileNotes
Do not bundle this with the
paddlepaddle/paddleocroronnxruntimebumps. If something regresses, the whole point is knowing it was torch.Both remaining alerts are low severity, so there is no urgency — correctness over speed here.