fix(deps): pin surya ^0.17 (CPU torch fallback) #36

Merged
goldstein merged 1 commit from fix/surya-version into main 2026-04-18 11:21:54 +00:00
Owner

Client uses surya.foundation (added in 0.17). Earlier cu124 torch pin had forced surya to 0.14. Drop cu124 index so surya 0.17+ installs; torch falls back to CPU due to host driver mismatch — acceptable for MVP.

Client uses surya.foundation (added in 0.17). Earlier cu124 torch pin had forced surya to 0.14. Drop cu124 index so surya 0.17+ installs; torch falls back to CPU due to host driver mismatch — acceptable for MVP.
goldstein added 1 commit 2026-04-18 11:21:52 +00:00
fix(deps): pin surya-ocr ^0.17 and drop cu124 index
All checks were successful
tests / test (push) Successful in 1m23s
tests / test (pull_request) Successful in 2m23s
a418969251
Our client code imports surya.foundation (added in 0.17). The earlier
cu124 torch pin forced uv to downgrade surya to 0.14.1, which doesn't
have that module and depends on a transformers version that lacks
QuantizedCacheConfig. Net: ocr: fail at /healthz.

Drop the cu124 index pin. surya 0.17.1 needs torch >= 2.7, which the
default pypi torch (2.11) satisfies. The deploy host's CUDA 12.4
driver doesn't match torch 2.11's cu13 wheels, so CUDA init warns and
the GPU isn't available — torch + Surya transparently fall back to CPU.
Slower than GPU but correct for MVP. A host driver upgrade later will
unlock GPU with no code changes.

Unit suite stays green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
goldstein merged commit 4c0746950e into main 2026-04-18 11:21:54 +00:00
goldstein referenced this pull request from a commit 2026-04-18 11:21:55 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: goldstein/infoxtractor#36
No description provided.