Importance of the version of the installed libraries #69
-
Hello, Some of our group had some trouble installing the versions of the libraries as specified in the requirements.txt file, mainly because they seem to be relatively outdated (pytorch was specified as 1.6, but the most recent one is 1.11; alennlp was specified as 1.2.2, but the most recent one is 2.9.3) so they don't run on newer architectures (e.g. the M1 processor). Is it okay if we use the newest versions of these libraries or are we required to stick with the ones specified in the file? Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi, I would keep the specific versions (especially allennlp has lots of breaking changes between 1.x and 2.x in the dataloading, which we use). Sorry we didn't get to update the starter code in time :/ For the M1 mac: I couldn't get pytorch and the rest of the matchmaker dependencies to run natively anyway, there was always some faraway dependency not compiled for arm and trying to compile it locally would only lead you to more problems (ca. 3 months ago) - the solution is to install an intel version of (mini)conda, and this then installs all the intel compiled python versions (translated with rosetta) without any problems. It still runs very fast for local development. Best, |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
Hi,
I would keep the specific versions (especially allennlp has lots of breaking changes between 1.x and 2.x in the dataloading, which we use). Sorry we didn't get to update the starter code in time :/ For the M1 mac: I couldn't get pytorch and the rest of the matchmaker dependencies to run natively anyway, there was always some faraway dependency not compiled for arm and trying to compile it locally would only lead you to more problems (ca. 3 months ago) - the solution is to install an intel version of (mini)conda, and this then installs all the intel compiled python versions (translated with rosetta) without any problems. It still runs very fast for local development.
Best,
Sebastian