Skip to content

Commit 17bbc08

Browse files
authored
Merge pull request easybuilders#25022 from pavelToman/20260108150318_new_pr_scvi-tools141
{ai,bio}[foss/2024a] scvi-tools v1.4.1, captum v0.8.0 w/ CUDA 12.6.0
2 parents 5775d33 + 5777680 commit 17bbc08

File tree

2 files changed

+112
-0
lines changed

2 files changed

+112
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
easyblock = 'PythonBundle'
2+
3+
name = 'captum'
4+
version = '0.8.0'
5+
versionsuffix = '-CUDA-%(cudaver)s'
6+
7+
homepage = 'https://captum.ai/'
8+
description = """
9+
Captum is a model interpretability and understanding library for PyTorch.
10+
Captum means comprehension in Latin and contains general purpose
11+
implementations of integrated gradients, saliency maps, smoothgrad, vargrad and
12+
others for PyTorch models. It has quick integration for models built with
13+
domain-specific libraries such as torchvision, torchtext, and others.
14+
"""
15+
16+
toolchain = {'name': 'foss', 'version': '2024a'}
17+
18+
dependencies = [
19+
('CUDA', '12.6.0', '', SYSTEM),
20+
('Python', '3.12.3'),
21+
('PyTorch', '2.7.1', versionsuffix),
22+
('matplotlib', '3.9.2'),
23+
('tqdm', '4.66.5'),
24+
('scikit-learn', '1.5.2'),
25+
]
26+
27+
exts_list = [
28+
(name, version, {
29+
'checksums': ['73f2e5a07ffe6ac6647a6f12cd2f67f0d8f717329f150ddf08ef73cba0858d26'],
30+
}),
31+
]
32+
33+
moduleclass = 'ai'
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
easyblock = 'PythonBundle'
2+
3+
name = 'scvi-tools'
4+
version = '1.4.1'
5+
versionsuffix = '-CUDA-%(cudaver)s'
6+
7+
homepage = 'https://github.com/scverse/scvi-tools'
8+
description = """scvi-tools (single-cell variational inference tools) is a package for probabilistic modeling and
9+
analysis of single-cell omics data, built on top of PyTorch and AnnData."""
10+
11+
toolchain = {'name': 'foss', 'version': '2024a'}
12+
13+
builddependencies = [
14+
('hatchling', '1.27.0'),
15+
('coverage', '7.9.2'),
16+
('captum', '0.8.0', versionsuffix),
17+
]
18+
dependencies = [
19+
('CUDA', '12.6.0', '', SYSTEM),
20+
('Python', '3.12.3'),
21+
('SciPy-bundle', '2024.05'),
22+
('PyTorch', '2.7.1', versionsuffix),
23+
('PyTorch-Lightning', '2.5.6', versionsuffix),
24+
('Lightning', '2.5.6', versionsuffix),
25+
('anndata', '0.11.4'),
26+
('matplotlib', '3.9.2'),
27+
('scikit-learn', '1.5.2'),
28+
('tqdm', '4.66.5'),
29+
('h5py', '3.12.1'),
30+
('pyro-ppl', '1.9.1', versionsuffix),
31+
('ml-collections', '1.1.0'),
32+
('numba', '0.60.0'),
33+
('scanpy', '1.10.4'),
34+
('tensorboard', '2.18.0'),
35+
('xarray', '2024.11.0'),
36+
]
37+
38+
# avoid srun problem
39+
# https://github.com/easybuilders/easybuild-easyconfigs/pull/25021#issuecomment-3744728157
40+
local_test_command = 'export SLURM_NTASKS_PER_NODE=$SLURM_NTASKS && '
41+
local_test_command += 'pytest -vs tests '
42+
# skip tests required optional dependencies
43+
local_test_command += (
44+
'--ignore=tests/external/mrvi_jax '
45+
'--ignore=tests/external/tangram '
46+
'--ignore=tests/model/test_jaxscvi.py '
47+
'--ignore=tests/hub '
48+
'--ignore=tests/criticism '
49+
'--ignore=tests/external/cytovi '
50+
'--deselect=tests/data/test_anndata.py::test_anntorchdataset_dask '
51+
'--deselect tests/model/test_multivi.py::test_multivi_mudata_rna_atac '
52+
)
53+
54+
exts_list = [
55+
('packaging', '25.0', {
56+
'checksums': ['d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f'],
57+
}),
58+
('pytest_pretty', '1.3.0', {
59+
'checksums': ['97e9921be40f003e40ae78db078d4a0c1ea42bf73418097b5077970c2cc43bf3'],
60+
}),
61+
('mudata', '0.3.2', {
62+
'checksums': ['c9b24f2429f369512f38e48599e341e7684abcf769df277e473700d4f1212740'],
63+
}),
64+
('sparse', '0.17.0', {
65+
'checksums': ['6b1ad51a810c5be40b6f95e28513ec810fe1c785923bd83b2e4839a751df4bf7'],
66+
}),
67+
('docrep', '0.3.2', {
68+
'checksums': ['ed8a17e201abd829ef8da78a0b6f4d51fb99a4cbd0554adbed3309297f964314'],
69+
}),
70+
(name, version, {
71+
'modulename': 'scvi',
72+
'runtest': local_test_command,
73+
'sources': ['scvi_tools-%(version)s.tar.gz'],
74+
'testinstall': True,
75+
'checksums': ['ee75eaac665618b9ee6fa466f6353ef68eb33cd3d7e2c77069e743471ca2103a'],
76+
}),
77+
]
78+
79+
moduleclass = 'bio'

0 commit comments

Comments
 (0)