Skip to content

Commit

Permalink
Bump pytorch>=2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
thodkatz committed Sep 16, 2024
1 parent 6996b5a commit 34544e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
9 changes: 4 additions & 5 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ build:
requirements:
host:
- pip
- python 3.9
- python >= 3.8
run:
- python 3.9
- pickle5 # [py37]
- python >= 3.8
{% for dep in setup_py_data['install_requires'] %}
- {{ dep.lower() }}
{% endfor %}
Expand All @@ -51,10 +50,10 @@ test:
{% for dep in setup_py_data['extras_require']['server-pytorch'] %}
- {{ dep.lower() }}
{% endfor %}
# this is still necessary, torchvision doesn't work properly with cpuonly mutex
- torchvision=*=*cpu
- pytest
- pytest-grpc
- cpuonly
- ilastik-pytorch-version-helper-cpu
imports:
# client
- tiktorch
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:

# pytorch
# remove cpuonly, add cudatoolkit and cudnn for gpu support
- pytorch=2.4.*
- pytorch=2.3.*
# currently it's necessary to force the cpu version, remove
# torchvision pin when going for gpu
# - torchvision
Expand Down
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,7 @@
"pyyaml",
"xarray",
],
extras_require={
"server-pytorch": [
"pytorch>=1.6",
"scikit-learn",
]
},
extras_require={"server-pytorch": ["pytorch>=2.3", "scikit-learn", "torchvision"]},
entry_points={"console_scripts": ["tiktorch=tiktorch.server.base:main"]},
# extras_require={"test": ["pytest"]},
project_urls={ # Optional
Expand Down

0 comments on commit 34544e2

Please sign in to comment.