-
Notifications
You must be signed in to change notification settings - Fork 773
{ai}[foss/2022a] PyTorch-bundle v1.12.1 #17540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ai}[foss/2022a] PyTorch-bundle v1.12.1 #17540
Conversation
|
From todays zoom meeting, i whipped out what this might look like. I didn't check if these versions are really compatible with 1.12 or not. |
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
| 'sources': [{'download_filename': 'v0.14.1.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['ced67e1cf1f97e168cdf271851a4d0b6d382ab7936e7bcbb39aaa87239c324b6'], | ||
| }), | ||
| ('torchtext', '0.14.1', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This won't work without additional effort I think, at least not if we want to be sure that the provided SentencePiece is used.
@PetrKralCZ has been fighting with this, and is about to open a PR for a torchtext easyconfig...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, i forgot about that sed thing while i was fighting the download filenames
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added the old sed command that was used in earlier versions, completely untested. @PetrKralCZ if you have any feedback on this part i would appreciate it.
|
This approach looks fine to me 👍 (linked the issue to this PR) |
VRehnberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tried to look over the compatibility of the versions and the only clash I found was for torchdata.
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,59 @@ | |||
| easyblock = 'PythonBundle' | |||
|
|
|||
| name = 'PyTorch-bundle' | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't PyTorch-extensions be a better name?
I think PyTorch-bundle was chosen in analogy to SciPy-bundle, but that's a collection of Python packages from different contexts, while here we're only bundling "official" PyTorch extensions (since they're all obtained via https://github.com/pytorch)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As Micket didn't have a strong opinion (see below) I'd say that you can probably decide @boegel. To add some nuance I'd like to note that it is a PythonBundle of PyTorch domain libraries under https://github.com/pytorch, though excluding PyTorch it self, and as it is a PythonBundle these libraries are added in an extension list. So, I think PyTorch-extensions and PyTorch-bundle can both make sense, or even PyTorch-extensions-bundle if you'd like to be even more specific.
I looked through the names of other bundles and these where the only other relevant ones I found (i.e. they didn't just have names corresponding to one of the dependencies or extensions):
- ESL-Bundle
- R-bundle-Bioconductor
- SciPy-bundle
As this is the only thing remaining I'd appreciate if it could be resolved soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My vote goes for PyTorch-bundle
|
I wouldn't mind having PyTorch TensorBoard Profiler https://github.com/pytorch/kineto/tree/main/tb_plugin in this bundle as well, but it depends on TensorBoard so I don't know if that would make it too problematic. |
The scope for this is PyTorch extensions that are developed under the PyTorch flag (i.e. in https://github.com/pytorch). |
Well PyTorch TensorBoard Profiler is in https://github.com/pytorch as you can see from the link I included, so that wasn't the issue here. It's rather a question of whether it would be problematic to pull in too much stuff into this bundle. It wouldn't be the only extension with dependencies either not only the only extension with dependencies in the extension list as portalocker will have to be added for torchdata. I'm also unsure what failure modes to be aware of when there are several packages with the same python package as extension. Would this mean that PyTorch-bundle and TensorFlow couldn't be loaded at the same time for example if both have TensorBoard as an extension. Edit: |
|
I also ran into some incompatibilities with versions. I'm not sure whether we want to follow the compatibility matrices or not as that doesn't seem to have been the case historically (see e.g. recent torchtext vs compatibility matrix). Other matrices: |
VRehnberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had problems with torchtext and torchaudio because of their submodules but otherwise these are the changes for which I've gotten the rest to work.
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Outdated
Show resolved
Hide resolved
easybuild/easyconfigs/p/PyTorch-bundle/PyTorch-bundle-1.12.1-foss-2022a-CUDA-11.7.0.eb
Show resolved
Hide resolved
|
@VRehnberg and I decided that it was to much work to get the torchaudio thing working, it fetches and git-submodules a bunch of thirdparty sources during build step, and our SoX easyconfig uses an conflicting FFmpeg dep, so since it's not a super popular package we just dropped it for now. So all that's left to decide if we should rename this PyTorch-extensions instead? I have no strong opinions. |
|
Test report by @VRehnberg |
|
Test report by @VRehnberg |
lexming
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@boegelbot: please test @ generoso |
|
@lexming: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 1512556697 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
|
no GPUs on generoso, won't be able to build any CUDA stuff that has tests |
|
oopsie... |
|
@boegelbot please test @ jsc-zen2 |
|
@lexming: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster PR test command '
Test results coming soon (I hope)... Details- notification for comment with ID 1513031826 processed Message to humans: this is just bookkeeping information for me, |
|
Test report by @boegelbot |
use PyTorch-bundle for consistency with the name of other bundle easyconfigs
|
Going in, thanks @Micket and @VRehnberg ! |
(created using
eb --new-pr)Fixes: #17489