Support for PyTorch 1.8.1 (or PyTorch >= 1.7.0 in general) #42

Open
opened 2025-10-14 15:51:49 -06:00 by navan · 0 comments
Owner

Originally created by @jkloe on 4/28/2021

When I install PyTorch 1.8.1 with CUDA 11.1 support (from https://pytorch.org/get-started/locally: pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html), I get the following error when running e.g. pylaia-htr-decode-ctc:

Traceback (most recent call last):
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master
    ws.require(__requires__)
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (torch 1.8.1+cu111 (/usr/local/anaconda3/lib/python3.8/site-packages), Requirement.parse('torch<1.7.0,>=1.6.0'), {'nnutils-pytorch'})

Seems to be that nnutils-pytorch does not support torch > 1.7.0?

*Originally created by @jkloe on 4/28/2021* When I install PyTorch 1.8.1 with CUDA 11.1 support (from https://pytorch.org/get-started/locally: `pip3 install torch==1.8.1+cu111 torchvision==0.9.1+cu111 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html`), I get the following error when running e.g. `pylaia-htr-decode-ctc`: ``` Traceback (most recent call last): File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 567, in _build_master ws.require(__requires__) File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 884, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/local/anaconda3/lib/python3.8/site-packages/pkg_resources/__init__.py", line 775, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (torch 1.8.1+cu111 (/usr/local/anaconda3/lib/python3.8/site-packages), Requirement.parse('torch<1.7.0,>=1.6.0'), {'nnutils-pytorch'}) ``` Seems to be that `nnutils-pytorch` does not support torch > 1.7.0?
Sign in to join this conversation.
No labels
dependencies
stale
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: github/PyLaia#42
No description provided.