To be able to use CUDA acceleration (for both `PLMV_embed` and `PLMV_compare_cuda`), make sure that PyTorch is installed correctly with CUDA and that you use the python interpreter assiociated with that pytorch installation.
To test wether CUDA can be used for parallelized alignment, try importing ```aligner.alignment_cuda``` in python.
...
...
@@ -111,6 +113,25 @@ Support for FlashAttention depends on the PLM being used. Ankh does not support
fp16 mixed precision during `PLMV_embed.py` is quite unstable, bf16/fp32 are to be preferred. This doesn't seem to affect `PLMV_compare.py`. So for example, feel free to embed using fp32 and compare using fp16.
During our experiments, we used :
- Python 3.10.12
- PyTorch 2.5.1 built against CUDA 12.1
- CUDA 12.4
- NumPy 1.26.4
- SciPy 1.13.0
- Transformers 4.44.2
- ete3 3.1.3
- h5py 3.13.0
- Cython 3.0.12
- GCC 11.4.0
- G++ 11.4.0
- NVCC 12.1.105
- Matplotlib 3.10.9
- panda 2.2.2
- Biopython 1.84
- Logomaker 0.8.7
- pypdf 6.7.0
## Citing PLMView
If you use PLMView in your research, please cite the corresponding paper.