-
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
Changes from 4 commits
170a69f
d81414e
b3e0cca
d42c60d
bdc3b27
dfcc41c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| easyblock = 'PythonBundle' | ||
|
|
||
| name = 'PyTorch-bundle' | ||
| version = '1.12.1' | ||
| versionsuffix = '-CUDA-%(cudaver)s' | ||
|
|
||
| homepage = 'https://pytorch.org/' | ||
| description = """PyTorch with compatible versions of official Torch extensions.""" | ||
|
|
||
| toolchain = {'name': 'foss', 'version': '2022a'} | ||
|
|
||
| builddependencies = [ | ||
| ('RE2', '2022-06-01'), # for torchtext | ||
| ] | ||
|
|
||
| dependencies = [ | ||
| ('CUDA', '11.7.0', '', SYSTEM), | ||
Micket marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ('PyTorch', version, versionsuffix), | ||
| ('Pillow-SIMD', '9.2.0'), # for torchvision | ||
| ('SentencePiece', '0.1.97'), # for torchtext | ||
| ('tqdm', '4.64.0'), # for torchtext | ||
| ('double-conversion', '3.2.0'), # for torchtext | ||
Micket marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
|
|
||
| use_pip = True | ||
|
|
||
| exts_list = [ | ||
| ('torchvision', '0.14.1', { | ||
Micket marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'source_urls': ['https://github.com/pytorch/vision/archive'], | ||
| 'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['ced67e1cf1f97e168cdf271851a4d0b6d382ab7936e7bcbb39aaa87239c324b6'], | ||
| }), | ||
| ('torchtext', '0.14.1', { | ||
|
||
| # Disable bundled libraries to use those from EB: RE2, SentencePiece | ||
| 'preinstallopts': "sed -i '/third_party/d;/BuildExtension/d' setup.py &&", | ||
| 'source_urls': ['https://github.com/pytorch/text/archive'], | ||
| 'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['fd1ef3da7d9c20408c740f7dc7d02ad52a6048b46368355a1a7326d3bc4f2e63'], | ||
| }), | ||
| ('torchaudio', '0.13.1', { | ||
Micket marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'source_urls': ['https://github.com/pytorch/audio/archive'], | ||
| 'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['3a5c108a9ea31d0e6533a2cd6cbaf133efaefe4bdcb4b689183a33b991c95d12'], | ||
| }), | ||
| ('pytorch-ignite', '0.4.11', { | ||
| 'source_urls': ['https://github.com/pytorch/ignite/archive'], | ||
| 'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['33e7485cea3cac08d7a49a3a01d3013e1156128867602bff0a8e32b2c5ebd4e9'], | ||
| }), | ||
| ('torchdata', '0.5.1', { | ||
Micket marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 'source_urls': ['https://github.com/pytorch/data/archive'], | ||
| 'sources': [{'download_filename': 'v%(version)s.tar.gz', 'filename': '%(name)s-%(version)s.tar.gz'}], | ||
| 'checksums': ['69d80bd33ce8f08e7cfeeb71cefddfc29cede25a85881e33dbae47576b96ed29'], | ||
| }), | ||
Micket marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
|
|
||
| sanity_pip_check = True | ||
|
|
||
| moduleclass = 'ai' | ||
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-extensionsbe a better name?I think
PyTorch-bundlewas chosen in analogy toSciPy-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.
@lexming @Micket Can we make up our minds here, so we can get this merged?
Uh oh!
There was an error while loading. Please reload this page.
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):
As this is the only thing remaining I'd appreciate if it could be resolved soon.
Uh oh!
There was an error while loading. Please reload this page.
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