-
when i pip install timm, i keep getting the latest pytorch installed as dependency, how can i match the right version of timm to specific pytorch version? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@holderhe timm works with a wide variety of torch versions up to the latest, there really isn't much of a version match. The expectation is you setup your environment with a suitable version of torch and then install timm, timm does not have restrictive version pins. |
Beta Was this translation helpful? Give feedback.
-
In Google colab notebooks there is a weird dependency thing, where it will install a bunch of extra packages when you install timm due to the way they setup their environment, and changes in the deps. It happens with any package that depends on 'torch' and is installed in the colab. This may be fixed now, but either way it's specific to colab (AFAIK), and I've never seen it in a local environment (conda or pip venv) where you install your desired torch version first. https://x.com/wightmanr/status/1774563271640588652 EDIT: this issue appears to be gone now that they've updated to PyTorch 2.4 in Colab
|
Beta Was this translation helpful? Give feedback.
@holderhe as I said, I have no version deps other than > 1.7, which is rather out of date but clearly not causing your 2.4.1 install, your environment likely did not have torch installed (or the dependency checker failed to find it), so it just installed the lastest pip package due to 'torch' being a dep.