Skip to content

Commit

Permalink
install python package
Browse files Browse the repository at this point in the history
  • Loading branch information
lvhan028 committed Oct 24, 2023
1 parent 6b3899a commit 4ae746d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/en/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ cd /workspace/lmdeploy
mkdir -p build && cd build
../generate.sh
make -j$(nproc) && make install

# install lmdeploy python package
cd ..
pip install .
```

**Note**:
Expand Down Expand Up @@ -54,10 +58,15 @@ Then, follow the steps below to set up the compilation environment:
./configure
make -j$(nproc) && make install
```
- build and install lmdeploy:
- build and install lmdeploy libraries:
```shell
cd lmdeploy # the home folder of lmdeploy
mkdir build && cd build
sh ../generate.sh
make -j$(nproc) && make install
```
- install lmdeploy python package:
```shell
cd ..
pip install -e .
```
9 changes: 9 additions & 0 deletions docs/zh_cn/build.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ cd /workspace/lmdeploy
mkdir -p build && cd build
../generate.sh
make -j$(nproc) && make install

# 安装 lmdeploy python package
cd ..
pip install .
```

**说明**
Expand Down Expand Up @@ -60,3 +64,8 @@ make -j$(nproc) && make install
sh ../generate.sh
make -j$(nproc) && make install
```
- 安装 lmdeploy python package:
```shell
cd ..
pip install -e .
```

0 comments on commit 4ae746d

Please sign in to comment.