Installation

Requires Python >= 3.10

Install torch

# Install PyTorch matching your CUDA driver.
# Example
pip install torch==2.9.1+cu128 --index-url https://download.pytorch.org/whl/cu128

From PyPI

pip install sparank

From source

git clone https://github.com/XiHuYan/SpaRank.git
cd SpaRank
pip install -e .