Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 995 Bytes

File metadata and controls

34 lines (24 loc) · 995 Bytes

🛠️ Installation

  • 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 -m in running pip or other installations below.

  • Install packages

    Clone this repo. Assume PATH_TO_THIS=~/ordered-topk-attack where 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