forked from FlagAI-Open/FlagAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ftgreat <[email protected]>
- Loading branch information
Showing
7 changed files
with
46 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -155,14 +155,16 @@ git clone https://github.com/OpenBMB/BMTrain | |
cd BMTrain | ||
python setup.py install | ||
``` | ||
- [Tips] For single-node docker environments, we need to set up ports for your ssh. e.g., [email protected] with port 7110 | ||
- [Optional] For BMInf low-resource inference, install [BMInf](https://github.com/OpenBMB/BMInf) | ||
``` | ||
>>> vim ~/.ssh/config | ||
Host 127.0.0.1 | ||
Hostname 127.0.0.1 | ||
Port 7110 | ||
User root | ||
pip install bminf | ||
``` | ||
- [Optional] For Flash Attention, install [Flash-attention](https://github.com/HazyResearch/flash-attention) | ||
``` | ||
pip install flash-attn | ||
``` | ||
|
||
- [Tips] For multi-node docker environments, generate ssh keys and copy the public key to all nodes (in `~/.ssh/`) | ||
``` | ||
>>> ssh-keygen -t rsa -C "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,6 +144,17 @@ git clone https://github.com/OpenBMB/BMTrain | |
cd BMTrain | ||
python setup.py install | ||
``` | ||
|
||
- [可选] 开启BMInf低资源推理, 需要安装[BMInf](https://github.com/OpenBMB/BMInf) | ||
``` | ||
pip install bminf | ||
``` | ||
- [可选] 对于FlashAttention, 需要安装[Flash-attention](https://github.com/HazyResearch/flash-attention) | ||
``` | ||
pip install flash-attn | ||
``` | ||
|
||
- [可选] 镜像构建,请参照 [Dockerfile](https://github.com/FlagAI-Open/FlagAI/blob/master/Dockerfile) | ||
- [提示] 单节点docker环境下,运行多卡数据并行需要设置host。 例如,docker节点 [email protected],其端口 7110。 | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters