-
Download and install Anaconda.
-
Create a conda virtual environment with the name, e.g.,
attack, and activate it:# list existing env # conda env list # remove an env # conda env remove -n env_name conda create -n attack python=3.13 -y conda activate attack conda update -n base -c defaults conda setuptools -y conda install -c conda-forge git git-lfs ffmpeg vim htop ninja gpustat -y conda clean -a -y python3.13 -m pip install -U pip cmake
We will use
python3.13 -min running pip or other installations below. -
Install packages
Clone this repo. Assume
PATH_TO_THIS=~/ordered-topk-attackwhere you put this code.We use pyproject.toml in configuring the packages, see the official doc.
cd $PATH_TO_THIS python3.13 -m pip install -e . chmod +x ./*.sh