Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add DCU inference docs #8983

Merged
merged 1 commit into from
Aug 23, 2024
Merged

add DCU inference docs #8983

merged 1 commit into from
Aug 23, 2024

Conversation

YanhuiDua
Copy link
Contributor

@YanhuiDua YanhuiDua commented Aug 21, 2024

PR types

Others

PR changes

Docs

Description

Add DCU K100_AI inference docs.

Copy link

paddle-bot bot commented Aug 21, 2024

Thanks for your contribution!

```
2. 参考如下命令启动容器
```
ocker run -it --name paddle-dcu-dev -v `pwd`:/work \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker run

-DWITH_ROCM=ON -DWITH_RCCL=ON

make -j128
pip install -U paddlepaddle_rocm-0.0.0-cp310-cp310-linux_x86_64.whl
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

理论上whl包应该在python/dist/路径下?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

遗漏了,我补充下

4. 克隆PaddleNLP仓库代码,并安装依赖
```
# PaddleNLP是基于paddlepaddle『飞桨』的自然语言处理和大语言模型(LLM)开发库,存放了基于『飞桨』框架实现的各种大模型,llama2-13B模型也包含其中。为了便于您更好地使用PaddleNLP,您需要clone整个仓库。
git clone https://github.com/PaddlePaddle/PaddleNLP.git
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为何不能直接pip install -U git+https://github.com/PaddlePaddle/PaddleNLP.git

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

收到~

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接安装的方式可能会有部分用户受限,这个命令也可以直接安装最新改动,PR级别的develop版本安装(相比合入时间稍微延后一点)。

pip install --pre --upgrade paddlenlp -f https://www.paddlepaddle.org.cn/whl/paddlenlp.html

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@YanhuiDua 我之前没有看到后边的内容,如果需要执行python setup.py 还是需要clone代码的

Copy link

codecov bot commented Aug 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.35%. Comparing base (dd909d1) to head (a04be37).
Report is 8 commits behind head on develop.

Current head a04be37 differs from pull request most recent head 73d2393

Please upload reports for the commit 73d2393 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8983      +/-   ##
===========================================
- Coverage    54.86%   54.35%   -0.51%     
===========================================
  Files          647      648       +1     
  Lines       103342   103818     +476     
===========================================
- Hits         56699    56432     -267     
- Misses       46643    47386     +743     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

docker run -it --name paddle-dcu-dev -v `pwd`:/work \
-w=/work --shm-size=128G --network=host --privileged \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
registry.baidubce.com/device/paddle-dcu:dtk24.04.1-kylinv10-gcc73-py310 /bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

启动命令需不需要添加--group-add video选项呢,在海光gitlab中很多容器的启动命令都会添加该用户组,不添加的话在执行rocm-smi命令时,可能出现error: Open mkfd failed的提示,但不确定是共性问题还是个别问题。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我确认下

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里已经加了--privileged,就不再需要--group-add选项了

@PaddlePaddle PaddlePaddle locked and limited conversation to collaborators Aug 23, 2024
@PaddlePaddle PaddlePaddle unlocked this conversation Aug 23, 2024
Copy link
Collaborator

@DrownFish19 DrownFish19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DrownFish19 DrownFish19 merged commit 1ea1f50 into PaddlePaddle:develop Aug 23, 2024
10 of 12 checks passed
Mangodadada pushed a commit to Mangodadada/PaddleNLP that referenced this pull request Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants