Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 444 Bytes

build.md

File metadata and controls

22 lines (16 loc) · 444 Bytes

Build from source

  • install packages for compiling and running:

    conda create -n lmdeploy python=3.10
    conda activate lmdeploy
    
    git clone https://github.com/InternLM/lmdeploy.git
    cd lmdeploy
    
    pip install -r requirements.txt
    conda install openmpi-mpicxx nccl rapidjson -c conda-forge
  • build and install lmdeploy:

    mkdir build && cd build
    sh ../generate.sh
    make -j$(nproc) && make install