build.md 410 Bytes
Newer Older
1
2
3
## Build from source

- install packages for compiling and running:
pppppM's avatar
pppppM committed
4

5
  ```shell
pppppM's avatar
pppppM committed
6
7
8
9
10
11
  conda create -n lmdeploy python=3.10
  conda activate lmdeploy

  git clone https://github.com/InternLM/lmdeploy.git
  cd lmdeploy

12
  pip install -r requirements.txt
pppppM's avatar
pppppM committed
13
  conda install openmpi-mpicxx nccl rapidjson -c conda-forge
14
  ```
pppppM's avatar
pppppM committed
15

16
- build and install lmdeploy:
pppppM's avatar
pppppM committed
17

18
19
20
21
  ```shell
  mkdir build && cd build
  sh ../generate.sh
  ```