Installation¶
The import name is prism. PRISM needs Python >= 3.10 and PyTorch >= 2.2.
GPU¶
Fits run on the GPU by default (device="cuda"). Install the PyTorch build that matches your CUDA driver first, then
PRISM. For example, for CUDA 12.4:
See pytorch.org for other platforms. Without a GPU, pass device="cpu" to
PRISMConfig and PrismData.from_anndata.
Optional extras¶
Check the install¶
python -c "import prism, torch; print(prism.__version__, torch.__version__, torch.cuda.is_available())"
The paper's results were produced with Python 3.10 and PyTorch 2.5.1 (CUDA 12.4).